Personal Web Pages



The department web server will display individual users' pages that are in $HOME/public_html folder. $HOME is an UNIX environment variable for your "home directory". Normally your home directory name is the same as your PHAS username so that the URL will be "http://www.phas.ubc.ca/~username".

Steps To Create Personal Web Pages

  1. Request that a personal web pages directory be set up for you by sending an email to sysa...@phas.ubc.ca.
     
  2. A link named "public_html" will be created in your home directory that points to your personal web pages directory on the web server.

    For example, a user with the loginname of "fred" with home directory /home2/fred will have the link /home2/fred/public_html created.

    Normally you would create a Hyper Text Markup Language (HTML) file named "index.html" in this directory. If you are not familiar with HTML, see the W3 schools html tutorial.

    After creating content in this directory (index.html plus any other files), the URL to see your content will be "http://www.phas.ubc.ca/~fred".

    NOTE: In order for files to be viewable by the public, permissions must be set appropriately on any files and directories under the public_html directory. You can set permissions explicitly via the unix command:
          chmod a+r 
          chmod -R a+rX  
    

How to Access (put content into) Your "public_html" Directory

The public_html directories are located on the web server which does not have login (ssh) access, so you must access them by one of the following methods:

  1. ssh into ssh.phas.ubc.ca, cd to /www/pubHtml/. Edit your files using your favorite editor (eg vim, pico).
     
  2. Use FileZilla to connect as above. Within FileZilla, you can right-click to edit any file. It will automatically download the file and open it in the default app for that file type. When you save it, the file is automatically uploaded again to the server.
Website development by Checkmark Media. Designed by Armada.

a place of mind, The University of British Columbia

Faculty of Science
Department of Physics and Astronomy
6224 Agricultural Road
Vancouver, BC V6T 1Z1
Tel 604.822.3853
Fax 604.822.5324

Emergency Procedures | Accessibility | Contact UBC | © Copyright The University of British Columbia