How to add a custom PHP version in Plesk for Linux?

Follow

Comments

5 comments

  • Avatar
    Cyril Thibout (Edited )

    Hi
    Followng this article (and some additional help from https://talk.plesk.com/threads/unable-to-start-service-unable-to-manage-service-by-phpinimng.369863/)  I was able to add and run PHP 7.1 (FPM) on a Plesk Obsidian 18.0.52 update3 (Debian 11.7).

    However in the Plesk Tools&Settings / PHP settings / 7133-phpfpm page the EXTENSION TAB remains empty
    Whatever I write in the PHP.ini (the second tab) phpinfo shows me that mysqli is not loaded.

    I tried to add the following lines without success:

    extension=msql.dll
    extension=msql.so
    extension=mysqli
    extension=php_mysqli
    extension=php_mysqli.dll

    Maybe the solution was to compile the PHP 7.1 WITH the extensions as I could understand it on your § 1.4 but then what is the right syntax to add mysqli please?

     

    I tried without success:

    ./configure --prefix /usr/local/php-7.1.33 --enable-fpm --with-fpm-group=www-data  --enable-soap --with-mysqli --with-mysql-sock


    thanks for your help

     

    Cyril

    0
    Comment actions Permalink
  • Avatar
    Alexander Tsmokalyuk

    @Cyril this requires investigation, please create a ticket to Plesk Technical support

    0
    Comment actions Permalink
  • Avatar
    Cyril Thibout

    Alexander Tsmokalyuk

    Yes I already created https://talk.plesk.com/threads/custom-php-7-1-with-extensions.370131/

    thanks

    0
    Comment actions Permalink
  • Avatar
    anton.mozolkov (Edited )

    Hi, did you manage to solve the problem?

    we are experiencing the same difficulty after installing the PHP version following instructions from Plesk....

    0
    Comment actions Permalink
  • Avatar
    anton.mozolkov

    I'll leave it here:

    ./configure --prefix /opt/plesk/php/7.2 --enable-fpm --with-fpm-group=www-data --with-pdo-mysql=mysqlnd --with-mysqli=mysqlnd

    after that in info.php mysqli and pdo_mysql appeared, I didn't do anything in php.ini.

    I think the situation is the same with other extensions. An example of installation can be taken from the "Configure Command" section of any version of PHP available for installation and in the Plesk panel.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request