Home>Article>Development Tools> How to modify php version in composer
Composer method to modify the PHP version: 1. Log in to SSH, enter "rm -f /usr/bin/php", and then change the default version to 71; 2. Enter the "Website" option and find "PHP Command line version", select the version you want to use.
The operating environment of this article: windows7 system, PHP7.1 version, DELL G3 computer
composer changes the php version
How to modify the old version
Log in to SSH and enter the following command:
rm -f /usr/bin/php
Change the default version to 71
ln -sf /www/server/php/71/bin/php /usr/bin/php
How to modify the new version
Enter the "Website" option. There is a "PHP command line version" on the top of the website list, click on it and select the version you want to use.
Recommended study: "composer Tutorial"
The above is the detailed content of How to modify php version in composer. For more information, please follow other related articles on the PHP Chinese website!