Array
University of Oregon

Where should your website live on the server?

When you are working on your 110 website on your own computer, you keep all the files in a 110 folder. The 110 folder will  have several subfolders for content.

You will now create a 110 website folder on the uoregon.edu server that mirrors your local file structure.

Note: folders on a Unix server like uoregon.edu are called directories.

  1. Login to shell.uoregon.edu.
  2. At the shell, enter this command: pwd
    The pwd command (print working directory) writes the full pathname of the current working directory.Memorize the path to your home directoryExample: /home7/susanQ/
  3. Follow theses steps to create your personal 110 website on the server.
    1. Copy this wget command:
      wget http://CIT:CIT@pages.uoregon.edu/michaelh/bin/110-setup.rb
      
    2. Paste the wget command into the shell, and hit Enter. This copies a program named 110-setup.rb into your home directory on the server.
    3. Verify that this file is in your home directory with this command:  ls
      ls is a shell command that lists the contents of the current directory.
    4. Run the program by typing this Unix command into the shell, and then hitting Enter:
      ruby 110-setup.rb
    5. When prompted to enter an .htaccess password, enter the middle three digits of your UO 95#.
      IMPORTANT! When you enter the three digits, they will not be echoed (i.e., displayed on the screen), for security.Just type in your three digits and then hit Enter.You will be asked to enter the digits one more time. Type in the digits again and hit Enter.
    6. Hit Enter to any remaining prompts to finish out this interactive script.

The program you just ran in the shell created a web directory named 110 in your public_html directory on the uoregon.edu server. It has the same sub-folders as the 110 folder on your computer(css, js, p1, p2, …).

Furthermore, the 110 web directory on the server is password-protected by the htAccess protocol (hypertext-Access). If anyone tries to open your 110 website in their browser, they will be prompted to enter the following htAccess credentials:

htAccess-userName: 110
htAccess-password: the middle three digits of your UO 95#


Test your 110 Website on the UOregon.edu Server

Open the following URL in Chrome, substituting your UO DuckID username for SusanQ’s:

http://pages.uoregon.edu/susanQ/

You will see a directory listing for your public_html web directory.

Note that your 110 folder is not listed. This is a feature, not a bug: htAccess is hiding your 110 website for security.

Add 110 to the URL:

http://pages.uoregon.edu/susanQ/110/

You will be prompted to enter your htAccess credentials.


Make Sure your .htAccess Password is Correct

If you made a mistake setting your .htAccess password and it is something other than the middle three digits of your 95#, then your 111 projects cannot be accessed for grading.

You will get zeros (0) on your projects until this blocked access is fixed.

See your instructor or GTF asap to get this fixed.

Skip to toolbar