Re: Loads of Trouble: PHP installed as CGI on Unix

From: Date: Fri, 27 Sep 2002 08:00:01 +0000
Subject: Re: Loads of Trouble: PHP installed as CGI on Unix
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-8583@lists.php.net to get a copy of this message
Serbinski, Theodore S wrote:
I did try this: AddType application/x-httpd-php .php But that didn't seem to work, even after restarting PHP. I am assuming I need to tell Apache where the PHP executable is and to use that for *.php. But I don't know how to do that since I installed PHP as a CGI-binary. Also where can I find that install file? Our sysadmin guy did this and I think he missed a few things. I can't find it in any of the php directories. I have not used PHP as a CGI (only as apache module) so my experience may differ. The AddType line looks right. It is apache you restarted, I assume (you said php). If you installed from source, the INSTALL file is in the top level directory after you untar it.
The "include_path" parameter seems to be the one to indicate where the php executable is. I got this by looking in the manual (http://www.php.net) so maybe this is worth a look. HTH Chris

« previous php.install (#8583) next »