Web Pages

To set up a web page you must have a collection of HTML files that are the content of your pages. To create these, you'll need to know how to write HTML. It's quite easy to learn HTML. Take a look at the pages for the HTML Class that we gave a while ago for some places to start.

So if you have the HTML and other files for your web page, how do you get it up on the LPL web pages?

Begin by using ssh to connect to shell.lpl.arizona.edu and log in to your LPL UNIX account. In your LPL home directory, create a directory called public_html (you can do this with the command mkdir public_html). You have to make this directory world readable, so that everyone can see your webpage. To do this, you can use the command chmod a+r public_html, from your home directory. Now put all of the HTML files into this directory (or make more directories under this), and you'll be able to see them on the web.

The address of your new web pages will be:


where username is your username.

For example, the web address for rbeyer's web page is


Those are the basics! If you have questions, please email

LPL Webmaster / webmaster

This page describes how to place directories on your personal web page under password protection on the LPL systems. In addition, we encourage you to read through the appropriate Security Tutorials on the Apache site for more details.

Suppose you have your personal web page in your public_html directory (~/public_html) which can be reached at the web address of http://www.lpl.arizona.edu/~username. Within that webpage, you have a directory called secured (reachable viahttp://www.lpl.arizona.edu/~username/secured) that you would like to place password protection on, such that anytime someone tried to go to http://www.lpl.arizona.edu/~username/secured they would be asked for a username and password or the webserver wouldn't let them see it.

In order to accomplish this, you need to create two files: a password file that contains user information and an access file that the webserver looks for to instruct it how to do things.

First, you need to create that password file by running the htpasswd command. This command is installed on the LPL webserver at /usr/local/apache/bin/htpasswd, but only the root user can execute this program. When you are ready to have it run, send email to sys to request this.

The htpasswd command will create a password file called ~/public_html/secured/.htpasswdWARNING: DO NOT use your system password for this password. The password file that you are generating for use with your webpages is in your directories and is not as secure as the system password file. If you use your system password for this, your system account might get hacked.

Once you have the password file, you need to create the access file. This access file must be named .htaccess (with the leading period), otherwise the webserver won't be able to find it (just like your web pages must be in a directory called public_html). Use our favorite text editor to create and edit a file in our ~/public_html/secured directory called .htaccess, and in it, inserting the following lines:

AuthType Basic
AuthName "My Secured Area"
AuthUserFile /home/username/public_html/secured/.htpasswd
require valid-user

Now with both the .htpasswd and the .htaccess files, whatever directory they are in (and all of that directory's sub-directories) are now under password protection by the webserver.

There is a lot of functionality for this kind of security mechanism, and we highly suggest that you read through the Security Tutorials on the Apache site for a complete treatment of these issues. The level of security afforded by this method is adequate, but not high. If you have data that you feel requires a greater amount of protection or you have different authorization requirements, please consult

LPL Webmaster / webmaster

for more information.

  1. Login as lpluser (no password) to the Windows 2000 PC in Room 331. 
  2. Use Explorer to create a new folder under C:\users\yourname. 
  3. Double-click on the HP Precision Scan Pro 3.01 icon. 
  4. Place the first page of your lecture notes in the upper-right corner of the HP ScanJet 7400C's glass bed (face-down) and close the lid. 
  5. Click Scan -> New Scan. 
  6. Wait for the lamp to warm up (one minute). 
  7. Use the mouse to outline the area of the scanned page that you wish to record. 
  8. Click Scan -> Save As. 
  9. Navigate to c:\users\yourname. 
  10. Save the image as a PDF file (e.g., lecture_N.pdf). 
  11. Lift the scanner lid, replace page 1 with page 2, and close the lid. 
  12. Click Scan in the "Scan another page into current document" pop-up. 
  13. Repeat steps 11 and 12 until you've scanned all pages. 
  14. Click Done in the "Scan another page into current document" pop-up. 
  15. Click Scan -> Exit. 
  16. Arrange to have the lecture pdf file put on the web. 

If you have a web author who takes care of your web pages, either: 
Use Secure File Transer to copy c:\users\yourname\lecture_N.pdf to your home directory on hindmost, then email your author with the location of this file. 
Use LPL WebMail to email c:\users\yourname\lecture_N.pdf as an attachment to your web author. 

If you don't have a web author, use LPL WebMail to email the file as an attachment to webmaster, asking that the file be added to your class web pages. Please remember to specify your class name and section number.

Subscribe to RSS - Web Pages