If you have SSH access and root, you must follow the instructions "Installing on * NIX" (RPM files are just created for convenience).
You can try using pecl ... PECL is the repository for PHP extensions, and the mongo php driver uses this system.
Here is a blog post that might help you ...
http://learnmongo.com/posts/mongodb-php-install-and-connect/
Install instructions from this post ...
Installing the command line for Linux
Through your command line, run pecl ... (if you are using sudo):
$ sudo pecl install mongo
If you are already root ...
If you get the error "Unable to find phpize , then you may need to install the PHP dev package (so you can do this, if your OS has the ability, you may need to use another method to install PHP dev packaes) ...
$ sudo aptitude install php5-dev
Then you will need to edit the php.ini file , add the extension mongo.so:
extension=mongo.so
Reboot the web server and you're done.
If pecl does not work for you, you can manually install it as described here ...
http://www.php.net/manual/en/mongo.installation.php#mongo.installation.manual
Justin jenkins
source share