R
R
Roman Volkov2016-02-04 16:21:35
Composer
Roman Volkov, 2016-02-04 16:21:35

How to solve Composer should be invoked via the CLI version of PHP, not the cgi-fcgi SAPI error?

I'm trying to install lravel dependencies on hosting.
php composer.phar install
Warning: Composer should be invoked via the CLI version of PHP, not the cgi-fcgi SAPI
php -v
PHP 5.5.26 (cgi-fcgi) (built: Jun 17 2015 12:44:24)
Copyright ( c) 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies
with the ionCube PHP Loader v4.7.3, Copyright (c) 2002-2014, by ionCube Ltd.
with HostProtect v0.0.3-dev, Copyright (c) 2014, by Hostinger Inc.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Cat Anton, 2016-02-04
@white_wolf_17

php-cli composer.phar install

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question