Step 2: Create a www Directory-Computing Services - Carnegie Mellon University

Step 2: Create a www Directory

To create a www directory, follow the appropriate steps for:

Course Pages

Your website files will be stored in a www directory in your Project Volume. When you are ready to "publish" your website (i.e., make available to the public), the server copies these files from your www directory to the server.

Follow these steps to create a www directory:

  1. Log into your Andrew account. If you are using a Macintosh or a Windows computer, you will need to use a telnet client to login to your account. We recommend using the following telnet clients:
    • Windows: Tectia
    • Mac: Terminal

      Use the following settings to establish your telnet connection:

      Host: unix.andrew.cmu.edu
      Userid or User Name: Your Andrew UserID
      Password: Your Andrew Password
  2. Type the following command to change your working directory to the Project Volume for the course:

    cd pathname

    where pathname is the path you were given when you requested your Project Volume.
  3. At the prompt, type the following unix command to create the www directory:

    mkdir www

    This creates a www directory (the directory in which your website files will be stored). You'll also need to complete the following step to set access rights. Access rights gives the server read access to your www directory. Failure to perform this step will cause your website to be unaccessible.
  4. While still at the top level of your www directory, type the following UNIX command:

    fs sa www system:anyuser rl

  5. You may close out the telnet client and proceed with Step 3: Transfer Your Website Files.

Personal Pages

All Carnegie Mellon affiliates are provided space on the Andrew File Server (AFS). Your personal website files must be contained within a directory named "www". When you are ready to "publish" your website (i.e., make available to the public), the server copies these files from your www directory to the server.

Follow these steps to create a www directory:

  1. Log into your Andrew account.

    If you are using a Mac or Windows computer, you will need to use a telnet client. We recommend using the following telnet clients:
    • Windows: Tectia
    • Mac: Terminal (or the native SSH client)

      Use the following settings to establish your telnet connection:

      Host: unix.andrew.cmu.edu
      Userid or User Name:
      Your Andrew UserID
      Password:
      Your Andrew Password
  2. At the prompt, type the following unix command to create the www directory:

    mkdir www

    This creates a www directory (the directory in which your website files will be stored).

    If you generate a message mkdir: cannot create directory 'www': File exists your www directory has already been created.

    You'll also need to complete the following step to set access rights. Access rights gives the server read access to your www directory. Failure to perform this step will cause your website to be unaccessible.

  3. While still at the top level of your www directory, type the following UNIX command:

    fs sa www system:anyuser rl

  4. You may close out the telnet client and proceed with Step 3: Transfer Your Website Files.

Last Updated: 10/14/15