The purpose of the CGI service is to allow CS users to learn CGI programming and make small, dynamic sites in their course work.
These mechanisms are valid for any CS computer. linux.cs.uchicago.edu is recommended for anyone that understands (SSH), otherwise any machine in our lab will do.
To use our CGI server, you must first be registered in a class that requires it. Your instructor will let techstaff know of this requirement ahead of time and you will automatically get access.
All files related to the course will be hosted out of your home directory in a folder called
~/cs. A folder for the course you are taking will automatically be created in the
~/cs directory. For example:
Techstaff does set some extended permissions on these directories so they should not be moved. If you do end up moving or modifying them, it will result in you not being able to access your site.
You should not have to worry about modifying any permissions below the
PHP is a language designed explicitly for web programming. A single line in the file html/hello.php will do.
In this example please keep in mind that
<hostname> will be provided by your instructor.
<?php print("Hello World!\n"); ?>
You can run your php file from the command line:
Or from your browser:
For additional assistance with this service, email firstname.lastname@example.org.