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!
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
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
Related
I tried to install phpunit/phpunit-selenium but it shows me few errors. I given it in below:
composer require --dev phpunit/phpunit-selenium
Using version ^7.0 for phpunit/phpunit-selenium
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for phpunit/phpunit-selenium ^7.0 -> satisfiable by phpunit/phpunit-selenium[7.0.0].
- phpunit/phpunit-selenium 7.0.0 requires phpunit/phpunit >=7.0,<8.0 -> satisfiable by phpunit/phpunit[7.0.0, 7.0.1, 7.0.2, 7.0.3, 7.1.0, 7.1.1, 7.1.2, 7.1.3, 7.1.4, 7.1.5, 7.2.0, 7.2.1, 7.2.2, 7.2.3, 7.2.4, 7.2.5, 7.2.6, 7.2.7, 7.3.0, 7.3.1, 7.3.2, 7.3.3, 7.3.4, 7.3.5, 7.4.0, 7.4.1, 7.4.2, 7.4.3, 7.4.4, 7.4.5, 7.5.0, 7.5.1, 7.5.10, 7.5.11, 7.5.12, 7.5.13, 7.5.14, 7.5.15, 7.5.16, 7.5.2, 7.5.3, 7.5.4, 7.5.5, 7.5.6, 7.5.7, 7.5.8, 7.5.9, 7.5.x-dev] but these conflict with your requirements or minimum-stability.
Installation failed, reverting ./composer.json to its original content.
Before installing selenium, I tried to install PHPUnit and it installed successfully.
I also move the selenium jar file to usr/local/bin folder then run it.
I didn't find any solution. Can anyone help me out for this?
Good day:
I'm running PHP 5.6 and I'm trying to install aws/aws-sdk-php however, getting error:
$ composer require aws/aws-sdk-php
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- symfony/translation v4.1.3 requires php ^7.1.3 -> your PHP version (5.6.20) does not satisfy that requirement.
- symfony/translation v4.1.3 requires php ^7.1.3 -> your PHP version (5.6.20) does not satisfy that requirement.
- Installation request for symfony/translation == 4.1.3.0 -> satisfiable by symfony/translation[v4.1.3].
Installation failed, reverting ./composer.json to its original content.
Not sure why I'm getting this issue as aws/aws-sdk-php requires minimum PHP 5.6 however, these dependencies requires php 7. I already have these dependencies installed in my vendor directory (through composer)
"require" : {
"jenssegers/proxy" : "^2.2",
"league/oauth2-client" : "0.12.1",
"zendframework/zend-diactoros" : "^1.7",
"nesbot/carbon" : "^1.22"
}
As #rob006 mentioned, I needed to delete my vendor directly and run composer again.
This main reason for the issue is that I ran composer install initially on a PHP 7 system and then ran it subsequently on php 5.6 which cause the issue. Another fix is to set the platform version of php in the composer.json file.
I'm trying to create a new laravel app, but when I use the command "laravel new" I've got an error :
laravel new
Crafting application...
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for phpunit/php-token-stream 2.0.0 -> satisfiable by phpunit/php-token-stream[2.0.0].
- phpunit/php-token-stream 2.0.0 requires php ^7.0 -> your PHP version (5.6.30) does not satisfy that requirement. Problem 2
- phpunit/php-token-stream 2.0.0 requires php ^7.0 -> your PHP version (5.6.30) does not satisfy that requirement.
- phpunit/php-code-coverage 4.0.8 requires phpunit/php-token-stream ^1.4.2 || ^2.0 -> satisfiable by phpunit/php-token-stream[2.0.0].
- Installation request for phpunit/php-code-coverage 4.0.8 -> satisfiable by phpunit/php-code-coverage[4.0.8].
Application ready! Build something amazing.
I'm on Windows 10, with php 5.6.30 installed.
I already tried to update composer itself, and laravel's installer (via composer global require "laravel/installer"), but it still doesn't work.
Last time I tried on this computer was three weeks ago, and it worked then.
Edit : I can't change my PHP version since it is the one I use on my server.
It looks like you are trying to download the latest realease of laravel. Though it is 5.4 but for some reason, it is downloading laravel's version that is compatible only with PHP7
Try with composer create-project --prefer-dist laravel/laravel blog "5.4.*" to install laravel 5.4
It's only the phpunit version. Change the version to smaller, like:
"phpunit/phpunit": "~5.7"
to
"phpunit/phpunit": "~5.0"
I'm trying to update my symfony project using composer. I'm running into a strange issue I'm not really sure how to handle. My php version is high enough to update but its formatted in such a way composer wont let me update. Here's my error message:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- symfony/symfony v3.0.1 requires php >=5.5.9 -> your PHP version (5.6.11-1ubuntu3.1) does not satisfy that requirement.
- symfony/symfony v3.0.0 requires php >=5.5.9 -> your PHP version (5.6.11-1ubuntu3.1) does not satisfy that requirement.
- Installation request for symfony/symfony 3.0.* -> satisfiable by symfony/symfony[v3.0.0, v3.0.1].
As you can see, my php version is indeed high enough to update, however, composer says no. How to I force it to update anyway?
How to I force it to update anyway?
With the --ignore-platform-reqs option composer ignore all the php, ext-*, lib-* requirements and force the installation even if the local machine does not fulfill these.
composer install --ignore-platform-reqs
composer update --ignore-platform-reqs
The option is available also for create-project, remove and require.
The documentation can be read here.
This is my error, I found it on google, and I don't know where is the error. I have MAMP PRO with php 5.4.4 version
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
- laravel/framework v4.2.4 requires php >=5.4.0 -> no matching package found.
- laravel/framework v4.2.3 requires php >=5.4.0 -> no matching package found.
- laravel/framework v4.2.2 requires php >=5.4.0 -> no matching package found.
- laravel/framework v4.2.1 requires php >=5.4.0 -> no matching package found.
- laravel/framework v4.2.0 requires php >=5.4.0 -> no matching package found.
- Installation request for laravel/framework 4.2.* -> satisfiable by laravel/framework[v4.2.0, v4.2.1, v4.2.2, v4.2.3, v4.2.4].
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion for more details.
Read http://getcomposer.org/doc/articles/troubleshooting.md for further common problems.
OS X is pre-installed with its own PHP, and it's probably older than 5.4 that Laravel 4.2 requires. And when you do php in your terminal, you'll probably get your OSX's php. Try it with php -v
You'll need to make your MAMP PRO's php your default binary, as suggested in change the PHP path to MAMPs PHP Try:
export PATH=/Applications/MAMPPRO/php5.4.4/bin:$PATH
This will only work up until you close your terminal. To make the change permanent, add the line above to your ~/.bash_profile
Then you check again by typing which php to your terminal. It should now point to your MAMP PRO's PHP binary.
Use homestead , its a vagrant box that will help your development.
https://github.com/laravel/homestead
You can set up a virtualbox with debian.
virtualbox: https://www.virtualbox.org
debian: https://www.debian.org
web server install tut:
http://www.howtoforge.com/ubuntu-lamp-server-with-apache2-php5-mysql-on-14.04-lts
or install homestead: http://laravel.com/docs/homestead
And read this: https://www.andrewmunsell.com/blog/development-environments-with-vagrant-and-puppet
Alternatively, if you are comfortable with the terminal, installing Apache & PHP, you can use MacPorts to install any version of PHP >= 5.4.
MacPorts