
- 开发环境:vagrant 1.7 + centos 6(i386) + LAMP
- Drupal版本:7.53
在vagrant LAMP开发环境中,给Druapl安装模块时,显示WARNING: You are not using an encrypted connection, so your password will be sent in plain text
的错误信息。
百度找了这个问题,使用
sudo chown -R www:www /path/to/drupal/
的方法,运行类似的命令之后,
再次ll
之后,拥有者还是vagrant
.
解决方法是,修改 vangrant 共享文件夹的 拥有者和用户组
修改vagrant 共享文件夹的权限
修改Vagrantfile
*享文件夹配置config.vm.synced_folder
的拥有者和用户组,如:
config.vm.synced_folder "D:/developphp", "/var/www/html"
改为
config.vm.synced_folder "D:/developphp", "/var/www/html", :owner => "apache", :group => "apache"
Tips
- 可以通过
sudo cat /etc/passwd
列出系统的所有用户
参考文献
- Can I modify the ownership for a shared folder in vagrant? 明白vagrant修改共享文件夹的拥有者和用户组
-
"Cannot connect to FTP Server, check settings" After trying to upload a Theme 提到,拥有者和用户组,可能不是
www:www
或www-data:www-data
,可能是apache:apache
(work for me