Home > Topics > Pagoda Panel > body text

How to switch the default PHP version in Pagoda Panel

藏色散人
Release: 2021-01-06 16:18:22
forward
6789 people have browsed it

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

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!

Related labels:
source:learnku.com
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