running .pl files

carlgale

Verified User
Joined
Oct 12, 2006
Messages
34
Hi, i have just added a new script to my website, the extentions of the script are .pl and it does nto seem to run. When i go to the url of the page instead of seeing what i should be seeing i am getting an error telling me

DO YOU SEE ME? THEN YOU HAVE A PROBLEM... PLEASE READ CAREFULLY:

IF YOU ARE SEEING THIS NOTE, THIS MEANS THAT THE SOFTWARE IS NOT EXECUTING.
YOU ARE SEEING THE 'SOURCE CODE' OF THE PROGRAM. THE PROGRAM IS NOT RUNNING.
THIS IS NOT AN ERROR DUE TO OUR SOFTWARE. THIS IS NOT A BUG. THE REASON
YOU ARE SEEING THIS ERROR IS BECAUSE YOU DID NOT CORRECTLY INSTALL SOFTWARE.



I am not sure what the problem is, i have installed it in a cgi-bin folder as set out in the install notes (should add i have installed this software 100s of times on cpanel servers before with no issues) but it is not working. How do i find out if cgi-bin execution is turn on and how do i enable perl support please
 
You probably have not set up apache to execute .pl files.
 
In a .htaccess file:

Code:
AddHandler cgi-script .cgi .pl
 
ok, have added that to the htaccess for the site and still no joy. am still getting the same error message
 
redesb, you shouldn't have to restart apache for a change in .htaccess.

carlgale, is the file named htaccess or .htaccess? It must be named .htaccess. I'm not sure if AddHandler can be added the way Floyd posted; it may be depending on settings on the main httpd.conf level. If it's not your server you should probably try to get help from your hosting company.

Jeff
 
Back
Top