我正在尝试通过基于ubuntu的远程服务器上的ssh连接安装新的laravel项目。我遇到了以下问题:
我猜这个项目需要php 7.2 zip扩展名。但是我已经有了php 7.2。
有人可以帮我吗?
P.S。我已经尝试过每条命令,例如sudo apt-get install php7 *-等...
错误是因为缺少ext-zip。
要为Linux安装zip,请使用以下命令。
php 7:
sudo apt-get install php7.0-zip
php 5:
sudo apt-get install php5-zip
确保随后再重新启动服务器。
sudo /etc/init.d/apache2 restart