seu logo     CS HELP CS Help Pages       home >> CS Web Pub

Help with Publishing a web page on the CS sytem

In order to publish (put up a web page) a page on the cs web server you must complete a few tasks. In general, you must create a www directory from your home directory. From the www directory, create an HTML directory. Each of these directories (the www and the HTML directory) must be readable and executable. All of your web pages must be placed somewhere within your www/HTML directory. All subdirectories or folders below your www/HTML directory structure must be readable and executable. All pages to be published must be readable to the world. CGI pages must be executable and placed in a cgi-bin directory within the www/HTML directory. All cgi pages must be executable and readable.

Complete the following steps ONE time:

  1. In your home (login) directory, make a directory named www.
    /seu/cs/home/user/l/lbaker/#     mkdir www
  2. Set the permissions of that directory to readable and executable by all.
    /seu/cs/home/user/l/lbaker/#     chmod 755 www
  3. Set the permission of your login directory to readable and executable by all.
    /seu/cs/home/user/l/lbaker/#     chmod 755 $HOME
  4. Change to your www directory.
    /seu/cs/home/user/l/lbaker/#     cd www
  5. Now create a directory (within www) named HTML.
    /seu/cs/home/user/l/lbaker/www/#     mkdir HTML
  6. Set the permissions of that directory to readable and executable by all.
    /seu/cs/home/user/l/lbaker/www/#     chmod 755 HTML (do this within the www directory).
  7. Now change to your HTML directory within your www directory.
    /seu/cs/home/user/l/lbaker/www/#     cd HTML
  8. Now for example, you could put a home page (a file named index.html) into your web home directory (in your www/HTML directory). Any and all files placed in your www/HTML directory with readable permission by all can be viewed from the cs server under your the web path to your home directory. For example if your username is jgarcia2, then your home page (if you have an index.html file) should be viewable at: http://www.cs.stedwards.edu/~jgarcia2/index.html.

To create pages within your home web page on the CS web server, you may want to organize pages by subdirectories. To do this :

  1. To create a subdirectory under your cs home web site named for example, cosc2125
    /seu/cs/home/user/l/lbaker/www/HTML#     mkdir cosc2125 (from within www/HTML directory).
  2. Set the permissions of that directory to readable and executable by all.
    /seu/cs/home/user/l/lbaker/www/HTML#     chmod 755 cosc2125
  3. Now create or place a file to be published on the cs website in your www/HTML/cosc2125 directory.
    cp Student.html ~lbaker/www/HTML/cosc2125    
  4. set the permissions of that file (Student.html) to readable by all.
    /seu/cs/home/user/l/lbaker/www/HTML/cosc2125#    chmod 644 Student.html
  5. now open the page, Student.html, in your cosc2125 directory from the browser :
    http://www.cs.stedwards.edu/~lbaker/cosc2125/Student.html

Remember any directory that is to contain web pages below your www/HTML directory must have readable and executable (755) permission. Any web page must have readable (644) permission. To look at your permissions in any directory the command is:     ls     -l

To create cgi scripts

You must create a cgi-bin directory under your www/HTML directory. This directory must have permissions 755. Example from your home directory create the cgi-bin directory:
/seu/cs/home/user/l/lbaker/#     mkdir www/HTML/cgi-bin

Next, set the permissions on the cgi-bin directory to be readable and executable.
/seu/cs/home/user/l/lbaker/#     chmod 755 www/HTML/cgi-bin

Now all .cgi files must be placed in your cgi-bin directory. All cgi files must have readable and executable permissions (755).