After update to php 7.4 the nc showed up with Access denied Web page

After upgrading from php 7.3 to 7.4 the web page of my nc showed up with access denied.

  1. I checked the ownership of several directories. www-data:www-data.
    Data directory
    temp data directory
    /var/www/nextcloud
    and so on

I did disable 7.3 and enable 7.4
a2dismod php7.3
a2enmod php7.4
I changed the php.ini
I insert in the same folder an info.php (ownership root) and I can get all PHP Informations.

I renewed the MariaDB pw.

  1. Following I found in the log file:
    {“reqId”:“O5nm4ztCikQ3RuH2QCDm”,“level”:0,“time”:“December 02, 2021 08:20:02”,“remoteAddr”:"",“user”:"–",“app”:"",“method”:"",“url”:"–",“message”:"[debug] running maintenance (2)",“userAgent”:"–",“version”:“23.0.0.10”}

{“reqId”:“O5nm4ztCikQ3RuH2QCDm”,“level”:0,“time”:“December 02, 2021 08:20:02”,“remoteAddr”:"",“user”:"–",“app”:"",“method”:"",“url”:"–",“message”:"[debug] running maintenance (1)",“userAgent”:"–",“version”:“23.0.0.10”}

{“reqId”:“O5nm4ztCikQ3RuH2QCDm”,“level”:0,“time”:“December 02, 2021 08:20:02”,“remoteAddr”:"",“user”:"–",“app”:“cron”,“method”:"",“url”:"–",“message”:“Finished OCA\Circles\Cron\Maintenance job with ID 1942 in 0 seconds”,“userAgent”:"–",“version”:“23.0.0.10”}

{“reqId”:“O5nm4ztCikQ3RuH2QCDm”,“level”:0,“time”:“December 02, 2021 08:20:02”,“remoteAddr”:"",“user”:"–",“app”:“cron”,“method”:"",“url”:"–",“message”:“Run OCA\Deck\Cron\DeleteCron job with ID 243”,“userAgent”:"–",“version”:“23.0.0.10”}

{“reqId”:“O5nm4ztCikQ3RuH2QCDm”,“level”:0,“time”:“December 02, 2021 08:20:02”,“remoteAddr”:"",“user”:"–",“app”:“cron”,“method”:"",“url”:"–",“message”:“Finished OCA\Deck\Cron\DeleteCron job with ID 243 in 0 seconds”,“userAgent”:"–",“version”:“23.0.0.10”}

{“reqId”:“O5nm4ztCikQ3RuH2QCDm”,“level”:0,“time”:“December 02, 2021 08:20:02”,“remoteAddr”:"",“user”:"–",“app”:“cron”,“method”:"",“url”:"–",“message”:“Run OCA\Deck\Cron\ScheduledNotifications job with ID 244”,“userAgent”:"–",“version”:“23.0.0.10”}

{“reqId”:“O5nm4ztCikQ3RuH2QCDm”,“level”:0,“time”:“December 02, 2021 08:20:02”,“remoteAddr”:"",“user”:"–",“app”:“cron”,“method”:"",“url”:"–",“message”:“Finished OCA\Deck\Cron\ScheduledNotifications job with ID 244 in 0 seconds”,“userAgent”:"–",“version”:“23.0.0.10”}

{“reqId”:“O5nm4ztCikQ3RuH2QCDm”,“level”:0,“time”:“December 02, 2021 08:20:02”,“remoteAddr”:"",“user”:"–",“app”:“cron”,“method”:"",“url”:"–",“message”:“Run OCA\Deck\Cron\CardDescriptionActivity job with ID 245”,“userAgent”:"–",“version”:“23.0.0.10”}

{“reqId”:“O5nm4ztCikQ3RuH2QCDm”,“level”:0,“time”:“December 02, 2021 08:20:02”,“remoteAddr”:"",“user”:"–",“app”:“cron”,“method”:"",“url”:"–",“message”:“Finished OCA\Deck\Cron\CardDescriptionActivity job with ID 245 in 0 seconds”,“userAgent”:"–",“version”:“23.0.0.10”}

  1. This is the output of the config.php
<?php $CONFIG = array ( 'passwordsalt' => 'XYZ', 'secret' => 'XYZ', 'trusted_domains' => array ( 0 => '192.168.178.55', 1 => '192.168.178.55', 2 => 'cmcloud.feste-ip.net', 11 => '2a02:908:3a2:6160:826e:ec0b:fe5e:43c7', ), 'allow_local_remote_servers' => true, 'datadirectory' => '/media/Daten_usb/nextcloud/data', 'dbtype' => 'mysql', 'version' => '23.0.0.10', 'overwrite.cli.url' => 'http://localhost', 'dbname' => 'nextcloud', 'dbhost' => 'localhost', 'dbport' => '', 'dbtableprefix' => 'oc_', 'mysql.utf8mb4' => true, 'dbuser' => 'ncadmin', 'dbpassword' => 'NEW', 'memcache.local' => '\\OC\\Memcache\\Redis', 'memcache.locking' => '\\OC\\Memcache\\Redis', 'redis' => array ( 'host' => '/var/run/redis/redis.sock', 'port' => 0, 'timeout' => 0.0, 'password' => 'OYwKK/qTCoyS4vy3NAbueEFWKgKZj5tEaJMu1JsE60M=', ), 'instanceid' => 'ocgnawpu3oyk', 'installed' => true, 'maintenance' => false, 'theme' => '', 'loglevel' => 2, 'app_install_overwrite' => array ( 0 => 'previewgenerator', 1 => 'nextcloudpi', 2 => 'cookbook', 3 => 'quicknotes', 4 => 'recognize', 5 => 'tasks', ), 'updater.release.channel' => 'stable', 'default_phone_region' => 'DE', 'has_rebuilt_cache' => true, 'mail_from_address' => 'christof', 'mail_smtpmode' => 'smtp', 'mail_sendmailmode' => 'smtp', 'mail_domain' => 'mailandt.de', 'mail_smtpauthtype' => 'LOGIN', 'mail_smtpauth' => 1, 'mail_smtphost' => 'mail.manitu.de', 'mail_smtpport' => '465', 'mail_smtpname' => 'christof@mailandt.de', 'mail_smtppassword' => '1prD5vQuAq5EbCq', 'mail_smtpsecure' => 'ssl', 'updater.secret' => 'XYZ', 'log_type' => 'file', 'logfile' => '/tmp/nextcloud.log', 'loglevel' => 0, 'logdateformat' => 'F d, Y H:i:s', ); 4. The Client on my mobile says Ihnen fehlt die Erlaubnis diesen Ordern hochzuladen. You don't have the permission to upload this directory Any Ideas? Regards Christof

I got it: Thank you Konki

Ok first I saw a other Posting:

Got an error php7.4 ist not installed.

ERROR: Module php7.4 does not exist!

sudo apt install libapache2-mod-php7.4 libapache2-mod-php

restart php and apache
systemctl restart php7.3-fpm
systemctl reload apache2