PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, December 31, 2021

[FIXED] ErrorException failed to open stream: Permission denied on composer install

 December 31, 2021     composer-php, laravel     No comments   

Issue

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?


Solution

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


Answered By - Spholt
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home
View mobile version

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing