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

    vagrant WARNING: You are not using an encrypted connection的更多相关文章

    1. OpenFaaS实战之八:自制模板(maven+jdk8)

      欢迎访问我的GitHub https://github.com/zq2599/blog_demos 内容:所有原创文章分类汇总及配套源码,涉及Java.Docker.Kubernetes.DevOPS ...

    2. OpenFaaS实战之九:终篇,自制模板(springboot+maven+jdk8)

      欢迎访问我的GitHub https://github.com/zq2599/blog_demos 内容:所有原创文章分类汇总及配套源码,涉及Java.Docker.Kubernetes.DevOPS ...

    3. How To Set Up an OpenVPN Server on Ubuntu 14.04

      Prerequisites The only prerequisite is having a Ubuntu 14.04 Droplet established and running. You wi ...

    4. Using SSH on Linux

      This document covers the SSH client on the Linux Operating System and other OSes that use OpenSSH. W ...

    5. https那些事儿

      (一)SSL/TLS协议运行机制的概述 一.作用 不使用SSL/TLS的HTTP通信,就是不加密的通信.所有信息明文传播,带来了三大风险. (1) 窃听风险(eavesdropping):第三方可以获 ...

    6. 安全通信 QSslSocket

      The QSslSocket class provides an SSL encrypted socket for both clients and servers. More... Header: ...

    7. KVM网页管理工具WebVirtMgr部署

      KVM-WebVirtMgr 0ther https://github.com/retspen/webvirtmgr/wiki System Optimization(Only CentOS6.X) ...

    8. ZooKeeper Administrator's Guide A Guide to Deployment and Administration(吃别人嚼过的馍没意思,直接看官网资料)

      Deployment System Requirements Supported Platforms Required Software Clustered (Multi-Server) Setup ...

    9. Configure GenieACS

      GenieACS General Config config.json acts as the main configuration file and is stored in /path_to_ge ...

    随机推荐

    1. C:基本语句

      基本语句知识 do{}while(); 与 while()do{}:for :while 语句的区别: while()do{}:先判断条件是否成立,条件满足则执行循环体 do{}while();是先执 ...

    2. Apache实现动态虚拟主机

      经常在开发中为Apache web server添加虚拟主机  方便多个项目的 同时运营,但是每次增加新的项目时都得重新配置增加VirtualHost:虚拟主机    部分,时间久了VirtualHo ...

    3. 使用jQuery-AJAX–读取获得跨域JSONP数据的示例

      在项目开发中,如果在同一个域名下就不存在跨域情况,使用$.getJSON()即可实现.但是需要跨域请求其他域名下面的Json数据就需要JSONP的方式去请求,跨域写法和getJSON有差异.如下:   ...

    4. The J1850 Core

      http://www.digidescorp.com/wp-content/uploads/2012/02/J1850-Datasheet-pdf.pdf

    5. A few things to remember while coding in Python.

      A few things to remember while coding in Python. - 17 May 2012 - UPDATE: There has been much discuss ...

    6. 开发过程中常用的Linux命令

      做Java开发好几年了,部署JavaWeb到服务器上,一般都选择Linux,Linux作为服务器真是不二之选,高性能,只要熟悉Linux,操作快捷,效率很高. 总结一下工作中常用的Linux命令备忘: ...

    7. addClass 函数

      javascript: function addClass(id,new_class){ var i,n=0; new_class=new_class.split(","); fo ...

    8. Codeforces Gym 100015A Another Rock-Paper-Scissors Problem 找规律

      Another Rock-Paper-Scissors Problem 题目连接: http://codeforces.com/gym/100015/attachments Description S ...

    9. [Angular2 Router] Build Angular 2 Navigation with routerLink

      Angular 2 navigation is configured using the routerLink directive. The routerLink directive behaves ...

    10. [MEAN Stack] First API -- 3. Select by ID with Mongoose and Express

      Mongoose allows you to easily select resources by ID from your MongoDB. This is an important aspect ...