[英]Installing composer.phar
I've been trying to install composer.phar
to my HostGator
website. 我一直在尝试将
composer.phar
安装到HostGator
网站上。 However, I come across this error: 但是,我遇到了这个错误:
[~/public_html/flarum]# php composer.phar install
Loading composer repositories with package information
Installing dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- flarum/core v0.1.0-beta.4 requires php >=5.5.9 -> your PHP version (5.4.45) or value of "config.platform.php" in composer.json does not satisfy that requirement.
- flarum/core v0.1.0-beta.3 requires php >=5.5.9 -> your PHP version (5.4.45) or value of "config.platform.php" in composer.json does not satisfy that requirement.
- flarum/flarum-ext-suspend v0.1.0-beta.3 requires flarum/core ^0.1.0-beta.3 -> satisfiable by flarum/core[v0.1.0-beta.3, v0.1.0-beta.4].
- Installation request for flarum/flarum-ext-suspend ^0.1.0 -> satisfiable by flarum/flarum-ext-suspend[v0.1.0-beta.3].
I have updated my PHP
to the newest via the cPanel
. 我通过
cPanel
将我的PHP
更新到最新版本。
If there is any help at all that I could get on this it would be greatly appreciated! 如果我能得到任何帮助,我将不胜感激!
Your PHP version is too low for Flarum. 您的PHP版本对于Flarum来说太低了。 You need 55 or better 56.
你需要55或更好56。
Enable and use a higher PHP version on HostGator. 在HostGator上启用并使用更高版本的PHP。
To find the other PHP versions take a look at the /opt/
folder. 要查找其他PHP版本,请查看
/opt/
文件夹。
# /opt/php56/bin/php composer.phar install
You can refer this link http://laravel.io/forum/02-13-2014-how-to-install-laravel-on-a-hostgator-shared-server 你可以参考这个链接http://laravel.io/forum/02-13-2014-how-to-install-laravel-on-a-hostgator-shared-server
and install flarum with following ~/composer create-project flarum/flarum ~/public_html/flarum --stability=beta 并使用以下〜/ composer create-project flarum / flarum~ / public_html / flarum -stability = beta安装flarum
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.