vagrant WARNING: You are not using an encrypted connection

时间:2023-03-09 09:00:16
vagrant WARNING: You are not using an encrypted connection
  1. 开发环境:vagrant 1.7 + centos 6(i386) + LAMP
  2. 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
  1. 可以通过sudo cat /etc/passwd列出系统的所有用户
参考文献
  1. Can I modify the ownership for a shared folder in vagrant? 明白vagrant修改共享文件夹的拥有者和用户组
  2. "Cannot connect to FTP Server, check settings" After trying to upload a Theme 提到,拥有者和用户组,可能不是www:wwwwww-data:www-data,可能是apache:apache(work for me