Apache server installation on CentOS, RedHat Linux

Apache web server referred to as simply Apache is a public-domain open source Web server developed by open community of developers. The application is designed to run on a wide variety of operating systems like Unix, FreeBSD, Linux, Mac OS X, OS/2. Visit http://www.apache.org for more details.

In your terminal, issue the following command (by default, httpd is installed). This will install apache if it was not installed.

Step 1:
[root@user Desktop]# yum install httpd

Step 2: To start apache as a service on boot, issue the following command
[root@user Desktop]# chkconfig –levels 255 httpd on

Step 3: If you want to edit Apache server configuration settings open the httpd.conf (configuration file) to make changes by issuing the following command
[root@user Desktop]# /etc/httpd/conf/httpd.conf

Step 4: Restart apache server if you have made changes to apache server settings in httpd.conf
[root@user Desktop]# /sbin/service httpd restart

Step 5: Visit http://localhost in your web browser and you should be able to see the Apache Test Page

Share

Written by kurinchiblogger


Website:

Leave a Reply

Your email address will not be published. Required fields are marked *