donmak
08-06-2006, 07:34 PM
Geez ... what a great forum. I wish I would have found this months ago. :thumbsup:
==
SHORT DESCRIPTION: *.pl files run fine on my server (IIS). *.CGI files do not.
==
(Note: I am working on a Movable Type install for a client on a dedicated server. I have Terminal Services access.)
I don't believe it is a software issue, it seems to be a IIS configuration issue.
Here is all the troubleshooting info I can think of to provide:
===
** I have both extensions *.pl and *.cgi mapped to PERL.EXE but for some reason only *.pl actually works.
** I need *.cgi to work also because when I do the initialization it tries to redirect to:
mt-upgrade.cgi?__mode=install
... so I can't simply rename mt-upgrade.cgi to mt-upgrade.pl because it is hardwired into the install process.
plus when it redirects it just sits there and eventually times out ...
** I have ALLOWED CGI in the "Web Service Extensions" section of IIS
** I have *.CGI and *.PL both mapped to c:\usr\bin\perl.exe under CONFIGURATION tab of the website in IIS.
** The IIS Guest account has FULL CONTROL of the directory running the CGI scripts (/content/ as shown in the URLs below)
** I have a test script ("Hello World!") as an example. I made a *.pl version and a *.cgi version. The code in both is exactly the same.
#!C:\usr\bin\perl.exe
print "Content-type:text/html\n\n";
print "hello world";
http://www.onlinemarketinganalyst.com/content/test.pl
http://www.onlinemarketinganalyst.com/content/test.cgi
I FEEL LIKE IT SHOULD BE SOMETHING SIMPLE THAT I AM MISSING. But for some reason I can't seem to find whatever it is that is keeping me from running *.cgi scripts
Like I said before, thanks again for any advice you might have. I hope I provided enough troubleshooting information.
Best regards,
-don
==
SHORT DESCRIPTION: *.pl files run fine on my server (IIS). *.CGI files do not.
==
(Note: I am working on a Movable Type install for a client on a dedicated server. I have Terminal Services access.)
I don't believe it is a software issue, it seems to be a IIS configuration issue.
Here is all the troubleshooting info I can think of to provide:
===
** I have both extensions *.pl and *.cgi mapped to PERL.EXE but for some reason only *.pl actually works.
** I need *.cgi to work also because when I do the initialization it tries to redirect to:
mt-upgrade.cgi?__mode=install
... so I can't simply rename mt-upgrade.cgi to mt-upgrade.pl because it is hardwired into the install process.
plus when it redirects it just sits there and eventually times out ...
** I have ALLOWED CGI in the "Web Service Extensions" section of IIS
** I have *.CGI and *.PL both mapped to c:\usr\bin\perl.exe under CONFIGURATION tab of the website in IIS.
** The IIS Guest account has FULL CONTROL of the directory running the CGI scripts (/content/ as shown in the URLs below)
** I have a test script ("Hello World!") as an example. I made a *.pl version and a *.cgi version. The code in both is exactly the same.
#!C:\usr\bin\perl.exe
print "Content-type:text/html\n\n";
print "hello world";
http://www.onlinemarketinganalyst.com/content/test.pl
http://www.onlinemarketinganalyst.com/content/test.cgi
I FEEL LIKE IT SHOULD BE SOMETHING SIMPLE THAT I AM MISSING. But for some reason I can't seem to find whatever it is that is keeping me from running *.cgi scripts
Like I said before, thanks again for any advice you might have. I hope I provided enough troubleshooting information.
Best regards,
-don