Skip to content

Ubuntu PHP update causes issues #2582

@kiekerjan

Description

@kiekerjan

A recent php update is causing issues at least with Nextcloud, maybe also Z-push. See the forum for more reports.

Thanks to forum members rowie, pokeswithastick and shuttermonster for a fix for Nextcloud
Edit the systemd file

sudo systemctl edit php8.0-fpm
and add ReadWritePaths=/usr/local/lib/owncloud to it, so it looks like:

### Editing /etc/systemd/system/php8.0-fpm.service.d/override.conf
### Anything between here and the comment below will become the new contents of the file

[Service]
ReadWritePaths=/usr/local/lib/owncloud

### Lines below this comment will be discarded

### /lib/systemd/system/php8.0-fpm.service
# [Unit]
# Description=The PHP 8.0 FastCGI Process Manager
# Documentation=man:php-fpm8.0(8)
# After=network.target
#
# [Service]
# Type=notify
# ExecStart=/usr/sbin/php-fpm8.0 --nodaemonize --fpm-config /etc/php/8.0/fpm/php-fpm.conf
# ExecStartPost=-/usr/lib/php/php-fpm-socket-helper install /run/php/php-fpm.sock /etc/php/8.0/fpm/pool.d/www.conf 80
# ExecStopPost=-/usr/lib/php/php-fpm-socket-helper remove /run/php/php-fpm.sock /etc/php/8.0/fpm/pool.d/www.conf 80
# ExecReload=/bin/kill -USR2 $MAINPID
# Restart=on-failure
# ProtectSystem=full
# PrivateDevices=true
# ProtectKernelModules=true
# ProtectKernelTunables=true
# ProtectControlGroups=true

then

cat /etc/systemd/system/php8.0-fpm.service.d/override.conf should output

    [Service]
    ReadWritePaths=/usr/local/lib/owncloud

Finally, perform

sudo systemctl daemon-reload
sudo systemctl restart php8.0-fpm

And nextcloud should run.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions