apache

restart server

SOFTWARE: apache

cd apache2/bin ; sudo ./apachectl -k restart

restart apache server

MORE INFO:

htpasswd

SOFTWARE: apache

htpasswd -c .filename username

To create the user/pass file for apache when creating protected directories do like this on command line:

htpasswd -c .filename username

So for example to create a pass file called ".myapp-htpasswd with a username called "george" you'd do:

htpasswd -c .myapp-htpasswd george

Dump the resulting file in a non-browse-able directory up above your public_html and then call it from your .htaccess directives for the given directory. Or set up in webmin etc.

MORE INFO: http://www.yolinux.com/TUTORIALS/LinuxTutorialApacheAddingLoginSiteProtection.html

SUSE Linux

List installed modules: use Yast2 or:

a2enmod -l


Comments