Skip to main content

Tell Composer to use a different php version

Comments

3 comments

  • ServerHealers
    Try running the composer the following way, and see if that helps: /usr/local/bin/ea-php80 /usr/local/bin/composer install
    Regarding the code button, this is a known issue and cPanel team is currently working on a new forum so that would be solved soon.
    0
  • mvandemar
    Try running the composer the following way, and see if that helps: /usr/local/bin/ea-php80 /usr/local/bin/composer install
    Regarding the code button, this is a known issue and cPanel team is currently working on a new forum so that would be solved soon.

    I know I can use the full path to the binary with php but I was still wondering if there is a way to change which php version is accessed by default when you use the cli version. -Michael
    0
  • cPRex Jurassic Moderator
    This is probably the most helpful guide about this situation:
    0

Please sign in to leave a comment.