Setting Up CGI Scripts on the CS Webservers
Revision as of 19:06, 14 April 2020 by Steve410 (talk | contribs) (→Creating Your First CGI Script)
Running your CGI script
To run your cgi-script via a web browser, use the following format (replace "username" with your username and "test.pl" with your script name.)
(Note: Your cgi-script should reside in your public_html/cgi-bin directory.)
- On the CS Grad Net: http://www.cs.jhu.edu/~username/cgi-bin/test.pl
- On the CS Ugrad Net: http://www.ugrad.cs.jhu.edu/~username/cgi-bin/test.pl
Creating Your First CGI Script
CS Faculty, Grad Students, Staff, Researchers and Post Docs: Log into one of the CS Grad Net Linux machines.
CS Ugrad Students: Log into one of the CS Ugrad Net Linux machines.
cd ~/public_html/cgi-bin
Create your CGI script in the cgi-bin directory.
chmod 704 test.pl # Replace the name "test.pl" with your script name.
- Note: If you're not sure what your public_html/cgi-bin folder permissions need to be, please visit: [https://support.cs.jhu.edu/wiki/File_Permissions_for_Webpages}