Install Apache Web Server » History » Version 7
Neil Voss, 05/12/2010 02:56 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 | 6 | Neil Voss | sudo /sbin/service httpd restart (ON CentOS/RHEL/Fedora) |
23 | 1 | Amber Herold | 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 | 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 | ______ |