Changes

Jump to: navigation, search

OPS335 Lab 5

31 bytes added, 16:47, 29 March 2016
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.
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. #'''DocumentRoot''' specifies where Apache will look for documents to serve. Now create Create the file '''index.html''' in your DocumentRoot directory with the following contents (replace the date with the current one):
<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 ===
13,420
edits

Navigation menu