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. [转载]NoSQL数据库的基础知识

      关系型数据库和NoSQL数据库 什么是NoSQL 大家有没有听说过“NoSQL”呢?近年,这个词极受关注.看到“NoSQL”这个词,大家可能会误以为是“No!SQL”的缩写,并深感愤怒:“SQL怎么会 ...

    2. PaaS平台资源

      http://www.vagrantup.com/ http://www.docker.com/

    3. javaWeb学习笔记

      一.          web.xml -------------------------------------------------------------------------------- ...

    4. 使用php代码如何筛选出ie6及以下的浏览器。

      (从已经死了一次又一次终于挂掉的百度空间人工抢救出来的,发表日期2014-04-09) <?php //ie6及以下的浏览器不加载js_menu文件. if (strpos($_SERVER[' ...

    5. C#高性能大容量SOCKET并发(一):IOCP完成端口例子介绍(转)

      原文地址 http://blog.csdn.net/SQLDebug_Fan/article/details/17556353 例子主要包括SocketAsyncEventArgs通讯封装.服务端实现 ...

    6. android wifi总结

      大致可以分为四个主要的类ScanResult wifiConfiguration WifiInfo WifiManager (1)ScanResult,主要是通过wifi 硬件的扫描来获取一些周边的w ...

    7. Generate the Jobs script from msdb Database

      前两周,由于数据库简繁体的转换,大量的数据库需要转到新的服务器. 在转其中的一台的时候,原先导出来的JOBS脚本不翼而飞(原因至今未明),而恰巧这一台服务器有90多个JOB(看下图恢复后的,注意滚动条 ...

    8. git status对应中文名称

      git status显示出来的中文文档是一串字符码,不能正常识别 git config --global core.quotepath false 这一句代码就可以帮你

    9. C++ 迭代器类别

      1.output迭代器:一次一步,只能向前,流水线上放着一批空的盒子,每次向前移动一个,往盒子里面塞一个东西. 2.input迭代器:一次一步,只能向前,流水线上放着一批零件,每次向前移动一个,可以看 ...

    10. Jquery 右键菜单(ContextMenu)插件使用记录

      目前做的项目需要在页面里面用右键菜单,在网上找到两种jquery的右键菜单插件,但是都有各种问题.所以就自己动手把两种插件结合了下. 修改后的右键菜单插架可以根据绑定的触发页面元素不同,复用同一个菜单 ...