PDA

View Full Version : CGI error on local PC


Dean B
04-29-1999, 08:15 PM
Anyone have any clues as to why I'm getting an internal server error when trying to run any script on my local PC ?[nbsp][nbsp]Scripts run fine from a command line, just not from a browser.[nbsp][nbsp]I've checked Apaches httpd.conf file and it seems ok (with help from Justin) but still no-go.

Error log shows -

[Thu Apr 29 23:39:50 1999] [error] [client 194.168.10.20] (2)No such file or directory: couldn't spawn child process: j:/big/dom/xdmcity/cgi-bin/urllist.cgi

Ideas anyone ?

Dean.

ChrisH
04-29-1999, 11:30 PM
It seems to be saying that there is no such file
called

/big/dom/xdmcity/cgi-bin/urllist.cgi

on your PC, which is pretty likely if you
are running Windoze.

The bottom line is that you probably have a variable
in a script set up to the FQ path above, and it will
need to be changed to run on the PC. That's my first
guess, anyway.

One way to check is to use the Find Tool in Windows
Explorer and look for any files that have, say,
xdmcity in them. That might help you locate likely
culprits, assuming you have not recreated the FQ file
system on your PC.


[nbsp][nbsp]ch

Justin
04-30-1999, 03:47 AM
What he did was mirrored the FQ directory structure locally like I did - this way, after editing and modifying a script there's no paths to edit before uploading:)[nbsp][nbsp]And Windows will accept forward slashes just fine, too - only the command interpreter (eg, DOS) requires a backslash.

All of my scripts (Perl, PHP, MySQL stuff) are exactly the same on the server as they are locally making editing painless:) The only thing that won't work locally is sendmail because I haven't written a Windows sendmail.exe yet (or a whois.exe hehe)

If you set your doc_root to something on J:, try removing the drive letter (I don't think apache likes it since you specify it in httpd.conf anyway...)

<edit>
PS - look at your error log, you should find some interesting 404's in there :)
</edit>

------------------
Justin Nelson
FutureQuest Support
[This message has been edited by Justin (edited 04-30-99)]