Web Publishing

Q. How do I publish my web pages on the department WWW server?

There are two web servers:

  1. www.cs.sunysb.edu
  2. intrawww.cs.sunysb.edu

and a system to allow direct access to your web pages on www.cs.sunysb.edu: editwww.cs.sunysb.edu

intrawww.cs.sunysb.edu is a web server which supports courses needing web access AND as a place to prototype your web pages before publishing them on www.cs.sunysb.edu. intrawww mounts your departmental home directory.

editwww is a system which you can log into using the SAME login as your CS dept account. You can edit, move, delete, ftp, rcp, scp your www (www.cs.sunysb.edu) files using editwww as the access machine. Remote access requires use of SSH ver 2.

www.cs.sunysb.edu is the dept web server which the world will contact to look for dept web based information.

The flow of web page creation
Directory setup, Editing, Testing

  • You can prototype your pages using intrawww as the web server. intrawww mounts all the departmental user filesystems so you can work from your home directory.
  • Make a directory called public_html in your home directory. Make sure that you have world readable on this directory and its contents otherwise you will not be able to view your files on intrawww.
  • To see the access logs or the error logs on intrawww, you have to go to http://intrawww.cs.sunysb.edu/webadm-cgi-bin/viewlogs.cgi
  • Within your ~/public_html directory an index.html file will be the starting point for your web pages on intrawww.
  • CGI on intrawww.cs.sunysb.edu
    All (99.99%) dept accounts have cgi access on intrawww enabled to allow prototyping of cgi scripts. Your cgi scripts go in your home directory under a directory called cgi-bin (/home/stufs1/name/cgi-bin for example). The directory and its contents have to be world readable (not world writable).
  • At this point the process is: edit your stuff (html or cgi on any departmental machine) and point your browser at intrawww/~<your login> to verify the results.
    IMPORTANT NOTE: intrawww is NOT available outside the csdept network. intrawww IS available through the grad office Suns, Pub lab, grad NT lab, compserv's, faculty and staff systems.
Publishing on www (copying files, cgi script changes)

www (www.cs.sunysb.edu) is the server the world contacts to view information about the CS department. Your files from www are available on editwww so you can have direct access to them.

  • You can copy the contents of your departmental public_html directory to editwww using rcp, scp, ftp. You *may* have to update your .rhosts file on editwww to allow rcp to work without a password. If you add a hostname to your .rhosts file use the FULLY QUALIFIED hostname: name.cs.sunysb.edu
  • Editing Web pages which reside on www (www.cs.sunysb.edu) You can log into editwww.cs.sunysb.edu and edit your web pages which will be accessed via www (www.cs.sunysb.edu). Your login name and password are assigned to you and DIFFER from your department password. editwww has emacs in /usr/shareware/bin/emacs and vi in /usr/ucb/vi
  • To see the access logs or the error logs on editwww, use the tail command. For example,
    tail ~nsserver/https-www/logs/errors
    will give you the last 10 error logs
    tail ~nsserver/https-www/logs/access
    will give you the last 10 access logs.
  • CGI on www (www.cs.sunysb.edu) You should write and test your cgi files on intrawww. Once you are done, send a mail to webadm AT cs DOT sunysb DOT edu asking him/her to enable cgi access. CGI access is disallowed by default on www.cs.sunysb.edu. CGI access on www is not for the purpose of running experiments. www is the dept production web server.
  • Review your web pages by pointing your browser at www.cs.sunysb.edu Hopefully at this point all is well and you're done.

In summary,


Servers / Machines intrawww.cs.sunysb.edu Grad office Suns, Pub lab, grad NT lab, Compserv's, Faculty and Staff systems.
html pages http://intrawww.cs.sunysb.edu/~login
For example, http://intrawww.cs.sunysb.edu/~foo
home directory/public_html
For example, /home/stufs1/foo/public_html
cgi pages http://intrawww.cs.sunysb.edu/login-cgi-bin
For example, http://intrawww.cs.sunysb.edu/foo-cgi-bin
home directory/cgi-bin
For example, /home/stufs1/foo/cgi-bin


Servers / Machines www.cs.sunysb.edu editwww.cs.sunysb.edu
html pages http://www.cs.sunysb.edu/~login
For example, http://intrawww.cs.sunysb.edu/~foo
home directory/public_html
For example, /home/stufs1/foo/public_html
cgi pages http://www.cs.sunysb.edu/login-cgi-bin
For example, http://www.cs.sunysb.edu/foo-cgi-bin
home directory/cgi-bin
For example, /home/stufs1/foo/cgi-bin
Please note: CGI is disabled by default on www.cs.sunysb.edu. You have to send a mail to webadm AT cs DOT sunysb DOT edu to enable it.

CGI Tips

A few tips for CGI on intrawww and www
  1. The path for perl is /usr/local/bin/perl and not /usr/bin/perl
  2. If you used a PC to generate the files and ftp'ed it to intrawww/www, make sure you convert them to UNIX text files by using the utility "dos2unix".
  3. Make sure that the directories have 755 permission, so that the webserver can read and execute them. You can keep the upper level directories as 711 for additional protection.
The following are some important links that you can use before programming in CGI.

[FAQ by Index] [FAQ by Category]