Home  >  Article  >  Topics  >  How to switch the default PHP version in Pagoda Panel

How to switch the default PHP version in Pagoda Panel

藏色散人
藏色散人forward
2021-01-06 16:18:226780browse

The following is the Pagoda Paneltutorial column to introduce to you how to switch the default PHP version of the Pagoda Panel. I hope it will be helpful to friends in need!

How to switch the default PHP version in Pagoda Panel

Pagoda panel switches the default PHP version

1. Situation description:

When I executed composer install, I was prompted that the PHP version was too low. I checked the PHP versions of the Pagoda Panel and found that there were two, one 5.6 and one 7.3. Although the php5.6 version has been suspended, executing composer install still prompts that the version is too low.

2. Solution:
1.rm -f /usr/bin/php 
//删除默认的配置
2.将默认版本修改成想要的版本,如:7.3
ln -sf /www/server/php/73/bin/php /usr/bin/php

ps: Do not trust any rm -f command easily. Unless you are very familiar with it, do not use the rm -f command easily. ! ! !                                                                                                                                                                     #

The above is the detailed content of How to switch the default PHP version in Pagoda Panel. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:learnku.com. If there is any infringement, please contact admin@php.cn delete