DiscusWare, LLC.
Download Purchase Contact Us
Home
Support Home Documentation Knowledge Base Support Forums Support Request Advanced Services
Setting up Apache servers to run Perl scripts

Procedure for setting up Apache servers to properly execute Perl scripts.
Support Site Search
 

Unlike some web server software, there is no special configurations that need to be made to Apache to make it run Perl scripts. On both unix and Windows Apache installations, the Apache web server looks at the first line of the CGI script to find the path to the Perl interpreter to use.

On unix Apache systems, the first line in the script is typically:

#!/usr/bin/perl

On Windows Apache systems, the first line in the script is typically:

#!c:/perl/bin/perl.exe

This assumes that you have already set up Apache to run CGI scripts in the some directory, normally cgi-bin. If you're seeing the source code of the script, rather than its output, it's not a problem with the path to Perl, but it's rather because you haven't set up Apache to execute CGI scripts in the directory where you placed the script.


Download Purchase Contact Us
Privacy Policy
Copyright © 2005, DiscusWare, LLC, All Rights Reserved