Hi all
Following an warning message in Nextcloud saying that my PHP version was too old, I upgraded to the latest PHP version (8.3.12).
I also decided to upgrade nginx to the latest version.
Sadly, after these upgrade I’ve now a 404 error message when connecting to Nextcloud.
I’ve try many things, spend a lot of time searching on the web any hint to solve this issue, without success.
Nevertheless, my investigations point to an issue with the FastCGI config, but I’m not able to find what.
Is anyone able to guide me ? It would be much appreciated.
Nextcloud version : 30.0.1
Operating system and version : FreeBSD (Truenas Jail)
nginx version : 1.26.2
PHP version : 8.3.12
The issue you are facing:
Is this the first time you’ve seen this error? (Y/N): YES
Steps to replicate it:
- Upgrade PHP from 8.1 to 8.3
- Upgrade nginx from 1.24 to 1.26.2
- Try to connect to Nextcloud
The output of your Nextcloud log in Admin > Logging:
404 Not Found
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'apps_paths' =>
array (
0 =>
array (
'path' => '/usr/local/www/nextcloud/apps',
'url' => '/apps',
'writable' => true,
),
1 =>
array (
'path' => '/usr/local/www/nextcloud/apps-pkg',
'url' => '/apps-pkg',
'writable' => false,
),
),
'logfile' => '/var/log/nextcloud/nextcloud.log',
'memcache.local' => '\\OC\\Memcache\\APCu',
'one-click-instance' => true,
'one-click-instance.user-limit' => 100,
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => 'localhost',
),
'passwordsalt' => '*******',
'secret' => '*******',
'trusted_domains' =>
array (
0 => 'https://my.domain.com',
1 => '192.168.1.xxx',
2 => '192.168.1.yyy',
3 => '192.168.1.zzz',
4 => 'my.domain.com',
5 => '192.168.1.1',
),
'trusted_proxies' =>
array (
0 => '192.168.1.xxx',
),
'datadirectory' => '/usr/local/www/nextcloud/data',
'dbtype' => 'mysql',
'version' => '30.0.1.2',
'overwriteprotocol' => 'https',
'overwrite.cli.url' => 'https://my.domain.com',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'oc_ncadmin',
'dbpassword' => '*******',
'installed' => true,
'instanceid' => '*******',
'mail_from_address' => 'info',
'mail_smtpmode' => 'smtp',
'mail_sendmailmode' => 'smtp',
'mail_domain' => '*******',
'mail_smtpauthtype' => 'LOGIN',
'mail_smtpauth' => 1,
'mail_smtphost' => '*******',
'mail_smtpport' => '465',
'mail_smtpname' => '*******',
'mail_smtppassword' => '*******',
'mail_smtpsecure' => 'ssl',
'default_phone_region' => 'FR',
'theme' => '',
'loglevel' => 2,
'maintenance' => false,
'maintenance_window_start' => 100,
);
The output of your Apache/nginx/system log in /var/log/____
:
No error in /var/log/nginx/error.log
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.
No error since the upgrade of PHP and nginx