Is it possible to upgrade PHP version provided by OS vendor?




  • 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 )

Please sign in to leave a comment.

Have more questions? Submit a request