How do I update config.php in owncloud instance?

July 20, 2015 13.8k views
Configuration Management One-Click Install Apps PHP MySQL

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).


2 Answers

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.

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!


Have another answer? Share your knowledge.