laravel5.4在ubuntu16.04系统下出现问题,如何将apache2中的默认的php版本换回5.6?
淡淡烟草味
淡淡烟草味 2017-05-16 13:00:18
0
4
481

如题,想用laravel开发一个系统,目前经过一番测试之后发现是ubuntu16.04默认的php7.0有问题,所以想换回5.6。一直实现,请问怎么解决?
如果在有高手知道怎么样在不换PHP版本的前提下使laravel5.4完美运行,请不吝赐教。
先谢过了!

就是报这个错误:(通过composer event命令检查之后)
PHP Fatal error: Uncaught Error: Call to undefined function ComposerConsolejson_decode() in /usr/share/php/Composer/Console/Application.php:145

淡淡烟草味
淡淡烟草味

reply all(4)
Peter_Zhu

I said that I have no problem at all in 7.0 and 7.1 environments

大家讲道理

Is there any problem? Is there any error report? ! No problem found in laravel5.4 in php7.0

淡淡烟草味

It should be that there is no json module in php

apt-get install php7.0-json
phpcn_u1582

Switching the php version is very simple. You only need to kill the running php process first, and then start your php5 process. It should be noted that to start php5, you need to use the installation directory method to start, find the bin directory under the php5 installation directory, and then execute php

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!