Apache Web Sever Configuration
shell> vi /etc/httpd/conf/httpd.conf
<Directory>
"/var/www/html/phpMyAdmin-2.5.1">
AllowOverride AuthConfig
AuthType Basic
AuthName "PHP Administration
Password Required"
AuthUserFile /var/www/passwd.file
Require user bob
</Directory>
·
Figure 2.1 shows a
screen capture of the vi program and the addition of the above lines.

Figure 2.1
10. To create the file and add a password for a user
named Bob, type the following at a command prompt:
shell> htpasswd -c
/var/www/passwd.file bob
11. This will effectively create a file called
/var/www/passwd.file and put a line containing the password for bob. The
program will ask you to input the password for bob twice and will encrypt it so
it can't be read by humans.
*NOTE: All usernames & passwords on
Linux are CaSe SenSiTive.
12. Change the permissions on the file so the server
can have access to the file:
shell> chmod 755 /var/www/passwd.file
13. To add more users type the same command without the
-c option included (the -c option creates a new file). So for example, if I
want to add another username/password combo for jane, then you would type:
shell> htpasswd /var/www/passwd.file jane
14. Make sure you add jane to the Require user line of
the httpd.conf Apache configuration file or else it will not work correctly
(i.e. Change the line to read Require user bob,jane).
15. Now you will need to restart the apache webserver.
To do this, go to a terminal command prompt and type:
shell> service httpd restart
16. Apache will shutdown and restart loading the new
configuration file (/etc/httpd/conf/httpd.conf) you have modified. Figure 2.2 shows the terminal command screen
after all of the above commands have been executed.

Figure 2.2
http://httpd.apache.org/ - Online manual and documentation for help installing and configuring Apache.