skip to main content

Website Setup

All students with a Department of Computer Science & Engineering Computing Account have web space to use for web pages, scripts, files, etc. The content of the student website may be of their choosing, so long as it does not violate the terms of the University of Nevada, Reno Computing & Network Usage Policies or the Department of Computer Science & Engineering Computing Account Policy.

Accessing Your Website

Student webpages are accessible on the Internet at the address http://www.cse.unr.edu/~username, where username is the computing account login of the student.

Webpages, as well as any other content that students wish to make available online, should be placed in the "public_html" directory of their home directory. Students may create subdirectories and place files within the "public_html" directory as they see fit.

File management may be carried out at any Department of Computer Science & Engineering workstation, or via one of the remote access programs listed in the Remote Access Software section.

Permissions

When adding files to a website -- that is, by placing them in the "public_html" directory of a home directory -- students must ensure that a file has the proper permissions set. If a file has incorrect permissions set, it will not be accessible on the website or may allow unauthorized users to modify it. Permissions may be set on a file using the command "chmod permissions filename". Typical permissions that are applied to web content files and directories are as follows:

  • chmod 701 directory: Allows a directory to be accessed on the Internet - called "world executable"
  • chmod 701 filename: Allows a file to be executed (e.g. a script) - called "world executable"
  • chmod 705 directory: Allows the contents of a directory to be listed on the Internet
  • chmod 705 filename: Allows a file to be accessed (read) on the Internet - called "world readable"

All directories within the "public_html" directory should be set "world executable", and all files should be set "world readable" for proper Internet access.

How To: Setup Your Website

From the home directory of your CS account (which is not the same as your ECC account), create a directory called "public_html."

mkdir public_html

Change the permissions of your home directory and your "public_html" directory to be "world executable."

chmod 701 public_html
chmod 701 $HOME

You may optionally copy the sample home page into your "public_html" directory. Otherwise, create a file in your "public_html" directory called "index.html" (or "index.php" for PHP pages).

cp ~webmastr/index.html public_html/

Change the permissions of your "index.html" file to be "world readable."

chmod 604 public_html/index.html

Create additional webpage files in the "public_html" directory. You can also place webpages into subdirectories. One must remember to change the permissions of subdirectories to be "world executable" and to change the permissions of additional webpage files (and images, etc.) to "world readable."

Your home page should now be accessible at http://www.cse.unr.edu/~username, where username is your computing account username.

Take the next step...