Annoin lopulta periksi ja kysyin Kuuklen mukaälyltä, jolta löytyi osa ratkaisusta:
Lyhyesti:
systemctl edit apache2
- Lisätään: (kantahakemiston lisäys riittää)
[Service]
ReadWritePaths=/home/www
- Potkaistaan Apachea:
service apache2 restart
- Tarkistetaan:
service apache2 status
Tämän jälkeen vielä permissiot järkeviksi ja pöydän siivous,
-"Starting with Ubuntu 26.04, the Apache2 service defaults to a sandboxed systemd configuration (ProtectSystem=full).
This security restriction blocks Apache and PHP from writing to system directories such as /usr, /boot, /etc, and potentially custom application directories outside of standard paths. (
https://vufind.org/wiki/installation:ubuntu), (
https://www.securecoding.com/blog/how-to-secure-ubuntu-based-web-server/)
To resolve this issue, you must configure a systemd override to explicitly grant Apache permission to write to your desired storage paths, or double-check standard file system permissions. (
https://vufind.org/wiki/installation:ubuntu)"