500 errors on new install
Posted by: Dandello2000 (---.ptldor.fios.verizon.net)
Date: September 19, 2010 11:12PM

I already have a working install of Apache2.2 which works but doesn't play well with PHP and MySQL

I installed Wampserver on a Lenovo Thinkcentre running XP. to get PHP5 and MySQL.

The Wamp httpd.conf is pretty close to the same one as on the old server - the only differences are related to the various directives pointing to the path to Apache, etc.

PHP seems to work (although it keeps warning me about a password for MySQL which I just haven't figured out yet.). Straight html loads fine, but every script in the various cgi-bins throws a 500 error.

see:

[Sun Sep 19 13:57:59 2010] [error] [client 127.0.0.1] (OS 3)The system cannot find the path specified. : couldn't create child process: 720003: anniversary.pl, referer: [127.0.0.1]
[Sun Sep 19 13:57:59 2010] [error] [client 127.0.0.1] (OS 3)The system cannot find the path specified. : couldn't spawn child process: E:/WEBSITES/bigapricot/cgi-bin/anniversary.pl, referer: [127.0.0.1]
[Sun Sep 19 13:57:59 2010] [error] [client 127.0.0.1] unable to include "cgi-bin/anniversary.pl" in parsed file E:/WEBSITES/bigapricot/index.shtml, referer: [127.0.0.1]
[Sun Sep 19 13:57:59 2010] [error] [client 127.0.0.1] (OS 3)The system cannot find the path specified. : couldn't create child process: 720003: gmt.pl, referer: [127.0.0.1]
[Sun Sep 19 13:57:59 2010] [error] [client 127.0.0.1] (OS 3)The system cannot find the path specified. : couldn't spawn child process: E:/WEBSITES/bigapricot/cgi-bin/gmt.pl, referer: [127.0.0.1]
[Sun Sep 19 13:57:59 2010] [error] [client 127.0.0.1] unable to include "cgi-bin/gmt.pl" in parsed file E:/WEBSITES/bigapricot/index.shtml, referer: [127.0.0.1]
[Sun Sep 19 13:57:59 2010] [error] [client 127.0.0.1] (OS 3)The system cannot find the path specified. : couldn't create child process: 720003: new.pl, referer: [127.0.0.1]
[Sun Sep 19 13:57:59 2010] [error] [client 127.0.0.1] (OS 3)The system cannot find the path specified. : couldn't spawn child process: E:/WEBSITES/bigapricot/cgi-bin/new.pl, referer: [127.0.0.1]
[Sun Sep 19 13:57:59 2010] [error] [client 127.0.0.1] unable to include "cgi-bin/new.pl" in parsed file E:/WEBSITES/bigapricot/index.shtml, referer: [127.0.0.1]


I also can't figure out why it's reading from: E:/WEBSITES/bigapricot/index.shtml
instead of [localhost]

Options: ReplyQuote
Re: 500 errors on new install
Posted by: Dandello2000 (---.ptldor.fios.verizon.net)
Date: September 20, 2010 02:08AM

Figured it out

All my paths to Perl are set for Linux for when I upload to the hosting service.

In the alias configuration add

ScriptInterpreterSource Registry

to override the scripts' Path to Perl and let Windows point to Perl.

Options: ReplyQuote
Re: 500 errors on new install
Posted by: yfastud (Moderator)
Date: September 20, 2010 05:30AM


Options: ReplyQuote
Re: 500 errors on new install
Posted by: Dandello2000 (---.ptldor.fios.verizon.net)
Date: September 21, 2010 03:24AM

Oh, I got it working - In Windows the key really is adding

ScriptInterpreterSource Registry

under the directory options and/or to the alias and I'm surprised it's not a commented out line in the Wamp-apache httpd.conf like is is in the stand-alone version of Apache 2.2 for Windows. It's really helpful when you know you're going to be uploading your scripts to a *nix platform.

Options: ReplyQuote


Sorry, only registered users may post in this forum.