php cgi and cli together

remikk

Verified User
Joined
Apr 30, 2008
Messages
158
Location
Poland
I found trick to have php 5.2 and 5.3 together.
But is this possible to have 5.2 CGI and CLI together ?

I have one application which need php-cli. There is function apache_request_headers which doesn't work when php is as CGI. I have message "Call to undefined function apache_request_headers()"
Also I've read that http://php.net/manual/en/function.apache-request-headers.php
"This function is only supported when PHP is installed as an Apache module."
 
Yes, it's possible. But to do that, you'll have to do mostly hand work. Custombuild doesn't allow that by default.
 
Last edited:
But is this possible to have 5.2 CGI and CLI together ?

By the way, if you install 5.2 as CGI, custombuild still installs CLI version, because it's need by DirectAdmin to work properly.

But, by default, you won't be able to use PHP 5.2 both via mod_php and mod_suphp, without customization. But that is still possible.
 
Back
Top