如何在远程服务器上上传laravel项目

问题描述 投票:0回答:1

我正在尝试通过基于ubuntu的远程服务器上的ssh连接安装新的laravel项目。我遇到了以下问题:

enter image description here

我猜这个项目需要php 7.2 zip扩展名。但是我已经有了php 7.2。

enter image description here

有人可以帮我吗?

P.S。我已经尝试过每条命令,例如sudo apt-get install php7 *-等...

linux laravel ubuntu remote-server botman
1个回答
0
投票

错误是因为缺少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
© www.soinside.com 2019 - 2024. All rights reserved.