I have read this interesting post regarding the installation of php-mongo driver not writeable by the current user
mkdir pear ln -s pear /tmp/pear-build-`whoami` /usr/bin/pear config-set cache_dir $HOME/pear/cache /usr/bin/pear config-set download_dir $HOME/pear/download /usr/bin/pear config-set temp_dir $HOME/pear/temp
This makes pear compile it in your home directory instead of /tmp.
Then I ran:
pecl install mongo
What is the outcome of running the following command?
ln -s pear /tmp/pear-build-`whoami`