#wordpress 2022-01-10

2022-01-10 UTC
edgeduchess[d], aspen[d], sarahd[d], wagle, Eddy04[d], daiyi[d], maxwelljoslyn[d], gnoth[d], Jeremiah[d], RIZY101[d], Christian_Olivie, maxwelljoslyn, capjamesg[d], [aciccarello], jsbach, MarkJR84[d], Silicon[d], Myst[d], [James_Van_Dyne], angelo, [KevinMarks], [snarfed], [jacky], GWG, [tantek], [tw2113_Slack_], [schmarty]1, Ruxton and corenominal[d] joined the channel
#
Zegnat
Anyone here running WordPress in Docker / with docker-compose? I am trying to get mine to run but it will not, and I must be missing something super obvious...
grantcodes[d], sayanarijit[d], Guest6 and Ramon[d] joined the channel
#
Zegnat
I think I just identified my own problem. Something may have changed in more recent WPs, do not know, but when I now run WP from the wordpress docker image it will create a wp-config.php file and no longer boot me into the installl view. So I have to use the WP cli to run the install. (This last statement is as of yet untested.)
#
GWG
I've never done a docker install alas
#
petermolnar
Zegnat: can you not specify a wp-config or paramaters for the docker start?
#
Zegnat
petermolnar: from all guides I have read, it is not supposed to behave the way I see it behave, is the problem. The way it is now, to enable passing in settings through Docker environment, a special wp-config is created. All is good with it, *except* now that it exists WP goes and tries to get some data from the database. It then dies because the tables do not exist yet (because install has not run yet).
#
Zegnat
This seems to suggest to me that you are not allowed to have a wp-config at all until after installation? Seems weird though. Not really sure what is going on.
#
petermolnar
whispers go FreeBSD, oldschool, simple...
#
[Joe_Crawford]
I’m not familiar enough with this. But if there’s a wp-config.php in place it seems to me it should defer to what’s in there. I wonder if there’s new logic for if around the state of the wp-config-sample.php file or some _other_ file that is triggering that.
#
[Joe_Crawford]
Can you share the config file docker / docker-compose is using? If it’s building a whole virtual machine - what is it building and in what order is the thing I’d be looking at
#
Zegnat
[Joe_Crawford]: now that I am home, I can get you the compose file that shows the exact behaviour, give me a sec
#
Zegnat
According to most guides I have read, you should be able to surf into localhost:80 from there and be greeted with the WP installation screen, but no.
#
Zegnat
And from a quick look through WP code (though only really quick look) it seems to me like WP is assuming tables exist when wp-config.php exists
#
sknebel
did you clear out the volume between attempts?
#
Zegnat
Yeah, no difference
capjamesg[d], balupton[d], rattroupe[d], hoenir, shaunix[d], hans63us[d], edburns[d], tracydurnell[d], Jeremiah[d], Seb[d], wackycity[d], petermolnar, Myst[d], corenominal[d], aspen[d], Christian_Olivie, Silicon[d], PK[d], marksuth[d], RIZY101[d], [snarfed] and sarahd[d] joined the channel