This article is to record a few errors.
First download mongo-php-driver, eat not to see the deficiency of the Readme directly configure not. Error cannot find Php-config. Please use--with-php-config=path
To run Phpize first, no words to install Php5-dev can be.
and follow the steps.
Phpize
./configure
Make
sudo make install
Then, add the following to your ' php.ini ' file:
Extension=mongo.so
The success of the test is to phpinfo to see if the MONGO module has been loaded, the result is not.
In another way, the deletion of the php.ini just added in the
Add the following code to the/etc/php5/mods-available/mongo.ini
; Configuration for PHP MONGO module
; priority=30
extension=mongo.so
And then create link
Cd.. /CLI/CONF.D
sudo ln-s. /.. /mods-available/mongo.ini 30-mongo.ini
Cd.. /FPM/CONF.D
sudo ln-s. /.. /mods-available/mongo.ini 30-mongo.ini
In fact, both of these methods do the same thing.
The result is still not, never again, make test fails.
Then, make a clean, come back to finish.
So I learned again, made Clean is the object file (the suffix ". O" file) and the executable file that was created by the last make command.
Also, remember to restart the PHP5 service.