Home>Article>Development Tools> How to modify php version in composer

How to modify php version in composer

藏色散人
藏色散人 Original
2021-06-02 10:30:38 7581browse

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.

How to modify php version in composer

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn