Is it possible to upgrade system PHP on Plesk server?




  • Avatar

    I have the same question and this response does not address it.   I use PHP 7 in my applications but when I try to load packages via the command line I get errors like:

    league/oauth2-client 2.3.0 requires php ^5.6|^7.0 -> your PHP version (5.4.45)

    5.4.45 is by OS Vendor and I need to know how to update this as it is what the Centos command line thinks my PHP version is.

  • Avatar
    Alexandr Tumanov

    @Janet, use Plesk PHP in CLI instead of OS one:

    # /opt/plesk/php/7.2/bin/php -v
    PHP 7.2.3 (cli) (built: Mar 2 2018 14:04:04) ( NTS )

  • Avatar
    Phil Ainley

    I have a similar issue. I recently uploaded a new wordpress version of a website and it won't allow certain plugins because the server php is too old. It is currently running php 5.3.3

    How can it be updated without disryuption?

    I would have thought this kind of update would have been automated, or at least handled by yourselves like with most ISPs



  • Avatar
    Ivan Postnikov

    Hello @Phil!

    A Wordpress instance installed on a domain does not use server PHP version, it uses domain PHP version. PHP version may be selected at Domains > > PHP Settings. New PHP versions, which will be available to select need to be installed according to this article.

  • Avatar

    @Janet, Avez-vous une cause nouvelles que j'ai le même problème que vous avez fait / fait? TIA.

  • Avatar
    Alexandr Redikultsev

    Hi @Briand,

    Version of PHP selected at Domains > > PHP Settings is actually not the same that is used in the command line.

    To use another PHP version via the command line, use the full path to it, see the following article for additional details: 

  • Avatar
    Erwan (Edited )

    Thx @Alexandr. I'm investigating the article you pointed at.

  • Avatar
    Unknown User

    Thanks Alexandr,

    The article was very helpful for me!

Please sign in to leave a comment.

Have more questions? Submit a request