I am creating a new server for a laravel application. I installed composer and selected php5.6.15 from my cpanel. But when I run the php -v command in the terminal, it shows my current version as php5.2.19.
Here is my php.ini file on my server, it shows version 5.6

I uploaded my code to the server using git. When I run the linker command, it gives me this error.
Your requirements could not be resolved to an installable set of packages. Problem 1 - laravel/framework v5.1.28 requires php >=5.5.9 -> your PHP version (5.4.43) or value of "config.platform.php" in composer.json does not satisfy that requirement. - laravel/framework v5.1.28 requires php >=5.5.9 -> your PHP version (5.4.43) or value of "config.platform.php" in composer.json does not satisfy that requirement. - Installation request for laravel/framework v5.1.28 -> satisfiable by laravel/framework[v5.1.28].
I am using laravel 5.1. If I refuse it before 5.0, it will give dependency errors with other packages. Here is my composer.json file.
{ "name": "laravel/laravel", "description": "The Laravel Framework.", "keywords": ["framework", "laravel"], "license": "MIT", "type": "project", "require": { "php": ">=5.4.43", "laravel/framework": "5.1.*", "bestmomo/scafold": "dev-master", "illuminate/html": "5.*", "barryvdh/laravel-debugbar": "^2.0", "intervention/image": "^2.3", "doctrine/dbal": "^2.5", "davejamesmiller/laravel-breadcrumbs": "^3.0", "yajra/laravel-datatables-oracle": "^5.11", "zizaco/entrust": "dev-laravel-5" }, "require-dev": { "fzaninotto/faker": "~1.4", "mockery/mockery": "0.9.*", "phpunit/phpunit": "~4.0", "phpspec/phpspec": "~2.1" }, "autoload": { "classmap": [ "database" ], "psr-4": { "App\\": "app/" } }, "autoload-dev": { "classmap": [ "tests/TestCase.php" ] }, "scripts": { "post-install-cmd": [ "php artisan clear-compiled", "php artisan optimize" ], "pre-update-cmd": [ "php artisan clear-compiled" ], "post-update-cmd": [ "php artisan optimize" ], "post-root-package-install": [ "php -r \"copy('.env.example', '.env');\"" ], "post-create-project-cmd": [ "php artisan key:generate" ] }, "config": { "preferred-install": "dist", } }
I have php56 available under / usr / php / php 56, and I can run it by making an alias or just typing the full path. I also made an alias, and after that php -v shows me 5.6.15 , but when I run composer install it still gives the same output above.
Maybe I wonβt be able to install the standard php cli version on 5.6 or is it something with laravel framework support on bluehost servers. I think bluehost support is less of a concern because I have a composer who can do some of the work. Your help in solving this problem is greatly appreciated.