Step 1: Install httpd
yum install httpd
This will connect to the nearest CentoOS Mirror, download and install the Apache httpd service.
It will come with a default welcome page.
Step 2: Start the service httpd
service httpd start
You should now see the default welcome page on http://1.2.3.4:80 in your browser with 1.2.3.4 being your IP.
Optional: Set httpd to start on system boot
chkconfig httpd on
You have now completed the basic setup of a web server.
- Updated