安装后错误500 laravel

时间:2017-01-15 16:57:05

标签: php json laravel

我用php 7在centos7上安装了LAMP 然后我使用composer安装了Laravel,但是我在浏览器中收到错误500并在apache中出现以下错误:

PHP Fatal error:  Uncaught RuntimeException: PHP's json extension is required to use Monolog's NormalizerFormatter in /var/www/html/blog/vendor/monolog/monolog/src/Mon$PHP 
Fatal error:  Uncaught RuntimeException: PHP's json extension is required to use Monolog's NormalizerFormatter in /var/www/html/blog/vendor/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php:34
Stack trace:\n#0 /var/www/html/blog/vendor/monolog/monolog/src/Monolog/Formatter/LineFormatter.php(42): Monolog\Formatter\\NormalizerFormatter->__construct(NULL)
#1 /var/www/html/blog/vendor/monolog/monolog/src/Monolog/Handler/AbstractHandler.php(184): Monolog\\Formatter\LineFormatter->__construct()
#2 /var/www/html/blog/vendor/monolog/monolog/src/Monolog/Handler/AbstractHandler.php(112): Monolog\\Handler\\AbstractHandler->getDefaultFormatter()
#3 /var/www/html/blog/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(35): Monolog\\Handler\\AbstractHandler->getFormatter()
#4 /var/www/html/blog/vendor/monolog/monolog/src/Monolog/Logger.php(337): Monolog\\Handler\\AbstractProcessingHandler->handle(Array)
#5 /var/www/html/blog/vendor/monolog/monolog/src/Monolog/Logger.php(616): Monolog\\Logger->addRecord(400, Objec in /var/www/html/blog/vendor/monolog/monolog/src/Monolog/Formatter/NormalizerFormatter.php on line 34

有人可以指出我正确的方向吗?

1 个答案:

答案 0 :(得分:-1)

PHP 7不支持Laravel 5.3,5.2,5.1,5.0及更低版本。

希望更新的版本将支持php 7