Re: PHP4 as cgi-script

Jan Kneschke <[email protected]> Fri, 28 Oct 2005 15:13:50 +0200
Newsgroups gmane.comp.web.fnord
Message-ID <20051028131350.GF1421@gateway>
On Thu, Oct 27, 2005 at 04:15:06PM +0200, Ralf Hildebrandt wrote:
> I don't know what I'm doing wrong, but I can't for the life of it run
> PHP4 as CGI:
> 
> #!/usr/bin/php4-cgi
> <?php
>       phpinfo();
> ?>
> 
> Results in:
> "No input file specified."
> 
> googling a bit I set:
> doc_root = /webroot/mail.charite.de
> and
> cgi.force_redirect = 0
> but to no avail.

I think the hints in fastcgi.txt are valid here too:

cgi.fix_pathinfo = 1

> Got some hints for me?

Yes, the prefered way is using the FastCGI interface of PHP. We have
documented all the steps to set it up in the fastcgi docs.

    Jan
  
-- 
Jan Kneschke                                     http://jan.kneschke.de/
Perhaps you want to say 'thank you, jan':    http://jk.123.org/wishlist/