From 98a9ca1d9edd0a3dee273f094b86ff4453bd3562 Mon Sep 17 00:00:00 2001 From: Hannes Magnusson Date: Tue, 27 Nov 2012 23:46:11 +0000 Subject: [PATCH] Remove weird windows stuff, slight markup changes to make things more understandable and other small tweaks git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@328514 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/mongo/configure.xml | 312 +++++++++++++--------------------- 1 file changed, 117 insertions(+), 195 deletions(-) diff --git a/reference/mongo/configure.xml b/reference/mongo/configure.xml index 7d7ec73696..6cc1f85c29 100644 --- a/reference/mongo/configure.xml +++ b/reference/mongo/configure.xml @@ -6,49 +6,106 @@ The MongoDB PHP driver should work on nearly any system: Windows, Mac OS X, Unix, and Linux; little- and big-endian machines; 32- and 64-bit machines; PHP - 5.1, 5.2, and 5.3. + 5.2, 5.3 and 5.4. - &pecl.moved; This page gives more specific information on installing on different systems and troubleshooting issues users have run into. + &pecl.moved; - - - - Installing on *NIX - - - - - Manual Installation - - - - - OS X - - - - - Gentoo - - - - - Fedora - - - - - Installing on Windows - - - - - Third-Party Installation Instructions - - - + + + + + + + + + + + + + + + + + + + + + + + + +
+ Manual Installation + + For driver developers and people interested in the latest bugfixes, you + can compile the driver from the latest source code on + Github. + Go to Github and click the "download" button. Then run: + + +.tar.gz +$ cd mongodb-mongodb-php-driver- +$ phpize +$ ./configure +$ make all +$ sudo make install + +]]> + + + + + Make the following changes to php.ini: + + + + + Make sure the extension_dir variable is pointing to + the directory containing mongo.so. The build will display where + it is installing the PHP driver with output that looks something like: + + + + + Make sure that it is the same as the PHP extension directory by runnning: + + + /usr/lib/php/extensions/no-debug-non-zts-20060613 => + /usr/lib/php/extensions/no-debug-non-zts-20060613 + +]]> + + + If it's not, change the extension_dir in php.ini or + move mongo.so. + + + + + To load the extension on PHP startup, add a line: + + + + + + + +
Installing on *NIX @@ -82,79 +139,32 @@ extension=mongo.so If pecl runs out of memory while installing, make sure memory_limit in - php.ini is set to at least 32MB. + php.ini is set to at least 128MB.
-
- Manual Installation +
+ Installing on Windows - For driver developers and people interested in the latest bugfixes, you - can compile the driver from the latest source code on - Github. - Go to Github and click the "download" button. Then run: + + Precompiled binaries for each release are available from + Github for a variety + of combinations of versions, thread safety, and VC libraries. Unzip the + archive and put php_mongo.dll in your PHP extension directory ("ext" by + default). + + + Add the following line to your php.ini file: .tar.gz -$ cd mongodb-mongodb-php-driver- -$ phpize -$ ./configure -$ sudo make install +extension=php_mongo.dll ]]> - - - Make the following changes to php.ini: - - - - - Make sure the extension_dir variable is pointing to - the location of mongo.so. The build will display where - it is installing the PHP driver with output that looks something like: - - - - - Make sure that it is the same as the PHP extension directory by runnning: - - - /usr/lib/php/extensions/no-debug-zts-20060613 => - /usr/lib/php/extensions/no-debug-zts-20060613 - -]]> - - - If it's not, change the extension_dir in php.ini or - move mongo.so. - - - - - To load the extension on PHP startup, add a line: - - - - - - - - +
OS X @@ -187,7 +197,7 @@ sudo /Applications/XAMPP/xamppfiles/bin/pecl install mongo @@ -216,7 +226,12 @@ $ sudo emerge -va dev-php5/mongo @@ -241,99 +256,6 @@ $ /usr/sbin/setsebool -P httpd_can_network_connect 1
-
- Installing on Windows - - - Precompiled binaries for each release are available from - Github for a variety - of combinations of versions, thread safety, and VC libraries. Unzip the - archive and put php_mongo.dll in your PHP extension directory ("ext" by - default). - - - - The latest (non-release) code is compiled into Windows binaries on every - commit. The zip consists of a .zip with php_mongo.dll and a version.txt. - Please keep the version.txt around so that if you have a question or problem, - you can give the developers the exact version you're using. (The number is - long and nonsensical, but it will make sense to the developers!) - - - To get the latest bug fixes (and possibly bugs), download the binary - corresponding to the PHP you have installed: - - - - - - PHP 5.2 VC6 Non-Thread-Safe Mongo extension - - - - - - - PHP 5.2 VC6 Thread-Safe Mongo extension - - - - - - - PHP 5.3 VC6 Non-Thread-Safe Mongo extension - - - - - - - PHP 5.3 VC6 Thread-Safe Mongo extension - - - - - - - PHP 5.3 VC8 Non-Thread-Safe Mongo extension - - - - - - - PHP 5.3 VC8 Thread-Safe Mongo extension - - - - - - - PHP 5.3 VC9 Non-Thread-Safe Mongo extension - - - - - - - PHP 5.3 VC9 Thread-Safe Mongo extension - - - - - - - Add the following line to your php.ini file: - - - - -
-
Third-Party Installation Instructions