Wednesday, May 18, 2011

Php as cgi

Php as cgi
If you want to make PHP to run as cgi :
if php5 is cgi and to override the entries in server php.ini
add the following in .htaccess in the directory which needs custom php
============================================
AddHandler application/x-httpd-php5 .php
AddType application/x-httpd-php5 .php
Action phpini-cgi /cgi-bin/php.ini
==============================================

Then copy the php binary and php.ini file to /cgi/ folder under document root .

No comments:

Post a Comment