Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Symfony cannot install new bundles because of composer permission issue

While try to install new bundles into my project composer issue happens which is regarding permission, issue follows

Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installRequirementsFile handling the symfony-scripts event terminated with an exception

Installation failed, reverting ./composer.json to its original content.


[Symfony\Component\Filesystem\Exception\IOException]                                                                                                                 
Failed to copy "/var/www/html/myProject/vendor/sensio/distribution-bundle/Composer/../Resources/skeleton/app/check.php" to "bin/symfony_requirements" because target file could not be opened for writing.                                                                                                                                    

Thank you...

like image 925
abhinand Avatar asked Oct 26 '25 14:10

abhinand


1 Answers

You have wrong permissions on file bin/symfony_requirements. Fix it and all will work like a charm

like image 196
Pavel Parshin Avatar answered Oct 29 '25 18:10

Pavel Parshin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!