Computer Account Policy
How to post your webpage
Log on to a Linux computer, say pc00.cs.siu.edu
Create a directory called public_html under your home directory, which is /home/your_login_id.
Change the mode of the public_html directory and your home directory to worldwide executable
- chmod o+x public_html
- chmod o+x /home/your_login_id
Put your index.html file under the public_html directory you just created.
Use a browser like Netscape Navigator or Microsoft Internet Explorer to open your webpage. The path is: http://www.cs.siu.edu/~your_login_id/
How to run your cgi program
Refer to How to post your webpage above and do step 1 through 3
Create a directory called cgi-bin under your public_html directory.
Change the permission of the cgi-bin directory to worldwide readable and executable
Put your cgi file under the cgi-bin directory and change permission of the cgi file worldwide readable and executable
- chmod o+rx your_cgi_file_name.cgi
Now you can run your cgi program by issuing commands like http://cslab.cs.siu.edu/~your_login_id/cgi-bin/your_cgi_file_name.cgi
Examples: A Perl Script (saying Hello) and A Bourne Shell Script (listing system variables)