Using Perl scripts with NCSA httpd
Here's what you'll need to do to the scripts to use them with your UNIX Web server. See Chapter 13 of The Web Server Handbook for more information.
- Change the first line of each script to reflect the location of the Perl interpreter on your system.
- Some scripts contain variables that you need to change; if this is the case, those variables will be at the top of the script.
- Some of the scripts' companion HTML pages contain links that need to be adjusted; they are marked by comments within the files.
- Change each file's suffix from .pl to .cgi.
- Put the scripts in the cgi-bin directory or make sure that you have added the "magic MIME type" (AddType application/x-httpd-cgi .cgi) to your srm.conf file.
- Make sure the scripts are executable. (If you're not sure, type chmod 755 filename.cgi.)
Back to the scripts index