How to add a custom PHP version?

Follow

Comments

6 comments

  • Avatar
    final coat app (Edited )

    hello i want to update PHP version because my laravel app version is newer then plesk version,please give me solution.

  • Avatar
    Ivan Postnikov

    Hello @final coat app!

    As I can see the most recent Laravel version requires PHP 7.1.3 or higher. Such PHP versions are provided by Plesk Onyx and may be installed at Tools & Settings > Updates and Upgrades > Add/Remove Components.

    In case you have Plesk 12.5 or lower, the easiest solution would be to Upgrade to Plesk Onyx.

    In case you want to install custom PHP version manually, follow the steps from this article.

     

  • Avatar
    final coat app (Edited )

    thanks for replay,

    my plesk version is onyx 17.5.3 (1.png) and in plesk server PHP version is 7.0.30 but my composer says your plesk version is 5.4.16 (2.png) ,please give me solution . see below images

  • Avatar
    Ivan Postnikov

    Hello @final coat app, the reason of such behavior is that composer uses OS PHP version, not the PHP version set for subscription.

    You may upgrade system PHP at your own risk. Alternatively, consider migration to Plesk server with OS supplied by more modern PHP version out of the box.

  • Avatar
    final coat app

    but my OS PHP version is 7.2.1 and plesk server version is 7.0.30 but error still come on composer update.composer show PHP version is 5.4.16

  • Avatar
    Ivan Postnikov

    @final, could you, please, show the output of the following commands:

    plesk -v

    php -v

Please sign in to leave a comment.

Have more questions? Submit a request