Making Web Pages, 1: Getting Started
This setup process changes file permissions, which permit other people to look at your file. The illustrations in the document are commands given from a Linux or Unix shell prompt, which can be used from a Linux workstation or by using WinAxe on a Windows computer to connect to Unix.
The command chmod (an abbreviation for "change file mode access"; pronounced "see aitch mod") changes file permissions. The syntax of the command is chmod, a space, the file settings you want, another space, the name and path of the file. Examples of use are given below.
A web site starts with a web page named index.html. This page is what appears when people type in your web site URL (http://www.engineering.uiowa.edu/~loginID). Any web page, including this one, is simply a text file filled with HTML commands. We have a sample web page that can be copied into your public_html directory to get started (all commands given are Linux/Unix commands):
| Start a Home Page in Your Web Directory | |||
| 1. | Command: | cp /usr/ui/class/examples/html/qkstart.html ~/ | |
| Does: | Copies a template web page into your home directory. You do not have to use this page, but it is a good starting point for beginners. Do modify this page before you publish it. | ||
| 2. | Command: | mv ~/qkstart.html ~/public_html/index.html | |
| Does: | Moves the template page into the web directory and renames it. | ||
| 3. | Command: | chmod a+rx ~/public_html/index.html | |
| Does: | Makes your home page file readable by web browsers. | ||
| or |
|||
| Command: |
chmod 744 ~/public_html/index.html |
||
| Does: |
Makes your home page file readable by web browsers. |
||
Even though there is nothing on your newly created page, you (and the world) can see it at the URL: http://www.engineering.uiowa.edu/~loginid
If you are using HTML authoring software (Dreamweaver, for example), you must still create and set the permissions on the public_html directory as described above to make visible the web pages you create.
Go on to step 2 to learn how create your web pages or step 3, guidelines.
![]()
CSS | College of Engineering | © The University of Iowa 2008.
All rights reserved. |