How to setup Apache
Here are the tips I learned about configuring Apache
Install Apache 2.x
1. Edit /etc/httpd/conf.d/php.conf to add Directory entries for phpMyAdmin, gallery2, mediawiki, and scripts. AliasMatch ^/phpMyAdmin(?:/(?:de|en|fr|ja|ko|ru))?(/.*)?$ "/var/www/phpMyAdmin$1" Options Indexes AllowOverride None Order allow,deny Allow from all
2. Create /opt/www
3. edit http.conf so that the Document Root is /opt/www
4. Changed Web Root to link to /opt/www
5. restart Apache server /etc/rc.d/init.d/httpd restart
6. Check the status of apache /etc/rc.d/init.d/httpd status [edit] Virtual Root # # VirtualHost example: # Almost any Apache directive may go into a VirtualHost container. # The first VirtualHost section is used for requests without a known # server name. # # # ServerAdmin webmaster@dummy-host.example.com # DocumentRoot /www/docs/dummy-host.example.com # ServerName dummy-host.example.com # ErrorLog logs/dummy-host.example.com-error_log # CustomLog logs/dummy-host.example.com-access_log common # NameVirtualHost 10.52.1.117:80 DocumentRoot /opt/www ServerName witwicky ServerAlias witwicky.nuskin.net witwicky.nuskin.com DocumentRoot /opt/www/blog ServerName insite ServerAlias insite.nuskin.net insite.nuskin.com insite4 DirectoryIndex index.php ErrorLog logs/insite-error_log CustomLog logs/insite-access_log common