Lehigh Web Authoring-- Info for SC's

Lehigh's web setup

The RNCI web server for Lehigh: www3.lehigh.edu

The Lehigh main webserver: www.lehigh.edu

Lehigh web pages live on the AFS file servers (like LAN servers for the AIX workstations):
/afs/cc.lehigh.edu/home/userid/public/www-data/

(anyplace in this document were userid is used, it means the account's Lehigh username)

That directory can be accessed through the Network server or Compute Server as:
/ahome/userid/public/www-data/
If the W3setup procedure has been run on the account in the last couple of years, there's a symbolic link (sort of a directory alias) from the Network Server (ns.cc.lehigh.edu) to the webspace, via the directory named webspace

On the web, people's webspaces are accessible as
http://www.lehigh.edu/~userid/
also: https://www.lehigh.edu/~userid/

Most people's webspaces (if they ran W3setup in the last couple of years), have a default web page that comes up when you go to that directory with a web browser. The real name of that page is userid.html (it is created by the W3setup process), but there is a symbolic link called index.html. The server looks for an index.html file to display when a browser asks for a 'naked' directory name (one without a filename attached). If there is no index.html (or no file with the alias index.html), the directory listing will be displayed.

In order to use/access/publish to the webserver, users must run W3setup on their account, from the Account Maintenance webpage (www.lehigh.edu/account). W3setup does four things:

  1. Sets up the web page directory (/afs/cc.lehigh/edu/home/userid/public/www-data/)
  2. Creates the main/default web page userid.html
  3. Creates a symbolic link, index.html to the file userid.html
  4. Creates a symbolic link to the web page directory in AFS space, from the Network Server-- a 'directory' called webspace
Note that in order to get a departmental or group webspace, they will have to request an account for the department or group -- send them to Kelly Decker (FM294) or Margaret Petrovich (FM392) for the form.

There are two ways to put material up on the web page from a local computer (ok, three, but FTP is going away)

  1. If you use Netscape Composer, you can publish to https://www.lehigh.edu/~userid/
  2. Otherwise, you should use SSH's File Transfer Client to connect to ns.cc.lehigh.edu and go into the webspace or /ahome/userid/public/www-data/ directory. Then you can either use the Upload command from the Operations menu or drag and drop your files in the the SSH window to upload them.

Web page editors

There's about a million ways to edit HTML files (web pages). Here are some:

Frequently asked Questions:

Where do Lehigh personal web pages live?
They live in the user's AFS space (like LAN space for the AIX workstations), in a special directory: public/www-data/
They can be viewed from the www.lehigh.edu server at www.lehigh.edu/~userid/ where userid is the person or group's userid.
How do you start editing your web page?
Begin by running W3Setup from the account web page (http://www.lehigh.edu/account); this will create the directory, create a sample homepage (userid.html which is aliased to index.html), make a shortcut to that directory from the network server. Then you can use Netscape Composer to edit/publish pages to the site; or upload pages to the site with SSH.
How do I edit pages with Netscape?
Bring the page up in Netscape. Then choose Edit Page from the File menu. When you've finished making your changes, click the Publish button. Change the 'Publish to' location to https://www.lehigh.edu/~userid/whatever so that you can publish it.
I'm trying to publish a page and I'm giving the right userid and password but I get an authentication/permissions error.
Assuming the web space exists... if someone has published once using one userid and password, before they can publish again with a different userid and password, they need to restart Netscape. (Netscape stores the original userid and password and helpfully provides them instead of the ones you are typing in.)
What's https?
There are two servers living on the machine at www.lehigh.edu. One is 'insecure', http://www.lehigh.edu; one is 'secure', https://www.lehigh.edu. Both servers access the exact same files in the webspace/AFS space. If a web page is asking for a userid and password, or if you are using Netscape Publish (which requires a userid and password) you need to use the https:// server so you don't spread the password over the Net!h

The I-can't-publish-to-my-webspace checklist

  1. Have they ever run W3setup? If they aren't sure, have them run it again.
  2. Do they know where to publish to?

  3. https://www.lehigh.edu/~userid/
  4. Do they have the right userid and password?
  5. Are they actually trying to publish the page, or do they think merely editing and saving the file should make the page change on the server?
  6. Have they exceeded their AFS disk quota? Have them check the Disk Quotas section on the Accounts page. The forms for increasing AFS space are available from Kelly Decker.
  7. Have they published to another directory with a different userid and password previously? If so, have they shut down and re-opened Netscape? (You can have them try ftp://ns.cc.lehigh.edu/ahome/userid/public/www-data/ , at least for now.)
  8. Are they using Netscape? If not, they will have to use SSH and connect to ns.cc.lehigh.edu, and change directories to webspace or /ahome/userid/public/www-data/
  9. If they say the page uploaded but they can't see the changes, have them refresh the page. (If they changed the file name of the page and changed a link to reflect that, they need to refresh the LINKING page, not the page linked to.

What to do if 'my link doesn't work'!

Get the URL of the web page (if they have published it)

If they haven't published it, they may still be editing it. In that case, clicking on the link in Netscape Composer or Dreamweaver certainly won't work.

If they have published the page, look at the offending link.

Checking out what they really have in their Webspace

Because webspace is in the public area of people's AFS space, you can view directories and files by ssh'ing to the Network server (ns.cc.lehigh.edu) and log on as yourself. You can then type shell to get to the UNIX prompt, and then cd /ahome/userid/public/www-data/ to see a file listing. You can also do this by using SSH File transfer to login to ns.cc.lehigh.edu, then choose 'Go to Folder' from the Operations menu, and go to that directory. If you use File Transfer, you can then look at files by clicking on them.

Getting pages from 'yesterday' directory

AFS accounts include a 'yesterday' directory' which is an complete copy of everything that was in the account as of 2:00 am. If someone accidentally overwrites or deletes a file from their webspace, it can be retrieved from their yesterday directory as long as they don't wait past 2:00 am. To do this:
  1. Use SSH File Transfer to connect to ns.cc.lehigh.edu (using the account where the file is missing)
  2. Choose 'Go to Folder' from the Operations Menu. Go to /ahome/userid/yesterday/public/www-data/
  3. Find the file.
  4. Download the file. (click on it and choose Download from the Operations menu.)
  5. Choose 'Go to Folder' from the Operations Menu. Go to /ahome/userid/public/www-data/
  6. Upload the file from the hard drive (Choose Upload from the Operations menu and choose the file)
  7. Check to see that the file has been replaced (they'll need to reload it on their browser)
  8. Choose Disconnect from the File menu, then choose Close from the File menu.
Or, you can do it all from the command line.
  1. Have them use SSH Client to connect to ns.cc.lehigh.edu and login as themselves.
  2. Have them type shell to get to the UNIX prompt.
  3. Have them type cd webspace to get to their webspace
  4. Have them type cp /ahome/userid/yesterday/public/www-data/filename filename
  5. Check to see that the file has been replaced (they'll need to reload it on their browser)
  6. Have them type exit, then logout.