• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • 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