Project

General

Profile

Install Apache Web Server » History » Version 2

Amber Herold, 04/15/2010 03:45 PM

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
 This is /etc/httpd/conf/httpd.conf on CentOS and /etc/php5/apache2/httpd.conf on SuSE
7
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
/etc/init.d/httpd restart     (ON CentOS)
23
     or
24
/etc/init.d/apache2 restart   (ON SuSE)
25
     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
SuSE >chkconfig apache2 on
33
</pre>
34 2 Amber Herold
35
______
36
 
37
[[Configure php.ini|< Configure php.ini]] | [[Check php information|Check php information >]]