Project

General

Profile

Install Apache Web Server » History » Revision 13

Revision 12 (Amber Herold, 12/16/2013 12:52 PM) → Revision 13/14 (Amber Herold, 12/16/2013 12:56 PM)

h1. 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 
 <pre> 
 sudo nano /etc/httpd/conf/httpd.conf 
 </pre> 

 3. Edit the "httpd.conf" configuration file with the following: 
  <pre> 
  DirectoryIndex index.html index.html.var index.php 

  HostnameLookups On 
  </pre> 

 *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. 

   <pre> 
      ServerName YourSever.yourdomain.edu   
     
      UseCanonicalName On 
   </pre> 
 
 5. Restart the web server. 

 <pre> 
 apachectl restart 
      or 
 sudo /sbin/service httpd restart       (ON CentOS/RHEL/Fedora) 
      or 
 /etc/sbin/rcapache2 restart     (ON SuSE) 
      or 
 /sbin/service httpd restart 
 </pre>                   

       If you want to start the web server automatically at boot on SuSE 

 <pre> 
 sudo /sbin/chkconfig apache2 on    #SuSE 
 sudo /sbin/chkconfig httpd on    #CentOS/RHEL/Fedora 
 </pre> 

 See also: "How to start Apache at Startup on Centos or Red Hat Enterprise Linux using chkconfig":http://thevagabondgeek.com/12-how-to-start-apache-at-startup-on-centos-or-red-hat-enterprise-linux-using-chkconfig. 

 ______ 
 
 [[Configure php.ini|< Configure php.ini]] | [[Check php information|Check php information >]] 

 ______