How to add additional PHP module for PHP engines shipped with Plesk on Linux?

Follow

Comments

8 comments

  • Avatar
    Unknown User

    Example is wrong:

     

    Note: Name of the devel package for another PHP version will be different, e.g. for PHP 7.1 it will be plesk-php70-devel. In some cases additional librbary package should be installed as well

     

    Should be:

     

    Note: Name of the devel package for another PHP version will be different, e.g. for PHP 7.1 it will be plesk-php71-devel. In some cases additional librbary package should be installed as well

    0
    Comment actions Permalink
  • Avatar
    Pavel Rozental

    Hello Brian,

    Thank you, fixed article.

    0
    Comment actions Permalink
  • Avatar
    Javan

    Hi, I found this article which is similar to my needs.

    Is there a way installing a php extension and a php daemon?

    I want to use Sqreen: https://docs.sqreen.com/php/manual-installation/#install-on-red-hat-or-centos

    Can you provide a instruction?

     

    0
    Comment actions Permalink
  • Avatar
    Ivan Postnikov

    Hello Javan

    You may try this solution.

    Let me notice that this solution wasn't tested on our side and is done at your own risk.

    0
    Comment actions Permalink
  • Avatar
    sdepa

    Hi, there's a reason why simplexml extension is not available for PHP > 7.2?

    0
    Comment actions Permalink
  • Avatar
    Ivan Postnikov

    Hello sdepa,

    As I understand, since PHP 7.2 it's no longer included in default installations.

    To add it, you may try this instruction: https://support.plesk.com/hc/en-us/articles/360005875373

    0
    Comment actions Permalink
  • Avatar
    John D'Orazio (Edited )

    I am finding that I have to run pecl with sudo, and it will install to the system folder /usr/lib/php/#########, so I have to manually copy the module to the plesk php module folder, like this:

    $ sudo /opt/plesk/php/8.0/bin/pecl install timezonedb
    #make a note of where it's installed to in the pecl output, towards the end, and copy from there
    $ sudo cp /usr/lib/php/20200930/timezonedb.so /opt/plesk/php/8.0/lib/php/modules/timezonedb.so
    $ sudo touch /opt/plesk/php/8.0/etc/php.d/timezonedb.ini
    $ sudo nano /opt/plesk/php/8.0/etc/php.d/timezonedb.ini
    #add "extension=timezonedb.so" and save

    Then issue a sudo plesk bin php_handler --reread and / or sudo service php8.0-fpm restart and/or sudo service apache2 restart.

    0
    Comment actions Permalink
  • Avatar
    Laurent Quétier

    I still have ovh mirrors : "http://centos.mirrors.ovh.net"

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request