Page 1 of 1

HELP! PHP PROBLEM!

PostPosted: 08. March 2006 12:02
by Juanu
I'm getting the following error when I try to access my php files.

[Wed Mar 08 07:44:19 2006] [error] [client IP-Number] C:/Vermouth/web/cgi-bin/install.php is not executable; ensure interpreted scripts have "#!" first line
[Wed Mar 08 07:44:19 2006] [error] [client IP-Number] (9)Bad file descriptor: don't know how to spawn child process: C:/Vermouth/web/cgi-bin/install.php

Don't know how to fix it.

Any Ideas?

PostPosted: 09. March 2006 22:19
by Juanu
Anyone?

I can't find this problem anywhere!

Please, HELP ME!

:cry:

PostPosted: 10. March 2006 01:04
by WorldDrknss
you need to change all your cgi scripts to point to the correct perl file instead of the default #!/usr/bin/perl

examples

#!/Program%20Files/xampp/perl/bin/perl
#!/apachefriends/xampp/perl/bin/perl
#!/xampp/xampp/perl/bin/perl

you will need to add something similar to these as the first line in all your cgi scripts.

http://xampptutorials.com

PostPosted: 11. March 2006 19:58
by Juanu
Ok
So I added the following line to my INSTALL.php

#!C:/Archivos%20de%20programa/xampp/perl/bin/perl

Thats where my xampp is installed.

But my web and php files are on c:\vermouth\web\cgi-bin\

Now i have another error

couldn't create child process: 720003: install.php

ANY CLUES??? HELP PLEASE!!

PostPosted: 12. March 2006 09:51
by WorldDrknss
that error is caused when your script is looking for a folder or a file in your cgi-bin folder, check your error logs for the proper files its looking for.

http://xampptutorials.com

PostPosted: 12. March 2006 11:50
by Wiedmann
So I added the following line to my INSTALL.php

#!C:/Archivos%20de%20programa/xampp/perl/bin/perl

A .php-File is not a Perlscript and so it doesn't need a shebang.

Re: HELP! PHP PROBLEM!

PostPosted: 12. March 2006 12:26
by Juanu
Wiedmann wrote:A .php-File is not a Perlscript and so it doesn't need a shebang.


SO... We are back to the main problem again....


Juanu wrote:I'm getting the following error when I try to access my php files.

[Wed Mar 08 07:44:19 2006] [error] [client IP-Number] C:/Vermouth/web/cgi-bin/install.php is not executable; ensure interpreted scripts have "#!" first line
[Wed Mar 08 07:44:19 2006] [error] [client IP-Number] (9)Bad file descriptor: don't know how to spawn child process: C:/Vermouth/web/cgi-bin/install.php

Don't know how to fix it.

Any Ideas?

PostPosted: 12. March 2006 12:45
by Wiedmann
[Wed Mar 08 07:44:19 2006] [error] [client IP-Number] C:/Vermouth/web/cgi-bin/install.php is not executable; ensure interpreted scripts have "#!" first line

- What is this for a directory? Any settings for this directory in your "httpd.conf"
- Why want you execute a php-script via cgi?

PostPosted: 12. March 2006 19:40
by Juanu
I want to install a PHP Guetsbook I downloaded.
Im not really an expert on this issue so i took the files and put them on the cgi-bin folder....

where should they go else?....

PostPosted: 12. March 2006 19:45
by Juanu
....

I found the problem...

I droped all the files on another directpory and it worked just fine...

Thanx all for the help anyway!!