Vagrant - Php Module

28 views
Skip to first unread message

Girip Dragos Andrei

unread,
Feb 27, 2016, 5:49:30 AM2/27/16
to Vagrant
Hi guys. I installed vagrant with laravel corectly. I want now to install a framework named phpshadow. This framework want me to copy a .so file to /usr/lib/php/20151012 . I connect to ssh ftp with WINSCP went to that folder "/usr/lib/php/20151012" but when I try to copy the file I have permission denied. How can I grant access for me there ?

Alvaro Miranda Aguilera

unread,
Feb 27, 2016, 7:49:39 AM2/27/16
to vagra...@googlegroups.com
Hello,

Assuming you are on linux, vagrant will have limited access to some folders, so you can copy to some folder where vagrant can read/write, and then use sudo


vagrant ssh will connect you as vagrant user

ls -al /usr/lib/php/20151012

Will show the permissions there.

usually the steps would be

copy the files to the folder where Vagrantfile is

then as you may have shared folders, you could do 
sudo cp <file>.so /usr/lib/php/20151012

then use sudo chown to set proper permissions there

if you use scp, copy as vagrant to /home/vagrant and then use the ssh with sudo cp  to copy to the final destination.

Alvaro

On 27/02/2016, at 11:49 PM, Girip Dragos Andrei <giripdra...@gmail.com> wrote:

Hi guys. I installed vagrant with laravel corectly. I want now to install a framework named phpshadow. This framework want me to copy a .so file to /usr/lib/php/20151012 . I connect to ssh ftp with WINSCP went to that folder "/usr/lib/php/20151012" but when I try to copy the file I have permission denied. How can I grant access for me there ?

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/b242cded-dc75-47e2-a010-d7bfb262f802%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages