How do I update config.php in owncloud instance?

I set up my domain and owncloud droplet and followed this tutorial to the MySQL step - but am locked out because I don’t have a login for this and can’t find where to do that step. I’m not sure if that’s necessary, but wonder if it’s related to the error message I get when going to my URL/IP address.

Title of the page is ownCloud and the ownCloud logo is shown there, plus"

“You are accessing the server from an untrusted domain. Please contact your administrator. If you are an administrator of this instance, configure the “trusted_domain” setting in config/config.php. An example configuration is provided in config/config.sample.php. Depending on your configuration, as an administrator you might also be able to use the button below to trust this domain.”

I click the button below to trust the domain, but that never sticks and I get taken to an http header site that says:

REQUEST_URI = /index.php/settings/admin?

How do I access the php config files to trust this domain? What steps am I completely missing? I do have login credentials for this ownCloud instance but have nowhere to enter them.

Also, if it’s relevant, I have not set up the SSL certificate (Gandi says I have a free one, but are not giving me that option, so I’m hoping I can wait until Let’s Encrypt releases theirs in two months).


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

I unfortunately lost my domain and was forced to create a new one. As a result I can no longer access the “cloud” module as it still references the previous domain and ask to trust the new domain and the box that I was presented with is: "the “trusted_domain” setting in config/config.php. An example configuration is provided in config/config.sample.php. " I looked but I can not find it.

The idea at this point it would be to start from scratch and I need to get the Calendar and Contact off the box. Is the Owncloud.db under /home/user-data/owncloud sufficient to copy and start over.

I have had no problems with the setup, but the domain change cause some headaches.

And /var/www/owncloud/config/config.php does not exist!!! in the mailinabox setup!


From the tutorial, it looks like OwnCloud was installed in /var/www/owncloud, so all you’d need to do is SSH into your Droplet and type:

nano /var/www/owncloud/config/config.php

and edit the file accordingly.

As a sidenote, StartSSL provides free SSL certificates compatible with almost any browser and operating system.