Monday, 4 June 2012

Install and Configure Apache Server on CentOS

Install and Configure Apache Server on CentOS

Apache Server

Apache HTTP Server is an open-source HTTP server for modern operating systems including UNIX and Windows NT.  For more information on Apache HTTP Server, you can visit their website at httpd.apache.org.

Version

This documentation was written for Apache HTTP Server 2.2.3 but may be useful with other versions.

How to install Apache Server on CentOS, RedHat, Linux

Install Apache HTTP Server

yum install httpd


Note: This is typically installed with CentOS by default

How to configure Apache Server on CentOS, RedHat, Linux

Set the apache service to start on boot

chkconfig --levels 235 httpd on


  • Open the httpd configuration file located at /etc/httpd/conf/httpd.confMake the entry in ServerAdmin as root@<your VM's IP>
  • Un-comment the line containing the text ServerName:80 and add your VM's IP
  • Save the file

Restart the Apache HTTP Server daemon
 
service httpd start


How to test Apache Server on CentOS, RedHat, Linux

Visit <your VM's IP> in your web browser.  You should see an Apache Test Page.


Further Reading:

  1. Install and configure CentOS on VMware Workstation
  2. Install VMware Tools
  3. Add external HDD to the VM
  4. Update CentOS
  5. Install and Configure the Yum Priorities plug-in
  6. Install and Configure the EPEL Repository
  7. Install and Configure the Remi Repository

No comments :

Post a Comment