我一直在尝试将composer.phar
安装到我的HostGator
网站。但是,我遇到了这个错误:
[~/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].
我已通过PHP
将cPanel
更新为最新版本。
如果我能得到任何帮助,我将不胜感激!
答案 0 :(得分:2)
你的PHP版本对于Flarum来说太低了。你需要55或更好的56。
在HostGator上启用并使用更高版本的PHP。
要查找其他PHP版本,请查看/opt/
文件夹。
# /opt/php56/bin/php composer.phar install
答案 1 :(得分:1)
您可以参考此链接 http://laravel.io/forum/02-13-2014-how-to-install-laravel-on-a-hostgator-shared-server
并按照以下方式安装flarum 〜/ composer create-project flarum / flarum~ / public_html / flarum --stability = beta