Installing Apache2
Apache2 is available as a CentOS package, therefore we can install it like the following:
[bash]yum install httpd[/bash]
Now configure your system to start Apache at boot time and start Apache:
[bash]
chkconfig –levels 235 httpd on
/etc/init.d/httpd start
[/bash]
Now open your browser to http://10.10.3.100 (this was my server IP), and you should see the Apache2 default page:
Apache’s default document root is /var/www/html on CentOS, and the configuration file is located at /etc/httpd/conf/httpd.conf. Additional configurations are stored in the /etc/httpd/conf.d/ directory.
Installing Apache is done!
Leave a Reply