3

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.

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.

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

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

Secure Connection Failed

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

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.

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.

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.

Thank you!

femrich
  • 35
  • 1
  • 6
  • 1
    Hi and welcome to ddev! ddev doesn't support https for phpmyadmin. I'm not sure why, haven't explored that, and it's probably possible to do. But `ddev describe` doesn't offer you an https URL. Can you say more about why you want https for phpmyadmin? Note that there isn't really a security impact, because the communication with phpmyadmin is just on your machine. – rfay Dec 08 '19 at 00:34
  • 1
    That did the trick! Thanks! I did not intentionally specify https: just pasted the :8036 at the end of the top level URL. I will have to be careful about checking such details. I have successfully opened phpmyadmin now. Thanks again! – femrich Dec 08 '19 at 05:54
  • Hmmm... Hope I am not being rude--tried to find a way to "accept" or up-vote your solution, but don't find it yet. Will keep looking... – femrich Dec 08 '19 at 06:34
  • @femrich We appreciate you trying to be a contentious Stack Overflow user. The reason you can't accept this is because it's posted as a "comment." Only "answers" can be accepted. If rfay wishes to post the comment as an answer, you'll be able to accept it then. I'm glad you were able to solve the problem. – Isaac Bennetch Dec 08 '19 at 22:49
  • You're not being rude - you're finding your way around! Per @Isaac Bennetch I added a formal answer, you can now mark that as the accepted answer. When answering someone on Stack Overflow it's often best to start out the conversation with a comment IMO, to make sure that the question is fully understood. – rfay Dec 09 '19 at 03:48
  • Thanks @rfay. I marked the answer as accepted, but apparently that does not become visible until I get some more points for participation. I really appreciate the help! – femrich Dec 09 '19 at 12:03
  • Thanks, @IsaacBennetch; I appreciate the guidance and support! – femrich Dec 09 '19 at 12:04
  • You got it accepted! Congrats, and looking forward to your reputation here ever increasing as you help others. – rfay Dec 09 '19 at 21:27
  • Thanks. @rfay! I appreciate the help and encouragement! – femrich Dec 10 '19 at 03:30

3 Answers3

11

Update 2022-09-14: DDEV has had https support fpr PHPMyAdmin and MailHog for years now, ddev describe will show you the URL.

(Original answer) 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.

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.

rfay
  • 9,963
  • 1
  • 47
  • 89
  • I'd like it. now I have to add a different port and change SSL to hop over to PHPmyadmin. just a port change should be enough. It's also cleaner / nicer to support both http and https. – brace110 Mar 17 '20 at 09:41
  • It's a reasonable thing! The way to get things like that done is to create a feature request at https://github.com/drud/ddev/issues – rfay Mar 18 '20 at 13:55
1

Since ddev version 1.22.0 phpmyadmin has been outsourced.

You need to install it ddev get ddev/ddev-phpmyadmin and then you can execute ddev launch -p or ddev phpmyadmin to call phpmyadmin.

If your project is already running, you first need to execute ddev restart to enable phpmyadmin.

See: https://github.com/ddev/ddev/releases/tag/v1.22.0

HEYDANNY
  • 144
  • 10
0

Just as a general add on, after ddev start you can run ddev launch -p in order to open PHPMyAdmin for the current project database in the browser.

Grant
  • 9
  • 3