13,420
edits
Changes
no edit summary
#Install Apache (the package name is httpd), start the service, make it start automatically, and allow access to it through the firewall (Apache serves HTTP traffic which goes over TCP port 80).
#Now if you navigate to vm4.youruserid.org in a web browser in your host - you should see an Apache testing page.
#Delete the file '''/etc/httpd/conf.d/welcome.conf''' to get rid of the default page.
#We're not going to have a lot of time to study various Apache options so we'll tell you what you're looking for but you have to find it yourself.
<pre>Hello, this is a web page on vm4.yourid.org and the current time is Mar 28 22:16:27 EDT 2016!</pre>
<ol><li value="6">If you refresh the page in Firefox - you should see the contents of your index.html. If you like - you can specify the filename index.html in the address but there's no need since it's a default. </li><li>It may seem obvious - but notice that the time doesn't change as you refresh the page.</li></ol>
=== PHP ===