php -v does not the same with ./build options

tenny

Verified User
Joined
Sep 16, 2009
Messages
80
Hello,

on options.conf,

i to php 5 with cgi to yes,and cli to no.


i try to run ./build options.

it shows
PHP: 5.2.11 as CGI with mail() header patch

but when i run php-v,

it shows
PHP 5.2.11 (cli) (built: Oct 9 2009 02:29:54)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies


could you know why have the difference ?



thank you
 
Can you run this command?

which php

it will give you where php is installed.
 
I've just tested this with

options.conf
#PHP settings. default_php possible values - 4 or 5
default_php=5
php4_cli=no
php4_cgi=no
php5_cli=yes
php5_cgi=no
zend=yes

If I do now ./build options I get;
PHP: 5.2.11 as CLI with mail() header patch
And if I change the php settings its changing also for my ./build options return

I guess you are doing something wrong.
Also after you changed the settings in options.conf you need to rebuild PHP with ./build php n to get the new settings.
 
PHP as CLI has to be installed for the system to work correctly. When you configure CustomBuild to install PHP as CGI it installs two versions: PHP-CGI into /usr/local/php5/bin/php-cgi and PHP (CLI) into /usr/local/bin/php. Of course CustomBuild configures Apache to use PHP-CGI as this was the choice you made.
 
Back
Top