note 110724 added to mongo.installation

From: Date: Wed, 28 Nov 2012 12:45:16 +0000
Subject: note 110724 added to mongo.installation
Groups: php.notes 
Request: Send a blank email to php-notes+get-192173@lists.php.net to get a copy of this message
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) ---- Server IP: 69.147.83.199 Probable Submitter: 186.52.37.126 ---- Manual Page -- http://www.php.net/manual/en/mongo.installation.php Edit -- https://master.php.net/note/edit/110724 Del: integrated -- https://master.php.net/note/delete/110724/integrated Del: useless -- https://master.php.net/note/delete/110724/useless Del: bad code -- https://master.php.net/note/delete/110724/bad+code Del: spam -- https://master.php.net/note/delete/110724/spam Del: non-english -- https://master.php.net/note/delete/110724/non-english Del: in docs -- https://master.php.net/note/delete/110724/in+docs Del: other reasons-- https://master.php.net/note/delete/110724 Reject -- https://master.php.net/note/reject/110724 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#192173) next »