• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Resolved Problem with Nextcloud upgrade and PHP version

LaurentR2D2

Plesk Certified Professional
Plesk Certified Professional
Server operating system version
Debian 11.7
Plesk version and microupdate number
Version 18.0.55 Mise à jour 1, dernière mise à jour le 8 Sept 2023 06:28
Hello,

I'm trying to upgrade Nextcloud using the "sudo -u www-data php occ upgrade" command, and I get this error message when I launch it :

This version of Nextcloud requires at least PHP 8.0<br/>You are currently running 7.4.33. Please update your PHP version.root@thamms:/var/www/vhosts/madonie.org/subdomains/nu

In Plesk the PHP version configured for this domain is PHP 8.1.23 FPM application served by Apache. Why does Nextcloud updater think that I'm running PHP 7.44.33 ?

Thank you
 
FYI: running any command with sudo -u www-data will execute that command as the www-data system user. By default thats NOT a system user thats used by Plesk. Using it may cause issues with your Nextcloud installation or even basic Plesk features (such as backups). Instead use run the command with the system user of the domain on which Nextcloud is installed. So for example sudo -u sysuser_b9r5dy /opt/plesk/php/8.1/bin/ph occ upgrade. You'll find the system user for a domain at the bottom of the domain card.
 
FYI: running any command with sudo -u www-data will execute that command as the www-data system user. By default thats NOT a system user thats used by Plesk. Using it may cause issues with your Nextcloud installation or even basic Plesk features (such as backups). Instead use run the command with the system user of the domain on which Nextcloud is installed. So for example sudo -u sysuser_b9r5dy /opt/plesk/php/8.1/bin/ph occ upgrade. You'll find the system user for a domain at the bottom of the domain card.
Thank you for the precision. In fact, it's what I've done, since using www-data wasn't working. I didn't know it could cause troubles. My explanation was not accurate.
 
Back
Top