404 after configuration page

Hi,
I’m trying a fresh install of Nextcloud. I run the install script, and the configuration page comes up with no issues. However, once I enter the information on the configuration page, it then tries to load the ‘/index.php/apps/files/’ page and it returns a 404.

I’m not sure what I’m doing wrong. I suspect it’s something with the config.php, but I can’t pick what the problem might be. Any help will be appreciated!

<?php
$CONFIG = array (
  'instanceid' => '<id>',
  'passwordsalt' => '<salt>',
  'secret' => '<secret>',
  'trusted_domains' =>
  array (
    0 => 'localhost',
    1 => '<ip address>',
    2 => '<site>',
  ),
  'datadirectory' => '/var/www/<site>/data',
  'dbtype' => 'mysql',
  'version' => '19.0.1.1',
  'overwrite.cli.url' => 'https://<site>',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '3306',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud-user',
  'dbpassword' => '<db user password>',
  'installed' => true,
);

If you get 404, I would more suspect an issue with the web server configuration.

1 Like