Hi!

On Sun, 24 Jul 2005, Martin Saturka wrote:

> Hello,
> I can not make PHP4 to work as cgi (with nscgi). I added an option of:
> ns_param "REDIRECT_STATUS" "1"
> so that it try to work at all. Still, however, PHP can not find script files,
> with the only output of: 'No input file specified.'
>
> I do not want to use php module, since I do not use it regularly and
> I do not want to destabilize server.

I installed the PHP4 as CGI using this script:
[EMAIL PROTECTED]:/home/aolserver/local/bin$ $ cat myphp
#!/bin/bash

export SCRIPT_FILENAME=$1
exec php4-cgi -f $1

And then I add to my AOLServer config files:

ns_section "ns/server/${servername}/module/nscgi"
ns_param   map "GET /*.php"
ns_param   map "POST /*.php"
ns_param   interps cgi

ns_section "ns/interps/cgi"
ns_param .php "/home/aolserver/local/bin/myphp"

I hope this helps! :-)

--
Razvan ME


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.

Reply via email to