hi,

i'm trying to install php as a cgi on my redhat machine, which already has php as an apache module installed. i have the php binary compiled and it works. i am to pass it a php script and it is interpreted correctly.

i have tried to add this to my virtual host setting:

        Action php-script /cgi-bin/php
        AddHandler php-script .php

this ends up sending the whole php binary to the browser. as far as i know this is the right way to run php as a cgi. is it possible that my php as module is getting in the way? if so, is there any way to override that module for a particular virtual host.

my end goal is to run php as a setuid cgi. i've seen this done successfully, but i've not done it myself.

finally, for php to run as a cgi, do i need any kind of #!/path line. i've seen that in certain documentation. there's an isp i know that runs php as a cgi, and that is not required. it would definitely not work for me if i had to add this to every file.

i appreciate any help.


~darcy w. christ 1000camels

Reply via email to