To create a webpage on Blue.
The Apache web server running on Blue will serve up web pages from ~/public_html as your website. The web server runs under the identity apache. You need to make sure the directory ~/public_html exists and is accessible to Apache.
Your home page will be served up from a file titled, index.html. In exercise 2, you created a directory called public_html within your home directory on Blue. Please enter the following commands:
To make your home page readable by the web server, you will need to change the permissions on one of these using the chmod command:
Since you want these things to be available to the web server with the goal of sharing them via the Internet, you could set the "world" permissions to give the web server access. Setting world permissions to 'rwx' is too permissive since other users on Blue would be able to modify your website by editing your files in your home directory.
How could this be done? One approach is to add all the permissions possible (rwx), verify it works by refreshing your home web page (index.html), and then incrementally take permissions away from your home page until the page is no longer displayed. If the web page is not visible, you must have taken away a required permission. Therefore, restore that permission and take away a different permission. Repeat until permissions are minimal for world access while making your home page visible.
Note: when the permissions are correct, the Apache web server on Blue will display "It worked" in your web browser when you access your page's URL in a browser.
Your home page should minimally have the following HTML tags:
Note: to upload images to Blue from an image you downloaded on a lab computer or your laptop, use secure FTP. Example: sftp username@blue.cs.sonoma.edu (substitute your login name on Blue for username)
The website should be written in valid HTML, per this validator: https://validator.w3.org/
Please submit the following for this assignment: