Hi,
I have to password protect my cgi-bin directory, as it is not empty any more.
So I followed the instructions here:
http://www.thesitewizard.com/apache/password-protect-directory.shtml
The problem is I get the error- which I found at the default webuzo error log location Code /usr/local/apps/apache/logs/domain.com.err .
The error text is:
Code /home/user/public_html/cgi-bin/.htaccess: Invalid command 'AuthUserFile', perhaps misspelled or defined by a module not included in the server configuration
I looked up google on the cause of the error and found this:
http://www.shkodenko.com/apache-htaccess-invalid-command-authuserfile-perhaps-misspelled-or-defined-by-a-module-not-included-in-the-server-configuration/
That is, maybe authn_file_module is not loaded. And sure enough in Code /usr/local/apps/apache/etc/httpd.conf I found:
Code #LoadModule authn_file_module modules/mod_authn_file.so
So I uncommented it and tried the instructions on that page:
Quote check web server Apache configuration:
Code # /sbin/service httpd configtest
and reload web server using command:
Code # /sbin/service httpd graceful
I get the syntax OK message on the first command, but I get the following error for the second:
Code httpd not running, trying to start
(98) Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
So I tried Code # /sbin/service httpd restart and got this:
Code
Stopping httpd: FAILED
Starting httpd: (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs FAILED
This probably means that using the service command to restart apache is not a good idea as the default locations for apache are not being used - i.e. apache uses /usr/local/apps/apache/etc/httpd.conf rather than /etc/httpd.conf.
Am I right?
So how do I restart Apache from web interface of Webuzo and the command line?
|