Report this

What is the reason for this report?

I followed the tutorial for installing Nextcloud on Ubuntu 18.04, but I get to the last step I get a 404 at the end..

Posted on May 13, 2019

I followed the steps in the tutorial on installing Nextcloud on an Ubuntu 18.04 server, but when I got to the last step I wasn’t able to configure Nextcloud because I got a 404 message. I’ve tried changing the ownership of the Nextcloud directory but I still get 404. Can anyone help?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Thanks for the help! Here’s the content of my config.php file, found in /var/www/html/nextcloud/config/config.php:

<?php
$CONFIG = array (
  'instanceid' => 'ocqwzk5v4jkq',
  'passwordsalt' => 'F49DxXdKC9Rfmao/FbDSpg8AXF87yG',
  'secret' => 'hNgBS5HBfGPwa4sYIf/lN/Bl0JV474LkxsciZITDNtN5hopU',
  'trusted_domains' => 
  array (
    0 => '192.168.1.101',
  ),
  'datadirectory' => '/var/www/html/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '15.0.10.0',
  'overwrite.cli.url' => 'http://192.168.1.101/nextcloud',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost:5432',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'kwright',
  'dbpassword' => 'wizard',
  'installed' => true,
);

As seen above, the path to the Nextcloud root is /var/www/html/nextcloud. It is owned by the www-data user, and its permissions are 755. The database has been created, with the name nextcloud.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.