[root@VM-16-6-centos php]# ls /usr/bin/php -al
lrwxrwxrwx 1 root root 26 Dec 27 2020 /usr/bin/php -> /www/server/php/70/bin/php
[root@VM-16-6-centos php]# ls /usr/bin/php
/usr/bin/php
[root@VM-16-6-centos php]# ls /usr/bin/php -al
lrwxrwxrwx 1 root root 26 Dec 27 2020 /usr/bin/php -> /www/server/php/70/bin/php
[root@VM-16-6-centos php]# ls /www/server/php/70/bin/php -al
-rwxr-xr-x 1 root root 10168248 May 13 2020 /www/server/php/70/bin/php
[root@VM-16-6-centos php]#
[root@VM-16-6-centos php]#
[root@VM-16-6-centos php]# rm /usr/bin/php -f
[root@VM-16-6-centos php]# ln -s /www/server/php/56/bin/php /usr/bin/php
[root@VM-16-6-centos php]# php -v
PHP 5.6.40 (cli) (built: May 13 2020 15:59:55)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
with Zend Guard Loader v3.3, Copyright (c) 1998-2014, by Zend Technologies
注:解决一次composer 的问题
1.修改 php.ini 配置。把 disable_functions(禁用函数列表)这行里的putenv, proc_open 函数删除,然后重启 PHP 服务
composer install --ignore-platform-reqs 忽略版本
|