NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
ZapMePlease
Jun 10, 2016Aspirant
Enabling .htaccess
Sorry - this is a duplicate post to one I initially posted in the 'using your readynas' forum. I thought it would be better here than there.
I have an older ReadyNAS NV+. I'm trying to move my personal web server onto it. I've installed the add-ons for php5, curl, apt-get and ssh enable. All the add-ons are running great.
I've created my web folder, got the permissions set etc. and apache is serving my website perfectly. That is until now when I started trying to password protect some pages.
SO... I've made all the necessary changes to my httpd.conf file but page loads in the protected directory fail with a 500 Internal Server error anytime the .htaccess file loads. Rewrites etc. work within .htaccess but as soon as I add the AuthUserFile directive it fails.
The error log shows the following error
Apache .htaccess: Invalid command ‘AuthUserFile’, perhaps misspelled or defined by a module not included in the server configuration
This error indicates that I'm missing mod_authn_file.so at load time.
So... I edited the httpd.conf file and sure enough that module is not loading. I would just add it at load time but the module is missing. I've done a find / -name for the module but it's nowhere on the drive.
The version of Apache running on my ReadyNAS is 2.2.6 - so it's quite old.
My question(s) is (are)
1 - is there a way to force Apache to grab the missing module from the repository
2 - is it safe for me to upgrade the version of Apache running on the ReadyNAS or do I risk losing FrontView
3 - if it's safe to upgrade what would the preferred method be?
Thanks in advance for any help.
mark
2 Replies
Replies have been turned off for this discussion
- ZapMePleaseAspirant
There have been replies to this thread in another area where I've posted it so please don't reply here. I'd delete it but I can't.
Thanks!
- StephenBGuru - Experienced User
I'll just lock this thread.
the other thread is here: https://community.netgear.com/t5/Using-your-ReadyNAS/Is-it-safe-to-upgrade-Apache/m-p/1099309#M110989
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!