User avatar
Jeder neocat_floof_googly_woozy neocat_flag_agender 🔜 eth0 @jeder@miau.jeder.pl
2y
yes lets put caddy inside of docker-compose.yml what can go wrong
:neocat_shocked@brain.d.on-t.work:1
2
0
2
1
User avatar
-> @kopper@wetdry.world @kopper@brain.d.on-t.work
2y
@jeder putting apache inside a container to run php when php-fpm is RIGHT THERE woe
1
0
0
0
User avatar
Jeder neocat_floof_googly_woozy neocat_flag_agender 🔜 eth0 @jeder@miau.jeder.pl
2y
@kopper funny that you mention this because i am currently fighting with dockerized wordpress that runs on php-fpm, to work with caddy that is outside of docker and i have no fucking idea what it wants from me
1
0
1
0

User avatar
-> @kopper@wetdry.world @kopper@brain.d.on-t.work
2y
@jeder the thing about php-fpm is that it's extremely sensitive to filesystem permissions. make sure both the php user and the caddy user (in containers) can access the wordpress files
1
0
0
0
User avatar
-> @kopper@wetdry.world @kopper@brain.d.on-t.work
2y
@jeder actually i should probably ask where you're stuck on before trying to reply guy shouldn't i?
1
0
0
0
User avatar
Jeder neocat_floof_googly_woozy neocat_flag_agender 🔜 eth0 @jeder@miau.jeder.pl
2y
@kopper i don't want to use caddy in docker, i get a file not found
1
0
1
0
User avatar
Jeder neocat_floof_googly_woozy neocat_flag_agender 🔜 eth0 @jeder@miau.jeder.pl
2y
@kopper like, everything's running and shit and i want to configure the wordpress but yeah i get that on index.php
1
0
1
0
User avatar
Jeder neocat_floof_googly_woozy neocat_flag_agender 🔜 eth0 @jeder@miau.jeder.pl
2y
@kopper and i suppose this is like some permission bullshit between rpm-managed caddy and the wordpress container
1
0
1
0
User avatar
-> @kopper@wetdry.world @kopper@brain.d.on-t.work
2y
@jeder however you set it up both caddy and php-fpm need read access to the files (and their containing directories) and all of them need to be at the exact same paths for both (if i recall correctly. it's certainly the easiest way to pull it off)

php is very clearly not intended for containers
2
0
0
0
User avatar
-> @kopper@wetdry.world @kopper@brain.d.on-t.work
2y
@jeder i think nextcloud pulled this off by writing all it's files to a volume on start so you can point your webserver there. unsure how the wordpress container you're using does things but i imagine it'd be similar
1
0
0
0
User avatar
Jeder neocat_floof_googly_woozy neocat_flag_agender 🔜 eth0 @jeder@miau.jeder.pl
2y
@kopper yeah it does that
0
0
1
0
User avatar
Jeder neocat_floof_googly_woozy neocat_flag_agender 🔜 eth0 @jeder@miau.jeder.pl
2y
@kopper i am doing such gymnastics because i clearly do not want to run any kind of sql on bare metal because the way fedora deals with postgres updates horrifies me
1
0
1
0
User avatar
-> @kopper@wetdry.world @kopper@brain.d.on-t.work
2y
@jeder can't you run the database inside a container and let it expose the port to 127.0.0.1? i do it all the time for dev stuff on my laptop
1
0
0
0
User avatar
Jeder neocat_floof_googly_woozy neocat_flag_agender 🔜 eth0 @jeder@miau.jeder.pl
2y
@kopper i guess i could
1
0
1
0
User avatar
Jeder neocat_floof_googly_woozy neocat_flag_agender 🔜 eth0 @jeder@miau.jeder.pl
2y
@kopper i was even thinking about that but i was like "jesus even more bullshit"
1
0
1
0
User avatar
Jeder neocat_floof_googly_woozy neocat_flag_agender 🔜 eth0 @jeder@miau.jeder.pl
2y
@kopper i'll just do that i suppose
1
0
1
0
User avatar
Jeder neocat_floof_googly_woozy neocat_flag_agender 🔜 eth0 @jeder@miau.jeder.pl
2y
@kopper oh and just to make it even worse, i am trying to run postgres with it instead of mariadb because fuck that
2
0
1
0
User avatar
Jeder neocat_floof_googly_woozy neocat_flag_agender 🔜 eth0 @jeder@miau.jeder.pl
2y
@kopper but i suppose that just Works
0
0
1
0
User avatar
-> @kopper@wetdry.world @kopper@brain.d.on-t.work
2y
@jeder oh yeah wordpress by default is still mysql only isn't it
1
0
1
0
User avatar
Jeder neocat_floof_googly_woozy neocat_flag_agender 🔜 eth0 @jeder@miau.jeder.pl
2y
@kopper yeah
1
0
1
0
User avatar
Jeder neocat_floof_googly_woozy neocat_flag_agender 🔜 eth0 @jeder@miau.jeder.pl
2y
@kopper anyway i did that and now i just have a blank page
1
0
1
0
User avatar
Jeder neocat_floof_googly_woozy neocat_flag_agender 🔜 eth0 @jeder@miau.jeder.pl
2y
@kopper i have no fucking idea how is this supposed to work
1
0
1
0
User avatar
-> @kopper@wetdry.world @kopper@brain.d.on-t.work
2y
@jeder if you can, try throwing a file with
<?php
phpinfo();


in it somewhere and trying to open it just to make sure php works in the first place. if that works then it's a bug in whatever cursed wordpress mod you're running, otherwise it's your php setup
1
0
0
0
User avatar
Jeder neocat_floof_googly_woozy neocat_flag_agender 🔜 eth0 @jeder@miau.jeder.pl
2y
@kopper can the file be just these two lines
i literally never dealt with php
2
0
1
0
User avatar
Jeder neocat_floof_googly_woozy neocat_flag_agender 🔜 eth0 @jeder@miau.jeder.pl
2y
@kopper hmmm
0
0
1
0
User avatar
-> @kopper@wetdry.world @kopper@brain.d.on-t.work
2y
@jeder yeah it should just be those two lines. you don't even need the closing ?> (which is actually discouraged in modern php as it can break sending headers due to trailing newlines and all that)
1
0
0
0