I have a dedicated Centos server.
As I see at plesk it has 5.3 (5.4),5.6 and 7 php but the default php is 5.4
My problem is that I want to install mongo driver for the 5.6 PHP version and I do not know where is 5.6 PHP installed.
Also I need to run some php 5.6 command line scripts.How can I find where php ver. 56 is located at centos server?
2
Answers
Use /opt/plesk/php/5.6/bin/ path.
You can use following instruction for installation php mongo extension for PHP5.6, for example:
yum install make plesk-php56-devel gcc glibc-devel openssl-devel
/opt/plesk/php/5.6/bin/pecl install mongo
echo “extension=mongo.so” > /opt/plesk/php/5.6/etc/php.d/mongo.ini
plesk bin php_handler –reread
Go to Plesk -> Tools&Settings -> PHP Settings -> 5.6.xxxx
Enjoy the view of the installed mongo module.