PDA

View Full Version : nOOb help with PHPDEV-mod perl


ngs1
11-10-03, 01:16 AM
Hi,

I have just installed the perl-mod for phpdev and would like to install a cgi-perl script for testing on my machine. (WinXP - e:\phpdev)

When I run the script I get "The server encountered an internal error or misconfiguration and was unable to complete your request."

There is a configuration line in the file I am trying to run "#!/usr/bin/perl -w" -- is this the problem and should I what should I change this to???

Thanks for your help

nathan

Chas
11-10-03, 12:35 PM
I'm not familiar with PHPDEV but the shebang line needs to have the correct path to perl in it and/or you need to set up the .pl and .cgi file extensions to use the perl interpretor. Where does PHPDEV install the perl interpretor? Start there first. Also, make sure the perl binary is in your path (right click 'My Computer" -> Properties -> Advanced tab -> Environment Variables button).

~Charlie

cyanide
11-10-03, 05:29 PM
Because you are using phpdev locally, you need to change

#!/usr/bin/perl -w

to this

#!E:\phpdev\Perl\bin\perl.exe