如题,想用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
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
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