Project

General

Profile

Install Apache Web Server » History » Version 8

Christopher Irving, 05/17/2010 03:56 PM
Why are we telling them to turn on Hostnamelookups, or to add index.shtml to their DirectoryIndex.

1 1 Amber Herold
h1. Install Apache Web Server
2
3
1. Install the Apache Web Server with the YaST or yum utility.
4
5
2. Find "httpd.conf".
6 8 Christopher Irving
 This is /etc/httpd/conf/httpd.conf on CentOS and /etc/apache2/httpd.conf on SuSE
7 1 Amber Herold
8
3. Edit the "httpd.conf" configuration file with the following:
9
 <pre>
10
 DirectoryIndex index.htm index.shtm index.html index.shtml index.php
11
12
 HostnameLookups On
13
 </pre>
14
15
*Note:* It may be possible to edit httpd.conf in YaST2 as well.
16
17
4. Restart the web server.
18
19
<pre>
20
apachectl restart
21
     or
22 6 Neil Voss
sudo /sbin/service httpd restart     (ON CentOS/RHEL/Fedora)
23 1 Amber Herold
     or
24 8 Christopher Irving
/etc/sbin/rcapache2 restart   (ON SuSE)
25 1 Amber Herold
     or
26
/sbin/service httpd restart
27
</pre>                  
28
29
      If you want to start the web server automatically at boot on SuSE
30
31
<pre>
32 7 Neil Voss
sudo /sbin/chkconfig apache2 on  #SuSE
33
sudo /sbin/chkconfig httpd on  #CentOS/RHEL/Fedora
34 1 Amber Herold
</pre>
35 2 Amber Herold
36
______
37
 
38
[[Configure php.ini|< Configure php.ini]] | [[Check php information|Check php information >]]
39 3 Amber Herold
40
______