Answer the question
In order to leave comments, you need to log in
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
[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.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question