Owncloud server renew from scratch

Steps to reproduce

  1. Update from 10.3 to 10.4 stoped owncloud
  2. Error Alert was PHP 7.0 is not supported anymore
  3. Upgrade installed PHP 7.4 Owncloud alerted curl and intl is not listed
  4. I was not able to install PHP 7.3 so I purged php
  5. I updated to ubuntu 18.04 but I had bad dependencies from 16.04

Expected behaviour

repair of PHP an owncloud

Actual behaviour

at least all system crashed and now I have a new install of ubuntu 18.04

Server configuration

ubuntu 18.04 lts:

Web server:
apache2
Database:
mysql 5.7
PHP version:
7.2
ownCloud version: (see ownCloud admin page)
I will install new from repository
Updated from an older ownCloud or fresh install:

Where did you install ownCloud from:
repository
Signing status (ownCloud 9.0 and above):
9.1

And now my question:
I have the mysql dump from owncloud and the data of config.php
Can I rebuilt the owncloud system with the restored owncloud.sql?
what data do I need from config.php to login - only passwordsalt or more?

Does anybody know how to recover owncloud with a mysql dump and the config.php.
Filedata I can recover later with sync.
What are the steps?
Install owncloud with empty database and then restore database and change config.php
or can I connect new owncloud with the restored database?

Hey,

maybe reading the documentation which explains the restoring process of an ownCloud instance from a backup could answer this questions?

https://doc.owncloud.org/server/10.4/admin_manual/maintenance/restore.html

1 Like

What kind of process are you expecting? What more other than:

  1. Restore DB
  2. Restore config.php
  3. Restore files

???

2 Likes

if restore old config.php complete owncloud will not run

There will be an error message why it doesn’t work. Read it, paste it here in a new topic if you don’t understand it, fix it.

I didn’t try it, because in the discription of owncloud restoreing is stated, that you may not change the instanceid. I tried in vibox:

  1. mysql create DB for owncloud and grant user for DB as it was before.
  2. install PHP7.3 and then install owncloud
  3. Start webpage owncloud and connect it to empty owncoud DB
  4. Then in admin log I set up the email account as before
  5. Stopped apache and did the mysql restore
  6. Change the passwordsalt in config.php
  7. Start apache an logged in as admin - worked
  8. Logged in as user with my old password - worked.

And now to the real server.

1 Like