Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ErrorException failed to open stream: Permission denied on composer install

I had a laravel app on github and I want to clone on other computer . After I cloned the repository and run composer install command it shows me this error:

[ErrorException]                                                              
  copy(/Users/cosminciolacu/.composer/cache/files/symfony/debug/824e1c185cf2cd  
  10402999589458f4be7ef980e1.zip): failed to open stream: Permission denied 

what I missed?

like image 683
Cosmin Ciolacu Avatar asked Sep 05 '25 16:09

Cosmin Ciolacu


1 Answers

You may need to change the ownership and permissions of the directory you have installed the project in.

cd /path/to/project
sudo chmod -R 775 .
sudo chmod 660 .env
like image 145
Spholt Avatar answered Sep 07 '25 16:09

Spholt