skip to Main Content

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


  1. Use /opt/plesk/php/5.6/bin/ path.

    Login or Signup to reply.
  2. You can use following instruction for installation php mongo extension for PHP5.6, for example:

    1. Install all necessary packages for compiling mongo module:

    yum install make plesk-php56-devel gcc glibc-devel openssl-devel

    1. Compile mongo module:

    /opt/plesk/php/5.6/bin/pecl install mongo

    1. Add extension to corresponding ini file:

    echo “extension=mongo.so” > /opt/plesk/php/5.6/etc/php.d/mongo.ini

    1. Reread php handlers:

    plesk bin php_handler –reread

    1. Go to Plesk -> Tools&Settings -> PHP Settings -> 5.6.xxxx

    2. Enjoy the view of the installed mongo module.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search