系统环境为: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
本文介绍了在Ubuntu 16.04系统上使用PHP 7.0版本安装Laravel过程中遇到的问题及解决方法,包括安装zip扩展、mbstring扩展、dom扩展及解决PDO驱动问题。
499

被折叠的 条评论
为什么被折叠?



