Install Apache Web Server » History » Version 12
Amber Herold, 12/16/2013 12:52 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 | 8 | Christopher Irving | This is /etc/httpd/conf/httpd.conf on CentOS and /etc/apache2/httpd.conf on SuSE |
7 | 11 | Neil Voss | <pre> |
8 | sudo nano /etc/httpd/conf/httpd.conf |
||
9 | </pre> |
||
10 | 1 | Amber Herold | |
11 | 3. Edit the "httpd.conf" configuration file with the following: |
||
12 | <pre> |
||
13 | 12 | Amber Herold | DirectoryIndex index.html index.html.var index.php |
14 | 1 | Amber Herold | |
15 | HostnameLookups On |
||
16 | </pre> |
||
17 | |||
18 | *Note:* It may be possible to edit httpd.conf in YaST2 as well. |
||
19 | |||
20 | 9 | Amber Herold | 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. |
21 | |||
22 | <pre> |
||
23 | ServerName YourSever.yourdomain.edu |
||
24 | |||
25 | UseCanonicalName On |
||
26 | </pre> |
||
27 | |||
28 | 5. Restart the web server. |
||
29 | 1 | Amber Herold | |
30 | <pre> |
||
31 | apachectl restart |
||
32 | or |
||
33 | 6 | Neil Voss | sudo /sbin/service httpd restart (ON CentOS/RHEL/Fedora) |
34 | 1 | Amber Herold | or |
35 | 8 | Christopher Irving | /etc/sbin/rcapache2 restart (ON SuSE) |
36 | 1 | Amber Herold | or |
37 | /sbin/service httpd restart |
||
38 | </pre> |
||
39 | |||
40 | If you want to start the web server automatically at boot on SuSE |
||
41 | |||
42 | <pre> |
||
43 | 7 | Neil Voss | sudo /sbin/chkconfig apache2 on #SuSE |
44 | sudo /sbin/chkconfig httpd on #CentOS/RHEL/Fedora |
||
45 | 1 | Amber Herold | </pre> |
46 | 2 | Amber Herold | |
47 | ______ |
||
48 | |||
49 | [[Configure php.ini|< Configure php.ini]] | [[Check php information|Check php information >]] |
||
50 | 3 | Amber Herold | |
51 | ______ |