I’m trying to host wordpress, and then modify the php and plugin files randomly. I’ve tried nginx and caddy, and both seem to be deeply unwilling to work. Caddy is failing with an inability to read files needed to create tls certificates, to make letsencrypt work. I’m sure I’m doing it wrong. Is there anywhere I can find a simple caddy config file that will let me host php files? Or any files?
Also, how does one research this question? What sources have I missed? I’ve spent the day googling, and using LLM’s and had no luck whatsoever. I feel like NixOS is not really designed for serving PHP applications…
do you want a development environment for wordpress or just host a website?
if you want a development environment then can you explain what you’re used to for php development and what you want from nix? there are many options and i want to make sure i give you recommendations that will be the productive experience possible
I want to develop on it, and modify it. So I need to change the php, copy it to staging, copy it back from staging, and version the content. Hence the hair all over the floor next to my workstation…
one option is to use devenv as your development environment for its nice php+caddy and mariadb integrations
if that doesn’t suit you then running caddy with some tweaks on your local machine might be a good option for you
from there you can host your production instance with caddy on nixos using git to manage your codebase
i’ll ask again to make sure i can give you the answer that works best for you:
can you explain what you’re used to for php development and what you want from nix?
additionally, maybe you can provide some more details about what you tried and what went wrong?
I feel like NixOS is not really designed for serving PHP applications…
i can assure you that nixos is an amazing platform for php development and production - i have run hundreds of php application on nixos supporting dozens of developers… so don’t despair, we’ll get you up and running
That really looks like the goat! I’ll try it out later today, and (I hope) post happy results, as nixos-shell is something I’ve wanted to dig into for a while, and just never ran across a good example. Thanks!!!