Change the PHP version of Composer

Asked

Viewed 241 times

0

Composer on my server is recognizing PHP 5.6, but I am using PHP 7.1 in another directory. How do I change the PHP version of Composer?

  • you use apache ? from a phpinfo() and see which version the server is using

  • Yes, I use apache. About phpinfo(), if I give this command at the root, the version I see is 5.6.33. However, if I give this command in public_html, the version that appears to me is 7.0.27

  • ta using Windows ?

  • No, I’m using a linux server, I still don’t know if it’s Ubuntu or which distribution.

  • Utilize screenfetch, lsb_release -a or uname -a to discover the distro of your Linux. If you use two or more versions of PHP on Linux, use Phpbrew to manage.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.