Answer the question
In order to leave comments, you need to log in
Problems installing pecl extension for 2 PHP
Trying to install pecl mongo extension but I have 2 versions php
php -v
PHP 5.4.9
php5 -v
PHP 5.3.3
The server is running php5 and pecl builds the extension for php 5.4.9. I install pecl install mongo like this, everything is ok, but mongo.so is thrown into the extension exactly php 5.4.9.
I tried to copy for php5, an error occurs when loading
undefined symbol: zend_new_interned_string in Unknown on line 0
Answer the question
In order to leave comments, you need to log in
How did you install two versions of PHP?
The pecl5 binary, for an hour, is not there next to the php5 binary?
Were already installed on the server php and php5. I just updated php but it is not used, php5 for apache and cli is used.
to /usr/bin
from packages only
pecl
php5
/usr/local/bin/php-config
prefix="/usr/local"
datarootdir="/usr/local/php"
exec_prefix="${prefix}"
version="5.4.9"
vernum="50409"
include_dir="${prefix}/include/php"
prefix="/usr"
exec_prefix="${prefix}"
version="5.3.3-7+squeeze19"
vernum="50303"
include_dir="${prefix}/include/php5"
wget pecl.php.net/get/mongo-1.5.2.tgz
tar -zxvf mongo-1.5.2.tgz
cd mongo-1.5.2/
phpize5
./configure --with-php-config=/usr/bin/ php-config5
make install
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question