Creating Your Homepage

You will need to be familiar with basic UNIX commands in order to understand the following instructions. If not, take a look at the manual pages for the following commands: ls, mkdir, chmod. Use the "man" command to read a man page.


The first step is to create a public_html directory within your home directory.

% mkdir ~/public_html

Check the permissions on your home directory. They need to be at least 701 (world executable). If you're not sure, execute this command:

% chmod 701 ~

Check the permissions on your public_html directory. They need to be 711 (world executable.)

% chmod 711 ~/public_html

Create your home page. This is a text file called index.html within your public_html directory. If you want to edit the html directly, you can use a text editor such as pico, xemacs, emacs, or vim:

% cd ~/public_html
% vim index.html

Check permissions on all your WWW files. Anything you want readable on the Web needs to be 644 (world readable.) For example, after you create your index.html file above, do:

% chmod 644 index.html

Test your homepage. With your favorite WWW browser, open http://ce.sharif.edu/~<username>