系统环境为:PHP 7.0.13-0 + ubuntu0.16.04.1 (cli)
1. 如果laravel new my_app
创建新项目失败报错
[RuntimeException]
The Zip PHP extension is not installed. Please install it and try again.
- 1
- 2
解决办法安装sudo apt-get install php7.0-zip
2. laravel/framework v5.2.18 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system。
解决办法执行sudo apt-get install php7.0-mbstring
不需要更改 php.ini
文件。
3.phpunit/phpunit 4.0.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.
解决办法执行sudo apt-get install php-xml
4.PDOException: could not find driver
解决办法执行sudo apt-get -y install php-mysql