Changes

Jump to: navigation, search

OPS335 Lab 6

8 bytes added, 12:38, 4 May 2017
m
changing domain to .ops
#Using a text browser such as lynx on vm1 go to localhost. You should get the "Fedora Test Page" which indicates your web server is running on the local virtual machine.
#Make certain to configure your firewall to allow access to the httpd service (i.e. the Apache serves HTTP traffic which goes over TCP port '''80''') and to update the firewall_restore script to include it.
#Open a web-browser in your '''host''' machine and enter the following URL: '''vm1.youruserid.orgops'''.<br />If you setup your Apache webserver correctly, you should be able to view the Apache Test page.
#Although we will not be exploring webservers in depth, we will have you create a simple webpage for testing purposes, then later setup a web resource for webmail.
#The term '''DocumentRoot''' specifies where the Apache webserver will search for documents to serve. Create the file '''index.html''' in your '''DocumentRoot''' directory with the following contents (replace the date with the current one):<br><source>Hello, this is a web page on vm1.youridyouruserid.org ops and the current time is Mar 28 22:16:27 EDT 2016!</source>
<ol><li value="9">If you refresh your web-browser page in your browser, you should see the contents of your ''index.html'' document. If you wish, you can specify the filename index.html in the address, but it is not necessary, since the file index.html is automatically loaded by default when the URL refers to that directory containing that file.</li></ol>
'''Perform the following steps:'''
#Copy the '''index.html''' file to '''index.php''' and modify it to contain:<br><source>Hello, this is a web page on vm1.youridyouruserid.org ops and the current time is <?php system("date"); ?>!</source>
<ol><li value="2">On your host machine, again refresh your web-browser. Notice that in a web browser the ''index.php'' file isn't treated as a default page and the contents don't contain the date, but instead are displaying the text in the php code you entered into the index.php file (refer to above code).</li>
932
edits

Navigation menu