I am trying to install composer on my shared host for the first time.
When I ran curl -sS https://getcomposer.org/installer | php curl -sS https://getcomposer.org/installer | php I get composer successfully installed
User: php composer.phar
when I run php composer.phar , I get this belligerent error:
Warning: Composer must be called via the CLI version for PHP, not cgi-fcgi SAPI
any ideas on how to fix this? and why am I getting this error ?: (
when i run php -v i will go back
PHP 5.4.39 (cgi-fcgi) (built: Mar 25 2015 14:20:20) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies with Zend Guard Loader v3.3, Copyright (c) 1998-2013, by Zend Technologies
Do I need to run this using the CLI version, if so, how would I do this?
Any help would be enjoyable.
source share