PDA

View Full Version : running .pl files



carlgale
02-18-2009, 03:44 AM
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

floyd
02-18-2009, 05:00 AM
You probably have not set up apache to execute .pl files.

carlgale
02-18-2009, 05:34 AM
ok thanks, how would one go about doing this please.

floyd
02-18-2009, 05:54 AM
In a .htaccess file:


AddHandler cgi-script .cgi .pl

carlgale
02-28-2009, 04:49 AM
ok, have added that to the htaccess for the site and still no joy. am still getting the same error message

redesb
02-28-2009, 07:06 AM
Reboot apache? service httpd restart?

nobaloney
02-28-2009, 10:29 AM
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