Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

composer install on Vagrant box fails #169

Open
MECU opened this issue Feb 18, 2019 · 1 comment
Open

composer install on Vagrant box fails #169

MECU opened this issue Feb 18, 2019 · 1 comment

Comments

@MECU
Copy link

MECU commented Feb 18, 2019

I just did a new install and at the end it says to run: vagrant ssh -c 'composer install', so I did and got:

Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update

                                                                                                        
  [ErrorException]                                                                                      
  file_put_contents(/var/www/vendor/composer/installed.json): failed to open stream: Permission denied  
                                                                                                        

install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [--no-suggest] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--ignore-platform-reqs] [--] [<packages>]...

Connection to 127.0.0.1 closed.

So I tried to vagrant ssh and run composer install and got the same result.

So I sudo vagrant ssh and it works (with nothing to do), though with the composer warning to not run as root.

It seems the ssh is using user vagrant but the /var/www is setup with www-data user and group so the vagrant user doesn't have permission.


I'm not sure if it's related, but I just noticed this error in the vagrant up output:

default: dpkg-preconfigure: unable to re-open stdin: No such file or directory

@weierophinney
Copy link
Member

This repository has been closed and moved to laminas-api-tools/api-tools-skeleton; a new issue has been opened at laminas-api-tools/api-tools-skeleton#2.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants