Open kostberg opened 4 years ago
I think the problem here is that apache can't determine its domain name:
My docker instance works well and i see this message too. Also this message (by apache) comes after "Connection refused" (by php). Doesn't seem directly related.
Instead use sudo netstat
to find used ports on your system see if some service is already using the ports the docker containers want to be using. I noticed that sometimes docker leaves ports blocked even if they are shut down, restart your pc in that case.
Sometimes the setup of the db
service may take some more time to setup (mostly when using an existing dump). I would rather suggest to stop and restart the containers after the database is done importing (it will log that is ready for connections once done).
I have been having an issue with databases as well. trying wpcli fails because it says file was not readable. Uploading using phpmyadmin fails too. I think the problem is that the sql file is bigger than 2MB. Although php.ini in the container set to 64MB upload, phpmyadmin shows that the max upload size is 2MB.
For my case I was able to zip the database before uploading it with phpmyadmin. that worked ok. Then i used wpcli to do a search-replace
I have yet to figure out why wpcli db import fails on my 2.5MB file.
I think the problem here is that apache can't determine its domain name:
This is the code that I'm getting thrown in the terminal: