Upgrade has left me between php7 and php8

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:


Or for longer, use three backticks above and below the code snippet:


Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 24.0.5
Operating system and version (eg, Ubuntu 20.04): Debian 11.4
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.25
PHP version (eg, 7.4): 8.1

The issue you are facing:
I cannot get nextcloud to run properly after upgrade. I was upgrading manually (backed up db, config, and data folders per instructions in admin pages). It all seems to have taken properly. Can see data in the database, and all that, but the nextcloud page does not load. I get a 404, when i go to my cloud.example.com/login (login populates correctly), but there is no page. I can tell from the log, that nextcloud(?) is trying to use php7? But, I have 8.1.9 and 8.2 installed, with 8.1.9 being the default.

Is this the first time you’ve seen this error? (Y/N): Yes

Steps to replicate it:

  1. After upgrade, browse to URL
  2. 404 error message

The output of your Nextcloud log in Admin > Logging:

[Mon Sep 12 02:01:53.924705 2022] [php7:error] [pid 5860] [client] script '/var/www/nextcloud
/remote.php' not found or unable to stat
[Mon Sep 12 02:02:25.912613 2022] [php7:error] [pid 5862] [client] script '/var/www/nextcloud
/status.php' not found or unable to stat

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

$CONFIG = array (
  'passwordsalt' => 'saltedHash',
  'secret' => 'topSecretHash',
  'trusted_domains' =>
  array (
    0 => 'example.com',
    1 => 'cloud.example.com',
    2 => '',
  'datadirectory' => '/var/www/nextcloud/data',
  'overwrite.cli.url' => 'https://cloud.example.com/',
  'htaccess.RewriteBase' => '/',
  'dbtype' => 'mysql',
  'version' => '',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'default_phone_region' => 'DE',
  'instanceid' => 'someID',
  'dbuser' => 'oc_someName',
  'dbpassword' => 'some hashed password',
  'installed' => true,
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 0,
  'mail_smtpmode' => 'sendmail',
  'mail_smtpsecure' => 'ssl',
  'mail_from_address' => 'dumb_admin',
  'mail_domain' => 'example.com',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'example.com',
  'mail_smtpname' => 'dumb_admin@example.com',
  'mail_smtppassword' => 'toohard2guessPassword4Realz',
  'mysql.utf8mb4' => true,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'app_install_overwrite' =>
  array (
    0 => 'calendar',
    1 => 'spreed',
    2 => 'mail',
    3 => 'twofactor_yubikey',
  'mail_sendmailmode' => 'smtp',
  'mail_smtpport' => '465',
  'mail_smtpauthtype' => 'PLAIN',
  'data-fingerprint' => 'some hash here',

The output of your Apache/nginx/system log in /var/log/error.log:

[Mon Sep 12 00:09:53.903657 2022] [php7:error] [pid 4565] [client] script '/var/www/example.com/status.php' not found or unable to stat
[Mon Sep 12 00:10:25.908150 2022] [php7:error] [pid 4481] [client] script '/var/www/example.com/status.php' not found or unable to stat


Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.


First you can run the Nextcloud with PHP 7.4 (default in Debian 11 Bullseye). You do not need PHP 8 or PHP 8.1.

Maybe you can remove the other php version. Check for php versions:
dpkg -l |grep php

I think there is another problem than php because of your errors.

script '/var/www/nextcloud/remote.php' not found or unable to stat
Check the path and file.
Check also the rights for user and group: www-data:www-data

Thanks @devnull looking deeper into it. thanks for the tip. I have a hellacious amount of php options when I type the grep command =)

I just want nextcloud to work like the many years of it’s faithful service it has proviced. I will double check ownership and if the files are in fact present. Maybe i will just blow it up all, and start again, I still have all the data, configs and db backed up.