logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache attempts to download Perl script
Author
Charlie-Boy



Joined: 07 Mar 2007
Posts: 15

PostPosted: Thu 08 Mar '07 1:54    Post subject: Apache attempts to download Perl script Reply with quote

My new installation of Apache 2.2.4 attempts to download Perl scripts instead of running them, I cannot fathom this behaviour, is there a simple explanation, before I tear me hair out?

Last edited by Charlie-Boy on Thu 08 Mar '07 2:14; edited 2 times in total
Back to top
VoodooMill



Joined: 11 Jan 2007
Posts: 60

PostPosted: Thu 08 Mar '07 2:11    Post subject: Reply with quote

Is the folder the script is in configured as a ScriptAlias?
Back to top
Charlie-Boy



Joined: 07 Mar 2007
Posts: 15

PostPosted: Thu 08 Mar '07 2:12    Post subject: Reply with quote

Yeah the folder is cgi-bin, this is a default httpd.conf.

Quote:

ScriptAlias /cgi-bin/ "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/"
Back to top
VoodooMill



Joined: 11 Jan 2007
Posts: 60

PostPosted: Thu 08 Mar '07 2:19    Post subject: Reply with quote

Hrm, does your System Environment Variable Path have the location of Perl\bin?
Back to top
Charlie-Boy



Joined: 07 Mar 2007
Posts: 15

PostPosted: Thu 08 Mar '07 2:22    Post subject: Reply with quote

Yeah, it seems to be, actually earlier today another install worked flawlessly. I think another webserver installation has messed with this, the www looks suspect.

How would I fix this, reinstall activestate


Quote:
C:\www\openssl\bin;C:\www\Apache22\bin;C:\www\php5;C:\www\mysql5\bin;C:\www\perl\bin;C:\www\tomcat5\bin


Last edited by Charlie-Boy on Thu 08 Mar '07 2:26; edited 1 time in total
Back to top
VoodooMill



Joined: 11 Jan 2007
Posts: 60

PostPosted: Thu 08 Mar '07 2:28    Post subject: Reply with quote

Are you loading the mod_cgi module?
Back to top
Charlie-Boy



Joined: 07 Mar 2007
Posts: 15

PostPosted: Thu 08 Mar '07 2:29    Post subject: Reply with quote

Yeah I am loading that module.
Back to top
VoodooMill



Joined: 11 Jan 2007
Posts: 60

PostPosted: Thu 08 Mar '07 2:39    Post subject: Reply with quote

What is the call you are making to your perl script?
Back to top
Charlie-Boy



Joined: 07 Mar 2007
Posts: 15

PostPosted: Thu 08 Mar '07 2:43    Post subject: Reply with quote

I am just trying to run it from localhost http://localhost/cgi-bin/printenv.pl, it's just the default script. Earlier today this worked fine and I got the return I expected with the same configuration.
Back to top
VoodooMill



Joined: 11 Jan 2007
Posts: 60

PostPosted: Thu 08 Mar '07 2:49    Post subject: Reply with quote

I'm all out of ideas for a simple solution. Sorry.
Back to top
Charlie-Boy



Joined: 07 Mar 2007
Posts: 15

PostPosted: Thu 08 Mar '07 2:50    Post subject: Reply with quote

Thanks for trying, I think the path is messed up myself.
Back to top
Charlie-Boy



Joined: 07 Mar 2007
Posts: 15

PostPosted: Thu 08 Mar '07 4:03    Post subject: Reply with quote

I have found the problem and it is not Apache related, something has locked my security panel in IE. I have not touched it, I am locked out completely and I haven't a clue how to unlock it.

I don't have a virus, I have scanned for that.

Firefox will execute the script without a problem.
Back to top
VoodooMill



Joined: 11 Jan 2007
Posts: 60

PostPosted: Thu 08 Mar '07 9:07    Post subject: Reply with quote

Good luck with that. Very Happy
Back to top
Charlie-Boy



Joined: 07 Mar 2007
Posts: 15

PostPosted: Sat 10 Mar '07 14:06    Post subject: Reply with quote

I unlocked the security tab but that wasn't in the end the problem, the issue that was causing IE to download the Perl script that is installed by default with Apache was the charset in the script, Firefox will run it but IE will not. You have to remove the charset to get IE to run in properly.

Quote:
print "Content-type: text/plain; charset=iso-8859-1\n\n";


The fix for the security lockout is here.

http://windowsxp.mvps.org/ie/secchangesettings.htm
Back to top


Reply to topic   Topic: Apache attempts to download Perl script View previous topic :: View next topic
Post new topic   Forum Index -> Apache