E
E
encores2014-07-31 13:41:10
symfony
encores, 2014-07-31 13:41:10

How to get rid of the should be invoked via the CLI version of PHP error when installing via composer?

Hello, my first acquaintance with composer is very sad.
PHP works in fastCGI mode, I'm trying to install symfony
like this
php -d register_argc_argv=1 -d detect_unicode=Off "./composer.phar" install
or php-cli -d, I've already tried many ways.
I always get:

http/vendor/sensio/distribution-bundle/Sensio/Bundle/DistributionBundle/Resources/bin/build_bootstrap.php should be invoked via the CLI version of PHP, not the cgi-fcgi SAPI

well, after that I sniff out mistakes
[InvalidArgumentException]      
   The target directory "web" does not exist.
Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installAssets handling the post-install-cmd event terminated with an exceptiony "web" does not exist.
  [RuntimeException]                                                            
  An error occurred when executing the "'assets:install '\''web'\'''" command.

The web directory exists in the ~/http folder (the one I run composer from)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
1
1001001 111, 2014-07-31
@IgorO2

Here they say that updating composer.json helped

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question