About CGI Access
CGI access is available to departments that would like to install their
own cgi scripts. To request this service, please complete the form below.
You will be notified via e-mail once your access has been enabled.
Note: Student organization accounts are not eligible for cgi access.
Setting Up Your Script
chmod 755 <filename>
PERL Scripts
To install a PERL script, follow these guidelines:
#!/usr/local/bin/perl
A useful way to find errors in Perl scripts is to run them at the command line in SSH. To access the Perl debugger, type the following command at the system prompt:
perl -d scriptname
Once in the debugger, type h for a list of commands.
PHP Scripts
If you are setting up a PHP script, please note that PHP works much the same as Perl on the UNLV web server. In order for your script to work, you must observe the following guidelines:
#!/usr/local/bin/php
C Compiler
To access the C compiler, type the following at the system prompt:
/usr/local/bin/cc <filename>
C++ Compiler
To access the C++ compiler, type the following at the system prompt:
/usr/local/bin/c++ <filename>
Mail Program
To access the mail program on tarantula, use the following path in your script:
/usr/lib/sendmail
Viewing Your Script
To see your script in action on the web, use the following URL:
http://www.unlv.edu/cgiwrap/login/scriptname
If a webpage is returned that says "CGIWrap Error: Execution of this script not permitted," it means you forgot to make your script executable.
Debugging Your Scripts
To assist in debugging your cgi script, use the URL listed below. This will allow you to see any errors output by the program during the run:
http://www.unlv.edu/cgiwrapd/login/scriptname
Requesting Assistance
Refer problems or questions to the Web Help Desk.