Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

404 errors with cgi scripts

 
   Web Hosting and Web Master Forums (Home) -> IIS RSS
Next:  Moving Certificate from IIS 5 to IIS 6  
Author Message
FD

External


Since: Feb 15, 2005
Posts: 2



(Msg. 1) Posted: Tue Feb 15, 2005 11:55 am
Post subject: 404 errors with cgi scripts
Archived from groups: microsoft>public>inetserver>iis (more info?)

We have created a contact form on a webpage. It has a submit button which
writes a text file and then emails the text information via Form Mail. When
we ran this cgi program from the command prompt, we get the error that Form
Mail did not recognize the Post method. Is it possible that the problem may
be related to permissions? We "googled" this and found that other people
have problems running cgi scripts on IIS 6.0. Any help with this would be
greatly appreciated.

FD

 >> Stay informed about: 404 errors with cgi scripts 
Back to top
Login to vote
someone9

External


Since: Aug 25, 2003
Posts: 2419



(Msg. 2) Posted: Tue Feb 15, 2005 1:10 pm
Post subject: Re: 404 errors with cgi scripts [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

CGI scripts are meant to be launched by the web server, not from the
commandline. It sounds like this CGI is one of them (it detects that it is
missing the correct method and complained), so please configure the CGI
correctly on its supported web server and make a POST request.

If you need instructions, please refer to the provider of your CGI script
for them, in particular their support for running on IIS 6.0 and any
additional setup necessary. For security reasons, IIS6 default
configuration will refuse to execute CGIs and refuse to allow CGIs to write
to the file system -- and it is your responsibility to open up the server
correctly (or CGI setup needs to configure its permissions correctly).


FYI: Many people have problems running CGI scripts, period, but it does not
mean this is a problem with IIS. Often, customers do not know how to
configure it correctly and fail to read clear instructions for both the CGI
and the web server.

Thus, It is no wonder that people have problems configuring CGI and
strangely, they blame it as an issue with IIS6. It's as if someone who
knows nothing about cars pops open the hood of the car, does some
"modifications" under the hood, and when the car fails to start, they blame
the manufacturer for not creating a trouble-free vehicle.

I don't know about you, but I'm not making any changes to my car unless I am
a mechanic, have a mechanic friend, or pay a mechanic to do it.

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"FD" <fd.RemoveThis@nospam.net> wrote in message
news:eRGhd83EFHA.1564@TK2MSFTNGP09.phx.gbl...
We have created a contact form on a webpage. It has a submit button which
writes a text file and then emails the text information via Form Mail. When
we ran this cgi program from the command prompt, we get the error that Form
Mail did not recognize the Post method. Is it possible that the problem may
be related to permissions? We "googled" this and found that other people
have problems running cgi scripts on IIS 6.0. Any help with this would be
greatly appreciated.

FD

 >> Stay informed about: 404 errors with cgi scripts 
Back to top
Login to vote
FD

External


Since: Feb 15, 2005
Posts: 2



(Msg. 3) Posted: Wed Feb 16, 2005 1:27 pm
Post subject: Re: 404 errors with cgi scripts [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

We found the problem. We were trying to use perl.exe ( IIS locks down
executables) instead of Pearl for ISAPI which uses DLL function calls to
communicate. We did this by looking at the properties of our website, going
to the
Home Directory Tab, and clicking on the configuration tab. Under the Cache
ISAPI extensions, we made sure the .pl files pointed to the PearlIS dll.

F.Y.I.

We were not "blaming IIS 6.0". We only asked if it could be a permissions
problem....hopefully, if someone else runs into this problem, they might be
helped by what we found.


"David Wang [Msft]" <someone.DeleteThis@online.microsoft.com> wrote in message
news:%23zf6NU6EFHA.936@TK2MSFTNGP12.phx.gbl...
 > CGI scripts are meant to be launched by the web server, not from the
 > commandline. It sounds like this CGI is one of them (it detects that it
 > is
 > missing the correct method and complained), so please configure the CGI
 > correctly on its supported web server and make a POST request.
 >
 > If you need instructions, please refer to the provider of your CGI script
 > for them, in particular their support for running on IIS 6.0 and any
 > additional setup necessary. For security reasons, IIS6 default
 > configuration will refuse to execute CGIs and refuse to allow CGIs to
 > write
 > to the file system -- and it is your responsibility to open up the server
 > correctly (or CGI setup needs to configure its permissions correctly).
 >
 >
 > FYI: Many people have problems running CGI scripts, period, but it does
 > not
 > mean this is a problem with IIS. Often, customers do not know how to
 > configure it correctly and fail to read clear instructions for both the
 > CGI
 > and the web server.
 >
 > Thus, It is no wonder that people have problems configuring CGI and
 > strangely, they blame it as an issue with IIS6. It's as if someone who
 > knows nothing about cars pops open the hood of the car, does some
 > "modifications" under the hood, and when the car fails to start, they
 > blame
 > the manufacturer for not creating a trouble-free vehicle.
 >
 > I don't know about you, but I'm not making any changes to my car unless I
 > am
 > a mechanic, have a mechanic friend, or pay a mechanic to do it.
 >
 > --
 > //David
 > IIS
<font color=purple> > <a style='text-decoration: underline;' href="http://blogs.msdn.com/David.Wang</font" target="_blank">http://blogs.msdn.com/David.Wang</font</a>>
 > This posting is provided "AS IS" with no warranties, and confers no
 > rights.
 > //
 > "FD" <fd.DeleteThis@nospam.net> wrote in message
 > news:eRGhd83EFHA.1564@TK2MSFTNGP09.phx.gbl...
 > We have created a contact form on a webpage. It has a submit button which
 > writes a text file and then emails the text information via Form Mail.
 > When
 > we ran this cgi program from the command prompt, we get the error that
 > Form
 > Mail did not recognize the Post method. Is it possible that the problem
 > may
 > be related to permissions? We "googled" this and found that other people
 > have problems running cgi scripts on IIS 6.0. Any help with this would be
 > greatly appreciated.
 >
 > FD
 >
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: 404 errors with cgi scripts 
Back to top
Login to vote
someone9

External


Since: Aug 25, 2003
Posts: 2419



(Msg. 4) Posted: Wed Feb 16, 2005 1:27 pm
Post subject: Re: 404 errors with cgi scripts [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Actually, the troubleshooting steps already exist. In F1 help in IIS
Manager UI, top level topic: "Troubleshooting", we have listed many of the
top questions (and troubleshooting steps/answers) that people have
encountered during IIS6 beta.

getting a mysterious 404 is amongst them. You just go to the web log file,
look at if it says 404 0 or 404 2 or 404 3 for the given URL, and act
accordingly.

404 0 -- real file not found. Make sure the URL-to-physical mapping is
correct
404 2 -- fail by Web Service Extension. Check on the extension name from
logged URL and locate the App Mappings dialog (your instructions) and make
sure the Script Engine is correct and enabled as Web Service Extension
404 3 -- fail by missing MIME Type. Check on extension name from logged URL
and locate the MIME Mappings dialog and make sure the extension has a
configured MIME Type that the browser understands.

--
//David
IIS
<a style='text-decoration: underline;' href="http://blogs.msdn.com/David.Wang" target="_blank">http://blogs.msdn.com/David.Wang</a>
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"FD" <fd DeleteThis @nospam.net> wrote in message
news:%23urx9UFFFHA.3984@TK2MSFTNGP14.phx.gbl...
We found the problem. We were trying to use perl.exe ( IIS locks down
executables) instead of Pearl for ISAPI which uses DLL function calls to
communicate. We did this by looking at the properties of our website, going
to the
Home Directory Tab, and clicking on the configuration tab. Under the Cache
ISAPI extensions, we made sure the .pl files pointed to the PearlIS dll.

F.Y.I.

We were not "blaming IIS 6.0". We only asked if it could be a permissions
problem....hopefully, if someone else runs into this problem, they might be
helped by what we found.


"David Wang [Msft]" <someone DeleteThis @online.microsoft.com> wrote in message
news:%23zf6NU6EFHA.936@TK2MSFTNGP12.phx.gbl...
 > CGI scripts are meant to be launched by the web server, not from the
 > commandline. It sounds like this CGI is one of them (it detects that it
 > is
 > missing the correct method and complained), so please configure the CGI
 > correctly on its supported web server and make a POST request.
 >
 > If you need instructions, please refer to the provider of your CGI script
 > for them, in particular their support for running on IIS 6.0 and any
 > additional setup necessary. For security reasons, IIS6 default
 > configuration will refuse to execute CGIs and refuse to allow CGIs to
 > write
 > to the file system -- and it is your responsibility to open up the server
 > correctly (or CGI setup needs to configure its permissions correctly).
 >
 >
 > FYI: Many people have problems running CGI scripts, period, but it does
 > not
 > mean this is a problem with IIS. Often, customers do not know how to
 > configure it correctly and fail to read clear instructions for both the
 > CGI
 > and the web server.
 >
 > Thus, It is no wonder that people have problems configuring CGI and
 > strangely, they blame it as an issue with IIS6. It's as if someone who
 > knows nothing about cars pops open the hood of the car, does some
 > "modifications" under the hood, and when the car fails to start, they
 > blame
 > the manufacturer for not creating a trouble-free vehicle.
 >
 > I don't know about you, but I'm not making any changes to my car unless I
 > am
 > a mechanic, have a mechanic friend, or pay a mechanic to do it.
 >
 > --
 > //David
 > IIS
<font color=purple> > <a style='text-decoration: underline;' href="http://blogs.msdn.com/David.Wang</font" target="_blank">http://blogs.msdn.com/David.Wang</font</a>>
 > This posting is provided "AS IS" with no warranties, and confers no
 > rights.
 > //
 > "FD" <fd DeleteThis @nospam.net> wrote in message
 > news:eRGhd83EFHA.1564@TK2MSFTNGP09.phx.gbl...
 > We have created a contact form on a webpage. It has a submit button which
 > writes a text file and then emails the text information via Form Mail.
 > When
 > we ran this cgi program from the command prompt, we get the error that
 > Form
 > Mail did not recognize the Post method. Is it possible that the problem
 > may
 > be related to permissions? We "googled" this and found that other people
 > have problems running cgi scripts on IIS 6.0. Any help with this would be
 > greatly appreciated.
 >
 > FD
 >
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: 404 errors with cgi scripts 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
CGI Scripts (Executables) getting 404 errors - I'm moving a website from a WinNT 4.0/IIS 4.0 to Win2003/IIS 6.0 and have gotten most things up and running, except my executables (CGI scripts). I have set the Execute permissions for the directory were the scripts reside to "Scripts and Executabl...

CGI Scripts (Executables) getting 404 errors - I'm moving a website from a WinNT 4.0/IIS 4.0 to Win2003/IIS 6.0 and have gotten most things up and running, except my executables (CGI scripts). I have set the Execute permissions for the directory were the scripts reside to "Scripts and Executabl...

Cant run cgi scripts - I am trying to run cgi scripts on my webserver. I have a win2k box with all patches and IIS 5. I installed activestate perl and can run perl scripts fine. I created a cgi-bin virtual dir. and created a mapping interpreter and when i try to run a cgi..

Can't run CGI scripts - IIS 5.1, XP Pro Running on localhost I can't get my perl scripts to execute. Eventually, I get a CGI Timeout = message. I've set my mappings by adding .pl and .cgi extensions. I've pointed to = the perl executable and it is set as a script engine...

need help getting asp scripts to run - I'm trying to get a simple asp script to run and I'm getting the error below. As far as I can tell, IIS is not set up to require a username and password, but accepts anonymous connections. So I'm not sure what the error refers to. Can anyone point me....
   Web Hosting and Web Master Forums (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]