note 110724 deleted from mongo.installation by aharvey
| From: | aharvey@php.net | Date: | Thu, 29 Nov 2012 08:23:55 +0000 |
| Subject: | note 110724 deleted from mongo.installation by aharvey | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-192185@lists.php.net to get a copy of this message | ||
Note Submitter: cuisdy at gmail dot com
----
For Ubuntu 12.10 (but probably for other versions too) the installation wasn't so straight
forward. After running sudo pecl install mongo, adding "extension=mongo.so" to the php.ini
had no effect. That is, class Mongo was still not defined, yet everything seemed in place.
To fix it I had to manually create file /etc/php5/mods-available/
with content "extension=mongo.so" (without the quotes) and add a symlink to it at conf.d/:
# pecl install mongo
# echo "extension=mongo.so" > /etc/php5/mods-available/mongo.ini
# ln -s ../mods-available/mongo.ini /etc/php5/conf.d/20-mongo.ini
(all these need sudo, and you should check the right paths for you)