- Create the following directories in your home directory:
% cd
% mkdir -p cs898n/htdocs
- Change the permissions of some directories:
% cd
% chmod 711 .
% chmod 711 cs898n
% chmod 711 cs898n/htdocs
- Write your first CGI program in directory ~/cs898n/htdocs
% cd ~/cs898n/htdocs
% 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://kira:8888/cs898n/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.