Nextcloud News
Hosting 🌐 English

PHP Upgrade Causes NCP WebUI Write Errors

An upgrade to PHP 8.5 after migrating from Debian Bookworm to Trixie caused Nextcloud commands in the NCP WebUI to fail with a write error.

Following an upgrade from Debian Bookworm to Trixie and Nextcloud 33 to 34 using the NCP nc-updater, a PHP version upgrade from 8.3 to 8.5 resulted in Nextcloud functionality working correctly, except for commands executed through the NCP WebUI which failed due to a write error.

The issue stemmed from PHP-FPM’s systemd read-only sandbox, specifically the `ProtectSystem=full` setting which restricted write access to `/usr` for the www-data user, despite the host mount being read-write.

The problem was resolved by modifying the php8.5-fpm service to allow write access to `/usr/local/etc/ncp-config.d` using `ReadWritePaths` and then reloading and restarting the service.

← Back to all news