On Tue, 31 May 2011, Philipp Schuler wrote:
To: "php-install@xxxxxxxxxxxxx" <php-install@xxxxxxxxxxxxx>
From: Philipp Schuler <Philipp.Schuler@xxxxxxxxxx>
Subject: Configure Command from ./php -i incorrect?
Hi all,
I wanted to check one of my php installations, a php-5.3.5
. On php -i it only shows a part of the configure command
I used, however everything I wanted to configure/compile
in _IS_ working. For example --enable-calendar, doesnt
show up in the configure command but it DOES work and
shows up as "enabled" in the rest of the php -i
Is there any reason why the configure command outputted by
php-i isnt complete ?
Hi Phil,
What you need to remember is that when you compile php from
source, you get 3 types of executable php files.
(On Centos 5.6 packages)
First there's the command line versions
/usr/bin/php
/usr/bin/php-cgi
Then there's the apache php module, called
/usr/lib/httpd/modules/libphp5.so that gets loaded once into
memory as an apache loadable module, when apache first
starts.
It sounds to me like you have compiled php yourself, and
installed the apache module libphp5.so for the version you
just compiled.
If you restat apache and load a php page with this in it:
<?php
phpinfo();
?>
That should show the options you compiled your version of
php with.
Now, if you still have the old previous version of php
installed, and do # php -i from the command line, you will
not see the same compile options as the version you
compiled.
If you are going to compile php yourself from source, it's
best to uninstall any previous versions that are on your
system. Start with a clean slate, so to speak.
HTH
Kind Regards,
Keith Roberts
-----------------------------------------------------------------
Websites:
http://www.karsites.net
http://www.php-debuggers.net
http://www.raised-from-the-dead.org.uk
All email addresses are challenge-response protected with
TMDA [http://tmda.net]
-----------------------------------------------------------------
[Index of Archives]
[PHP Users]
[PHP Home]
[PHP on Windows]
[Kernel Newbies]
[PHP Classes]
[Postgresql]
[PHP Books]
[PHP Databases]
[PHP SOAP]