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

查看:47
本文介绍了如何在运行不同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.

如何解决此问题?

推荐答案

尝试使用

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

composer install --ignore-platform-reqs

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

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