Web Directory Setup

Links for resources, services, and feedback:

Includes Information & Library Services related links

In order to publish a web page to the World Wide Web, you must create a directory in your abacus account, and make it accessible for viewing. You should only have to set up this directory, and the permissions to view it once. Depending on how you add additional directories to your public_html, you may also have to set the permissions for new directories in this way as well.

Note: In the following instructions, please make sure to include all the spaces and punctuation for each command. Otherwise you may be given an error "Command not found". If you get this error, check the punctuation and the syntax of your last command.

Log into Abacus with your abacus user id and password:
You should see a prompt:
abacus.bates.edu>
WIN: requires a third party application to establish a secure shell (ssh) connection to abacus. PuTTY is the recommended SSH client (and is fully supported by Help Desk Services).
A helpsheet on obtaining (free) and installing PuTTY can be found at:
http://www.bates.edu/x166688.xml
A helpsheet to configure PuTTY to connect to abacus can be found at:
http://www.bates.edu/x166686.xml
MAC: Applications: Utilities: Terminal:
Type in: ssh abacus.bates.edu Press return
Check for an existing web directory:
  • At the abacus prompt, type: ls -l
  • There is a space between the "s" and the "-"
  • If you see a public_html directory see below
ls stands for list. This command will show you the available files and directories.
-l stands for Long list format. This will show a detailed list view of the available files and directories.

Create a web directory:
  • Type: mkdir public_html
  • Press return
mkdir stands for Make Directory (named) public_html. A directory is the same as a folder you work with on your desktop. It contains other folders and files.

Check your work:
  • At the abacus prompt, type: ls -l
  • There is a space between the "s" and the "-"
  • If you don't see public_html return to step 3
This sets permissions for your group, and all others to Execute files in your web directory. chmod is the command to change permissions. (g) & (o) stand for Group and Other. The (+) symbol stands for add and (x) stands for Execute. The file or folder to which you are assigning these permissions is last.

Please also consult the basic steps for file permissions.

Make your account executable:
  • At the abacus prompt, type:
    chmod go+x .
  • There is a space after the "x" and then a period
  • Press return
This sets permissions to Execute files in your home directory. It will not allow others to read files within your home folder. It will allow access to the public_html folder however. The (.) stands for the currently open directory.

Close your abacus account:
  • At the abacus prompt, type: exit
  • Then FILE: Quit the ssh application
After you've uploaded your webpages, your URL will be:
  • www.bates.edu/~abacusID
  • For example: www.bates.edu/~hpotter