Installing MongoDB/PHP Driver on CentOS 6

Since the module is not included with the default PHP installation, you have to download it from the official repository: cd mkdir mongo-php-driver cd mongo-php-driver curl > Unzip it unzip cd mongo-php-driver-master You need _phpize _to build the module. You can install it from the remi repository: wget rpm -Uvh remi-release-6.rpm yum --enablerepo=remi install php-devel Configure and build phpize ./configure make all sudo make install Make sure the installation directory is the same as the PHP extension directory by running: