本文介绍了如何使用SSL记录DDEV Windows 10专业版localhost上的phpmyadmin记录太长错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows 10专业版中使用DDEv和Docker,以使用Composer设置drupal 8.8的本地主机安装.我已经设置并配置了本地drupal安装(这是全新安装),它似乎运行正常,但是在drupal站点的admin部分中,我收到警告,要求更改site/default/settings.php的写入权限

I am using DDEv and Docker with Windows 10 pro to set up a localhost install of drupal 8.8 using Composer. I have set up and configured the local drupal installation (it is a fresh install) and it appears to be running correctly, but in the admin section of the drupal site I receive a warning to change write permissions of sites/default/settings.php.

我尝试使用Filezilla更改设置,但是看来Filezilla中的本地文件不提供对写入权限的访问权限?当我右键单击Filezilla中的文件时,没有权限选项出现.

I tried to change settings using Filezilla, but it appears that local files in Filezilla do not provide access to write permissions? When I right-click the file in Filezilla, no permissions option appears.

按照ddev的疑难解答提示,我尝试通过 https://mysitename.ddev.site:8036访问phpmyadmin

Following troubleshooting tips from ddev, I tried to access phpmyadmin at https://mysitename.ddev.site:8036

我没有加载phpmyadmin,而是收到以下错误消息:

Instead of loading phpmyadmin, I got the following error message:

与dmckimep.ddev.site:8036的连接期间发生错误. SSL收到的记录超过了最大允许长度.

An error occurred during a connection to dmckimep.ddev.site:8036. SSL received a record that exceeded the maximum permissible length.

错误代码:SSL_ERROR_RX_RECORD_TOO_LONG

Error code: SSL_ERROR_RX_RECORD_TOO_LONG

The page you are trying to view cannot be shown because the authenticity of the received data could not be verified. 

Please contact the website owners to inform them of this problem.

我已经搜索了几个小时,却没有找到解决方案.我运行ddev describe,安装似乎一切正常.容器中的drupal网站似乎可以正常运行.据我所知,目前还没有端口冲突,所以我不确定为什么无法访问phpmyadmin.

I've been searching around for a couple of hours now and do not find a solution to this. I ran ddev describe and all seems fine with the installation. The drupal site in the container seems to run okay. There are no port conflicts present so far as I have found, so I am not sure why I cannot get access to phpmyadmin.

就技能而言,我是一个相对较新手,但是已经使用XAMPP和我的Web主机成功地在本地主机上维护了drupal 4-7.现在,我正在努力转向drupal 8/composer/docker/ddev.任何建议将不胜感激.

I am a relative newbie in terms of skills, but have successfully maintained drupal 4-7 on localhost with XAMPP and my web host. Now I am wrestling with the move to drupal 8/composer/docker/ddev. Any suggestions would be much appreciated.

谢谢!

推荐答案

ddev的PHPMyAdmin连接不支持https,仅支持http.您可以使用ddev describe找到PHPMyAdmin和MailHog的链接.两者都是纯HTTP,例如您的示例 http://mysitename.ddev.site:8036 .可以为PHPMyAdmin和MailHog提供https URL,但是没有人要求过,并且没有安全理由这样做.

ddev's PHPMyAdmin connection doesn't support https, just http. You can find the links for both PHPMyAdmin and MailHog using ddev describe; both are http-only, as in your example, http://mysitename.ddev.site:8036. It would be possible to provide https URLs for PHPMyAdmin and MailHog, but nobody has ever asked for them, and there's no security reason to do so.

请注意,在实际 project URL上使用https的主要原因是,实际项目在https后面运行,并且人们在开发阶段需要查看诸如混合内容之类的问题.但是对PHPMyAdmin并没有这种需要.但是,我确定人们是否愿意,我们会做,这并不难.

Note that the key reason for https on the actual project URL is because real projects run behind https and people need to see problems like mixed content during the development phase. But there's no such need for PHPMyAdmin. However, I'm sure if people ever want it, we'll do it, it's not hard to do.

这篇关于如何使用SSL记录DDEV Windows 10专业版localhost上的phpmyadmin记录太长错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-23 14:04