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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Couldn't spawn child process

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hello WIN32 Apache user,<br><br>if you cannot execute .pl or .cgi scripts and you read this error log entry:<br><br><b>No such file or directory: couldn't spawn child process: c:/example-path/to/your/cgi-bin/foo.cgi</b><br><br>and the first line in your scripts is <font color=red>#!usr/bin/perl</font> (standard)<br>just <i>reinstall Perl</i> to <font color=red><b>c:\usr</b></font> and check the PATH variable in your autoexec.bat<br>(must point to <font color=red><b>c:\usr\bin</b></font>) --- thats all!!<br>Note: I tested it only with Apache 1.3.12 and it works fine.<br><br>:) happy programming :)<br>Lenny M. Krone<br><A HREF="mailto:webmaster@roundnround.net">webmaster@roundnround.net</A>
 

> and the first line in your scripts is #!usr/bin/perl (standard)
> just reinstall Perl to c:\usr and check the PATH variable in your autoexec.bat
> (must point to c:\usr\bin) --- thats all!!

The above ALMOST works. I reinstalled my Perl into c:\usr and changed the first line in my script to the following:
#!/usr/bin/perl

Note the additional forward-slash in front of the 'usr'.

This works. Thanks for the info.

Carsten.
 
[Tue Jan 23 16:28:05 2001] [error] [client 10.1.88.88] couldn't spawn child process: c:/program files/apache group/apache/cgi-bin/ultraboard/install.cgi
is the error i get
I tried what you guys said but to no avail
any help?
 
Plan B:

Change the first line to wherever your perl.exe is.

IE:

#!f:/perl/bin/perl.exe -w

 
Does the perl.exe get installed with apache or do i need to install it seperately? If I do need to install it seperately where do i get it from?

Thanks in Advance....Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top