Web Hosting Talk







View Full Version : Perl Error in IIS


jitudhumal
08-13-2004, 01:16 AM
Hello All,

I am running awstats (Stats Software) on Windows with IIS 5.0 and Active Perl 5.1.8.

I have configured Perl in IIS with the Path C:\perl\bin\perl.exe %s%s. Previously it was working but now it is giving this error.

The specified CGI application misbehaved by not returning a complete set of HTTP headers. Can't open perl script

I tried reinstalling Perl but nothing seems to be working it gives me the same error. I also tried with simple perl script assuming this script many be not proper but still the same result. So there may be some with PERL.

Any support will be appreicated.


Jitu

overulehost
08-13-2004, 01:33 AM
a common problem is with the path
and make sure you added the neccessary handler to httpd if you are using apache

jmcole
08-13-2004, 02:34 AM
do you have the IUSR account set with Read permissions on C:\perl and all subdirectories?

jitudhumal
08-13-2004, 10:08 AM
Hello All,

I gave the IUSR Full Control permission then too I am getting the same error.


Jitu

bannerdepo
08-13-2004, 11:52 AM
I agree with overulehost, most of the time it is a pathing problem.

jitudhumal
08-14-2004, 06:03 AM
Hello,

Actually what may be Pathing problem as I have given the proper path.

I want to add one more thing When this errors is thrown up which is

The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:

Can't open perl script "d:\web": No such file or directory.

Now my perl is installed in C drive and my simple perl script is in D drive.

So whe I access my perl script it gives meth it cannot open the script a my perl script is just hello world my question is why it is trying to open at d:\web ?

Jitu

Rubal
08-14-2004, 06:12 AM
Hello Jitu -

I'll recommend you to uninstall Avtive Perl and reinstall the latest 5.8.4 and see if it works ..

You can also refer to the following post :

http://forums.webhostautomation.com/viewtopic.php?t=1682

Kind Regards,

Rubal Jain

maxknight
08-16-2004, 05:32 AM
Make sure that the path to perl is set right in the Enviornment Variable section of your server. Also, try assigning Scripts and Executable permission from IIS on the folder which has the perl files.