Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CGI on Apache 1.3 - internal server error

Status
Not open for further replies.

DrHaggard

Programmer
Sep 27, 2001
1
GB
Hi,
I'm trying to pass data to a .dll from a form using POST running locally on Apache. The cgi-bin dir where the library resides has ExecCGI permission, the paths are all ok (the URL is definitely correct when the form is submitted) but I get an Internal Server Error.

The Apache error log says &quot;(2)No such file or directory: couldn't spawn child process: <path>&quot;, which isn't very helpful since the dir and file certainly do exist in the location it states :eek:)

This works fine on IIS and PWS btw.

Maybe it's not allowing write access to the cgi-bin dir or something, but I'm just clutching at straws here. Anyone got any ideas?
 
Hi,

If its perl then you have to make sure that the correct path to the perl executable is shown after the #! on the first line of the script and/or that the path is in the PATH environment variable. Apache takes no notice whatsoever of what's in the windows registry so something could easily run on IIS but not apache because IIS uses registry info. Remember Apache's origins (and its predominant use) is in the Linux/Unix arena so it doesn't go out of its way to use M$ specific things like the registry too much.

Hope this helps.
Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top