如何在运行不同 php 版本的服务器上安装 laravel [英] How to install laravel on a server running different php versions

查看:16
本文介绍了如何在运行不同 php 版本的服务器上安装 laravel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在默认情况下在运行 php 5.3 的服务器下安装 laravel 时遇到问题,但我可以选择一个 php 版本在任何特定目录下运行.

im having issues to install laravel under my server running php 5.3 by default BUT i'm able to pick a version of php to run under any specific directory.

guzzlehttp/guzzle 4.1.2 requires php >=5.4.0 -> your PHP version does not satisfy that requirement.

所以我选择 php 5.4 在我试图安装 laravel 的目录上运行,但作曲家不知道我在该目录中运行 PHP 5.4.

so i choose php 5.4 to run on the directory that im trying to install laravel, but composer do not know that im running PHP 5.4 in that directory.

如何解决这个问题?

推荐答案

尝试使用 --ignore-platform-reqs,例如

Try running composer command with --ignore-platform-reqs, e.g.

composer install --ignore-platform-reqs

这篇关于如何在运行不同 php 版本的服务器上安装 laravel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆