Open main menu

CDOT Wiki β

Changes

OPS335 Lab 5

823 bytes added, 22:22, 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.
 
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 - you'll get a 403 error. That means that the Apache user (that runs httpd) doesn't have access to the html file you've just created. Check the full path to that file and fix any parts that prevent Apache from reading that file.
= PHP =
= MySQL =