Writing Your Own Web Pages

You should have been automatically set up with an official home page when you joined the Statslab, but you can also have a personal home page. To set up your personal home page, first you need to create a public_html directory where your web page will go:

cd
mkdir public_html

Your personal home page is a file called index.html in your public_html directory. You can also put other HTML files in there and link to them from your home page, or copy other types of file and link to them so as to make them available to the world. If you need help with writing HTML, Andrew Burbanks has written a brief introduction, and I have a book you can borrow.

Once you've set up your web pages, test them by trying to view them with a web browser. The URL of your home page is http://www.statslab.cam.ac.uk/~username/, replacing ``username'' with your username. If you get a ``403 Forbidden'' error message instead of your web page, this is a file permissions problem. Read on to find out how to fix it.

Your public_html directory, and its contents, must be accessible to other Statslab users for your web pages to work, since if other users can't read the files in there, the web server won't be able to either. The following commands render your web directory accessible without allowing anyone to read any of your other files. (To be precise, they allow the web server to change directory to your home directory and from there to your public_html subdirectory.)

cd
chmod a+x .
chmod a+x public_html

Also, the files in your public_html directory need to be world-readable. The commands to achieve this are:

cd ~/public_html
chmod a+r *

When you're satisfied with your web pages, email Julia or me to have a link to your personal home page added to the list of members of the Laboratory.