Steps to Display Your HTML Files: (In courtesy to Dr. Ge)
- Create the following directories in your home directory:
% cd
% mkdir public_html
- Change the permissions of some directories:
% cd
% chmod 711 .
% chmod 711 public_html
- Write your first CGI program in directory ~/cs540/htdocs
% cd ~/public_html
% cat > hello.html
<html>
<body>
<center> <h1>Hello World!</h1> </center>
</body>
</html>
ctr+D <--- type control+D here
% chmod 644 hello.html
- Open a netscape browser window, and type the following URL in
location line:
http://www.cs.twsu.edu/~xyz/hello.html
where xyz is your account name. Type the return key
and you will see the "hello world" string displayed on the
screen.
Note: A much easier way to display the HTML file is to invoke the
netscape browser directly:
% netscape file:`pwd`/hello.html &
After you modified the HTML file, you just need to click the 'reload'
button on the netscape screen to view the changes.