Creating personal undergraduate web sites

Requirements

Procedure

  • connect to linux.student.math
  • create a public_html directory for your web space:
    • mkdir ~/public_html
  • the public_html directory (and any directories underneath it) must be accessible to everyone:
    • chmod 755 public_html
    • cd public_html
  • to get started, create a file named index.html.  The easiest way is to use a simple text editor like nano:
    • nano index.html
  • as with the directories, your index.html file (and any other files you create for your web space) must be readable by everyone:
    • chmod 644 index.html
  • or get advanced with CGI
    • nano index.cgi
    • #!/usr/bin/php-cgi
      <?php 
         echo "test";
      ?>
  • CGI files, in addition to being readable, must be executable by you:
    • chmod 0744 index.cgi
  • the site should now be accessible at www.student.math.uwaterloo.ca/~UWuserid