By Ken Wright
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!
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.