White screen of death

[details=“White Screen of Death”]

After my Ubuntu Server crashed (Raspberry Pi 4B+, 8gb) after an update, i restored it. Thankfully, all the Nextcloud resources run on an external drive.

occ is working (as long as I use -d memory_limit=-1).

Looking into Apache2 error log indicated that PDO wasn’t installing yet php indicates it is installed.

Nextcloud Server 24.0.4
MySQL 8
php8.0-fpm
Apache2
Ubuntu Server 20.4

I followed all ideas making sure that php8.0-fpm was enabled with mpm_event. Enabled mysql_pdo in php.ini (for php8.0 fpm). Disabled php8.0.

After updating these options, the log in screen doesn’t appear?

This is the installed options from test.php

System Linux nextcloud 5.15.0-1014-raspi #16-Ubuntu SMP PREEMPT Thu Aug 25 09:50:55 UTC 2022 aarch64
Build Date Aug 15 2022 09:40:14
Build System Linux
Server API FPM/FastCGI
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/php/8.0/fpm
Loaded Configuration File /etc/php/8.0/fpm/php.ini
Scan this dir for additional .ini files /etc/php/8.0/fpm/conf.d
Additional .ini files parsed /etc/php/8.0/fpm/conf.d/10-mysqlnd.ini, /etc/php/8.0/fpm/conf.d/10-opcache.ini, /etc/php/8.0/fpm/conf.d/10-pdo.ini, /etc/php/8.0/fpm/conf.d/15-xml.ini, /etc/php/8.0/fpm/conf.d/20-apcu.ini, /etc/php/8.0/fpm/conf.d/20-bcmath.ini, /etc/php/8.0/fpm/conf.d/20-calendar.ini, /etc/php/8.0/fpm/conf.d/20-ctype.ini, /etc/php/8.0/fpm/conf.d/20-curl.ini, /etc/php/8.0/fpm/conf.d/20-dom.ini, /etc/php/8.0/fpm/conf.d/20-exif.ini, /etc/php/8.0/fpm/conf.d/20-ffi.ini, /etc/php/8.0/fpm/conf.d/20-fileinfo.ini, /etc/php/8.0/fpm/conf.d/20-ftp.ini, /etc/php/8.0/fpm/conf.d/20-gd.ini, /etc/php/8.0/fpm/conf.d/20-gettext.ini, /etc/php/8.0/fpm/conf.d/20-gmp.ini, /etc/php/8.0/fpm/conf.d/20-iconv.ini, /etc/php/8.0/fpm/conf.d/20-igbinary.ini, /etc/php/8.0/fpm/conf.d/20-imagick.ini, /etc/php/8.0/fpm/conf.d/20-intl.ini, /etc/php/8.0/fpm/conf.d/20-mbstring.ini, /etc/php/8.0/fpm/conf.d/20-memcache.ini, /etc/php/8.0/fpm/conf.d/20-msgpack.ini, /etc/php/8.0/fpm/conf.d/20-mysqli.ini, /etc/php/8.0/fpm/conf.d/20-odbc.ini, /etc/php/8.0/fpm/conf.d/20-pdo_dblib.ini, /etc/php/8.0/fpm/conf.d/20-pdo_firebird.ini, /etc/php/8.0/fpm/conf.d/20-pdo_mysql.ini, /etc/php/8.0/fpm/conf.d/20-pdo_odbc.ini, /etc/php/8.0/fpm/conf.d/20-pdo_pgsql.ini, /etc/php/8.0/fpm/conf.d/20-pdo_sqlite.ini, /etc/php/8.0/fpm/conf.d/20-pgsql.ini, /etc/php/8.0/fpm/conf.d/20-phar.ini, /etc/php/8.0/fpm/conf.d/20-posix.ini, /etc/php/8.0/fpm/conf.d/20-readline.ini, /etc/php/8.0/fpm/conf.d/20-redis.ini, /etc/php/8.0/fpm/conf.d/20-shmop.ini, /etc/php/8.0/fpm/conf.d/20-simplexml.ini, /etc/php/8.0/fpm/conf.d/20-sockets.ini, /etc/php/8.0/fpm/conf.d/20-sqlite3.ini, /etc/php/8.0/fpm/conf.d/20-sysvmsg.ini, /etc/php/8.0/fpm/conf.d/20-sysvsem.ini, /etc/php/8.0/fpm/conf.d/20-sysvshm.ini, /etc/php/8.0/fpm/conf.d/20-tokenizer.ini, /etc/php/8.0/fpm/conf.d/20-xmlreader.ini, /etc/php/8.0/fpm/conf.d/20-xmlrpc.ini, /etc/php/8.0/fpm/conf.d/20-xmlwriter.ini, /etc/php/8.0/fpm/conf.d/20-xsl.ini, /etc/php/8.0/fpm/conf.d/20-zip.ini, /etc/php/8.0/fpm/conf.d/25-memcached.ini

Since the restoration, Nextcloud hasn’t detected memcache.

occ works but -d memory-limit = -1 must be entered even though the memory setting for php.ini are set for 512M.

Tried installing Nextcloud into a new folder, the screen loading with an error message indicating mysql_pdo wasn’t installing.

Since the server restoration, php 8.0 hasn’t been functioning the same way before the server crash.
php -m

[PHP Modules]
apcu
bcmath
calendar
Core
ctype
curl
date
dom
exif
FFI
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
igbinary
imagick
intl
json
libxml
mbstring
memcache
memcached
msgpack
mysqli
mysqlnd
odbc
openssl
pcntl
pcre
PDO
pdo_dblib
PDO_Firebird
pdo_mysql
PDO_ODBC
pdo_pgsql
pdo_sqlite
pgsql
Phar
posix
readline
redis
Reflection
session
shmop
SimpleXML
sockets
sodium
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tokenizer
xml
xmlreader
xmlrpc
xmlwriter
xsl
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache

Apache 2 errors:

[Thu Sep 15 19:02:36.213205 2022] [mpm_prefork:notice] [pid 324737] AH00163: Apache/2.4.54 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/3.0.2 configured →
[Thu Sep 15 19:02:36.213356 2022] [core:notice] [pid 324737] AH00094: Command line: ‘/usr/sbin/apache2’
[Thu Sep 15 19:02:39.302279 2022] [proxy_fcgi:error] [pid 324739] [client 10.0.0.2:39308] AH01071: Got error 'PHP message: PHP Fatal error: U>
Cannot load Zend OPcache - it was already loaded
[Thu Sep 15 19:02:36.027899 2022] [ssl:warn] [pid 324736] AH01909: 10.0.0.28:4450:0 server certificate does NOT include an ID which matches th>
[Thu Sep 15 19:02:36.079625 2022] [ssl:warn] [pid 324737] AH01909: 10.0.0.28:4450:0 server certificate does NOT include an ID which matches th>
[Thu Sep 15 19:02:36.080208 2022] [http2:warn] [pid 324737] AH10034: The mpm module (prefork.c) is not supported by mod_http2. The mpm determi>
PHP Warning: PHP Startup: Unable to load dynamic library ‘openssl’ (tried: /usr/lib/php/20200930/openssl (/usr/lib/php/20200930/openssl: cann>
PHP Warning: PHP Startup: Unable to load dynamic library ‘pdo_firebird’ (tried: /usr/lib/php/20200930/pdo_firebird (/usr/lib/php/20200930/pdo>
PHP Warning: PHP Startup: Unable to load dynamic library ‘pdo_mysql’ (tried: /usr/lib/php/20200930/pdo_mysql (/usr/lib/php/20200930/pdo_mysql>
PHP Warning: PHP Startup: Unable to load dynamic library ‘pdo_oci’ (tried: /usr/lib/php/20200930/pdo_oci (/usr/lib/php/20200930/pdo_oci: cann>
PHP Warning: PHP Startup: Unable to load dynamic library ‘pdo_odbc’ (tried: /usr/lib/php/20200930/pdo_odbc (/usr/lib/php/20200930/pdo_odbc: c>
PHP Warning: PHP Startup: Unable to load dynamic library ‘pdo_pgsql’ (tried: /usr/lib/php/20200930/pdo_pgsql (/usr/lib/php/20200930/pdo_pgsql>
PHP Warning: PHP Startup: Unable to load dynamic library ‘php_apc.dll’ (tried: /usr/lib/php/20200930/php_apc.dll (/usr/lib/php/20200930/php_a>
PHP Warning: Module “pgsql” is already loaded in Unknown on line 0
[Thu Sep 15 19:02:36.213205 2022] [mpm_prefork:notice] [pid 324737] AH00163: Apache/2.4.54 (Ubuntu) mod_fcgid/2.3.9 OpenSSL/3.0.2 configured →
[Thu Sep 15 19:02:36.213356 2022] [core:notice] [pid 324737] AH00094: Command line: ‘/usr/sbin/apache2’
[Thu Sep 15 19:02:39.302279 2022] [proxy_fcgi:error] [pid 324739] [client 10.0.0.2:39308] AH01071: Got error 'PHP message: PHP Fatal error: U>

config.php

“system”: {
“instanceid”: “REMOVED SENSITIVE VALUE”,
“datadirectory”: “REMOVED SENSITIVE VALUE”,
“dbtype”: “mysql”,
“dbhost”: “REMOVED SENSITIVE VALUE”,
“dbname”: “REMOVED SENSITIVE VALUE”,
“dbuser”: “REMOVED SENSITIVE VALUE”,
“dbpassword”: “REMOVED SENSITIVE VALUE”,
“dbtableprefix”: “oc_”,
“passwordsalt”: “REMOVED SENSITIVE VALUE”,
“secret”: “REMOVED SENSITIVE VALUE”,
“log_type”: “syslog”,
“syslog_tag”: “Nextcloud”,
“logfile”: “”,
“loglevel”: 0,
“trusted_domains”: [
“10.0.0.28:4450”
],
“overwriteprotocol”: “https”,
“version”: “24.0.4”,
“mysql.utf8mb4”: true,
“installed”: true,
“twofactor_enforced”: false,
“twofactor_enforced_groups”: ,
“twofactor_enforced_excluded_groups”: ,
“mail_from_address”: “REMOVED SENSITIVE VALUE”,
“mail_smtpmode”: “smtp”,
“mail_sendmailmode”: “smtp”,
“mail_domain”: “REMOVED SENSITIVE VALUE”,
“mail_smtpauth”: 1,
“mail_smtphost”: “REMOVED SENSITIVE VALUE”,
“mail_smtpport”: “465”,
“mail_smtpname”: “REMOVED SENSITIVE VALUE”,
“mail_smtppassword”: “REMOVED SENSITIVE VALUE”,
“mail_smtpsecure”: “ssl”,
“filelocking.enabled”: true,
“maintenance”: false,
“updater.release.channel”: “stable”,
“memcache.local”: “\OC\Memcache\APCu”,
“default_phone_region”: “US”,
“app_install_overwrite”: [
“radio”
],
“updater.secret”: “REMOVED SENSITIVE VALUE
},
nextcloud.conf

GNU nano 6.2 nextcloud.conf
Alias /nextcloud “/media/external/nextcloud/”

<Directory /media/external/nextcloud>
Require all granted
AllowOverride All
Options FollowSymlinks MultiViews

Dav On

SetEnv HOME /media/external/nextcloud
SetEnv HTTP /media/external/nextcloud

After going through all troubleshooting options, including fresh install on a new directory, nothing seems to to get the screen to appear.