How to modify php version in composer

藏色散人
Release: 2021-06-02 10:30:38
Original
7681 people have browsed it

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
Copy after login

Change the default version to 71

ln -sf /www/server/php/71/bin/php /usr/bin/php
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!