Install Apache Web Server » History » Revision 9
« Previous |
Revision 9/14
(diff)
| Next »
Amber Herold, 05/20/2010 03:30 PM
Install Apache Web Server¶
1. Install the Apache Web Server with the YaST or yum utility.
2. Find "httpd.conf".
This is /etc/httpd/conf/httpd.conf on CentOS and /etc/apache2/httpd.conf on SuSE
3. Edit the "httpd.conf" configuration file with the following:
DirectoryIndex index.htm index.shtm index.html index.shtml index.php HostnameLookups On
Note: It may be possible to edit httpd.conf in YaST2 as well.
4. If you plan to enable the web interface user login feature, the ServerName directive should be set to a resolvable host name and UseCanonicalnames should be turned on. This will ensure the link provided in the email to verify user registration is valid. Follow the example below replacing YourServer.yourdomain.edu with your servers name.
ServerName YourSever.yourdomain.edu UseCanonicalName On
5. Restart the web server.
apachectl restart or sudo /sbin/service httpd restart (ON CentOS/RHEL/Fedora) or /etc/sbin/rcapache2 restart (ON SuSE) or /sbin/service httpd restartIf you want to start the web server automatically at boot on SuSE
sudo /sbin/chkconfig apache2 on #SuSE sudo /sbin/chkconfig httpd on #CentOS/RHEL/Fedora
< Configure php.ini | Check php information >
Updated by Amber Herold over 14 years ago · 9 revisions