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 # DocumentRoot /www/docs/ # ServerName # ErrorLog logs/ # CustomLog logs/ common # NameVirtualHost DocumentRoot /opt/www ServerName witwicky ServerAlias DocumentRoot /opt/www/blog ServerName insite ServerAlias insite4 DirectoryIndex index.php ErrorLog logs/insite-error_log CustomLog logs/insite-access_log common