Setting Up a Personal Site

Contents

Connect to mason.gmu.edu

First, follow these instructions:

Create the Web Folder

Once you have a mason> prompt, enter the following commands:

  1. mason> chmod 711 .
  2. mason> mkdir public_html
  3. mason> chmod 755 public_html

    createwebfolder

    Creating a Web Folder

NOTE: Please use spaces in between like: chmod <space> 711 <space>period<enter>

Once you are done with these three steps succesfully, the mason prompt should look the screenshot to the right.

 

Common Issues

I get an error when I run the first command
Example:

mason> chmod 711

 usage:  chmod [-fR] <absolute-mode> file ...
       chmod [-fR] <ACL-operation> file ...
       chmod [-fR] <symbolic-mode-list> file ...
 where <symbolic-mode-list> is a comma-separated list of
       [ugoa]{+|-|=}[rwxXlstugo]
 where <ACL-operation> is one of the following
       A-<acl_specification>
       A[number]-
       A[number]{+|=}<acl_specification>
 where <acl-specification> is a comma-separated list of ACEs

Explanation: The command needs to include the period. It also has spaces between chmod, 711, and the period. chmod<spacebar>711<spacebar>.

I get an error when I try to run the mkdir command
Example:

mason> mkdir public_html
mkdir: Failed to make directory "public_html"; File exists

Explanation: You have already created a public_html folder, skip step 2 and move on to step 3.

Nothing happens when I run the commands

Explanation: If the commands run properly you should be returned to the mason> prompt. Here is an example of commands that ran successfully
mason> chmod 711 .

mason> mkdir public_html
mason> chmod 755 public_html
mason>

I ran all the commands but I still don’t see my website

Explanation: Ensure you have uploaded at a minimum an index.html folder into your public_html directory only after you Fix Server Upload Permissions. You should also double check that you are uploading your files INTO your public_html directory and not directly into your home drive. Finally, please ensure you are trying to go to the correct URL. It should be http://mason.gmu.edu/~userid (tilde and then your userid)

The first command changes the permissions on your home directory so your public_html directory can be viewable. The second command creates a public_html folder. The third assigns appropriate permissions to it.

Note: The webserver is case sensitive. If you create files or folders with capital letters, you must enter these in your URL. It is recommended NOT to capitalize file or folder names.

Fix Server Upload Permissions

By default, newly uploaded files aren’t available through the web browser. Follow this tutorial to adjust this setting:

Note: Changing the upload permissions will affect any files uploaded to mason.gmu.edu. If you have files that should be private, be sure to give those files proper permissions after uploading.

Upload Files

Files can be placed in the public_html folder, and they will be available at http://mason.gmu.edu/~username/filename.

Opening Your Website on the Server

Once you have uploaded your files, all you need to do is to go to your browser and enter “mason.gmu.edu/~<username>“.

If you have followed all of the above steps successfully, then you should be able to view your website.

Last Updated: September 29, 2016