Internal Server Error with no entries in any log file (caused by missing php module)

Nextcloud version: 29.0.6
Operating system and version: Debian 12.7
Apache version: 2.4.62
PHP version: 8.2.20

I just migrated my nextcloud instance from Ubuntu to Debian (a botched Ubuntu upgrade was the final straw to make me do what I long had thought about). After copying files and database and setting up apache config, I got an Internal Server Error.

That by itself wouldn’t be noteworthy. However, I checked all the log files I could think of (nextcloud log, apache error log, php log), and they all did not contain any information on the error that happened; they did contain a message about favicon.ico not being available, but nothing on why the request for nextcloud itself failed. I tried configuring error_log etc, all to no avail, until I finally checked my config.php. Then I noticed that I didn’t only have redis caching configured (for which I had installed everything already on the new server) but also apcu caching set up; and I had forgot to install the php_apcu module. Installed it, and then everything was fine!

Why am I reporting this? I just lost a few hours looking into this - it would have been much much easier if there were any log file entries about such problems.

I’m not sure if this is a nextcloud or php problem, but in my opinion, we should strive for there being next to no chance of there being an error but no log file entry

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.