/usr/local/bin/phpize
./configure --with-php-config=/usr/local/bin/php-config
make clean
make
make test
make install
this works well with mongodb
Example for mongodb:
git clone https://github.com/mongodb/mongo-php-driver.git
cd mongo-php-driver
/usr/local/bin/phpize
./configure --with-php-config=/usr/local/bin/php-config
make clean
make
make test
make install
vi /usr/lib/php.ini
add
extension=mongo.so
No comments:
Post a Comment