Author |
|
Charlie-Boy
Joined: 07 Mar 2007 Posts: 15
|
Posted: Thu 08 Mar '07 1:54 Post subject: Apache attempts to download Perl script |
|
|
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
|
Posted: Thu 08 Mar '07 2:11 Post subject: |
|
|
Is the folder the script is in configured as a ScriptAlias? |
|
Back to top |
|
Charlie-Boy
Joined: 07 Mar 2007 Posts: 15
|
Posted: Thu 08 Mar '07 2:12 Post subject: |
|
|
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
|
Posted: Thu 08 Mar '07 2:19 Post subject: |
|
|
Hrm, does your System Environment Variable Path have the location of Perl\bin? |
|
Back to top |
|
Charlie-Boy
Joined: 07 Mar 2007 Posts: 15
|
Posted: Thu 08 Mar '07 2:22 Post subject: |
|
|
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
|
Posted: Thu 08 Mar '07 2:28 Post subject: |
|
|
Are you loading the mod_cgi module? |
|
Back to top |
|
Charlie-Boy
Joined: 07 Mar 2007 Posts: 15
|
Posted: Thu 08 Mar '07 2:29 Post subject: |
|
|
Yeah I am loading that module. |
|
Back to top |
|
VoodooMill
Joined: 11 Jan 2007 Posts: 60
|
Posted: Thu 08 Mar '07 2:39 Post subject: |
|
|
What is the call you are making to your perl script? |
|
Back to top |
|
Charlie-Boy
Joined: 07 Mar 2007 Posts: 15
|
Posted: Thu 08 Mar '07 2:43 Post subject: |
|
|
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
|
Posted: Thu 08 Mar '07 2:49 Post subject: |
|
|
I'm all out of ideas for a simple solution. Sorry. |
|
Back to top |
|
Charlie-Boy
Joined: 07 Mar 2007 Posts: 15
|
Posted: Thu 08 Mar '07 2:50 Post subject: |
|
|
Thanks for trying, I think the path is messed up myself. |
|
Back to top |
|
Charlie-Boy
Joined: 07 Mar 2007 Posts: 15
|
Posted: Thu 08 Mar '07 4:03 Post subject: |
|
|
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
|
Posted: Thu 08 Mar '07 9:07 Post subject: |
|
|
Good luck with that. |
|
Back to top |
|
Charlie-Boy
Joined: 07 Mar 2007 Posts: 15
|
Posted: Sat 10 Mar '07 14:06 Post subject: |
|
|
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 |
|