NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.9k stars 13.95k forks source link

Need to resolve the issue of WordPress migration/backup/restore/caching plugins not working with services.wordpress nixos option? #150951

Open zeta-00 opened 2 years ago

zeta-00 commented 2 years ago

Issue description

When I activate a migration/backup/restore/caching plugin, it throws an error saying that the /nix/store/plugin/path cannot change and that file permissions are required. I'm guess this is because these folders and files are set to be immutable by nix to preserve reproducibility and to keep the software from breaking, but some plugins do not work with the way nix sets the filesystem.

Anyways, is there anything on your end that you can do to fix this issue? Thanks in advance for the help!

Steps to reproduce

Activate a migration/backup/restore/caching plugin installed with nix using services.wordpress nixos option.

Technical details

Some plugins are unable to change the folders and files when activated, thus breaking in the process.

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

mohe2015 commented 2 years ago

I think the most correct way is to patch the plugin to write to a writable location. Otherwise I would probably just run a traditional PHP fpm pool that serves a mutable directory.

Also keep in mind that the WordPress module is in a really bad state see #135966

mohe2015 commented 2 years ago

@zeta-00 ping