Changes

Jump to: navigation, search

OPS335 Lab 5

71 bytes removed, 21:28, 28 March 2016
Apache
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. Change this to '''/home/html''' and delete the file '''/etc/httpd/conf.d/welcome.conf'''.
Now 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>
If you refresh the page in firefox Firefox - you'll get a 403 errorshould see the contents of your index. That means that the Apache user (that runs httpd) doesn't have access to the html file . If you've just createdlike - you can specify the filename index. Check html in the full path to that file and fix any parts that prevent Apache from reading that fileaddress but there's not need since it's a default.
= PHP =
= MySQL =

Navigation menu