1

I've been trying to install composer.phar to my HostGator website. 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.

If there is any help at all that I could get on this it would be greatly appreciated!

scott_lotus
  • 3,171
  • 22
  • 51
  • 69

2 Answers2

2

Your PHP version is too low for Flarum. You need 55 or better 56.

Enable and use a higher PHP version on HostGator.

To find the other PHP versions take a look at the /opt/ folder.

# /opt/php56/bin/php composer.phar install

Jens A. Koch
  • 39,862
  • 13
  • 113
  • 141
1

You can refer this link 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

Sanjay Sinalkar
  • 488
  • 2
  • 8
  • “While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes.” – Ravi Hirani Feb 16 '16 at 08:39
  • The article linked here solved my issue perfectly. Once I made the bashrc edits and changed the php source to use the updated version (5.6) it then worked perfectly to make hostgator use an update php by default for composer. Thanks a ton! – Michael Tunnell Nov 20 '17 at 14:45