Upgrade from 8.0 to 8.1/8.2/9.0 on PHP7

Ask all your questions regarding OC 8.0 and 8.1 Please read the Support Forum Rules
Forum rules
The forums were migrated over to https://central.owncloud.org which is based on the forum software Discourse. The forums here is put into read-only mode starting from today.

More background information about this move and the reasoning behind it is available in this blogpost:

https://daniel.molkentin.net/2016/07/20 ... d-central/
davidgf
Newbie
Posts: 3
Joined: Thu Jun 16, 2016 3:00 am
ownCloud version: 8.0.0
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 7

Upgrade from 8.0 to 8.1/8.2/9.0 on PHP7

Postby davidgf » Thu Jun 16, 2016 3:05 am

Hello!

I have a 8.0 installation and I moved to a server with PHP7. Of course it doesn't work, due to the mysq driver.
I wanted to upgrade to a newer version but apparently the first version I can migrate to is 8.1 and it doesn't support mysql driver on PHP7 either.
Obviously I tried to migrate straight to 8.2 (which has a working driver) but it complains about jumping too many "major" revisions.

Why is 8.1/8.2 major versions? I mean, it's completely arbitrary numbering!!!

How am I supposed to upgrade? I cannot go back to php5, so don't suggest that.

I tried to migrate to sqlite, but it complains about not being able to find the tables, but I can see them if I open the sqlite db file. What is wrong!?

Cheers!

tflidd
Forum Moderator
Posts: 7159
Joined: Sat Dec 07, 2013 7:27 pm
ownCloud version: 8.2.3
Webserver: Apache
Database: MySQL
OS: Linux

Re: Upgrade from 8.0 to 8.1/8.2/9.0 on PHP7

Postby tflidd » Thu Jun 16, 2016 5:21 pm

The version numbering scheme after OC 8.0 changed.

You will need to run the upgrade to 8.1 on a system with php5. It can be done in a virtual machine. It could be enough to just place the new code with your config.php, empty folders within the data directory and your database. If you don't use the encryption app the user data remain untouched. Then copy database and config.php to your new system and run the upgrade to OC 8.2. Don't forget a full backup of your current running OC 8.0.

davidgf
Newbie
Posts: 3
Joined: Thu Jun 16, 2016 3:00 am
ownCloud version: 8.0.0
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 7

Re: Upgrade from 8.0 to 8.1/8.2/9.0 on PHP7

Postby davidgf » Thu Jun 16, 2016 5:29 pm

Yeah that's one option. I tried to mysqldump the database and put it back into an sqlite3 DB but it's not working. Any ideas why?
That would be much easier to me, since all my machines (even local ones) use fairly new versions of PHP :(

Thanks!

tflidd
Forum Moderator
Posts: 7159
Joined: Sat Dec 07, 2013 7:27 pm
ownCloud version: 8.2.3
Webserver: Apache
Database: MySQL
OS: Linux

Re: Upgrade from 8.0 to 8.1/8.2/9.0 on PHP7

Postby tflidd » Thu Jun 16, 2016 6:03 pm

I wouldn't convert to SQLite, but that doesn't help as OC 8.1 does not support PHP.

There are images to be used in virtual machines. So ist shouldn't take so long to set it up.

davidgf
Newbie
Posts: 3
Joined: Thu Jun 16, 2016 3:00 am
ownCloud version: 8.0.0
Webserver: nginx
Database: MySQL
OS: Linux
PHP version: 7

Re: Upgrade from 8.0 to 8.1/8.2/9.0 on PHP7

Postby davidgf » Thu Jun 16, 2016 6:10 pm

Well migrating to sqlite helps!

1. Migrate to sqlite (this means my 8.0 owncloud will work again on PHP7)
2. Update to 8.1, 8.2 and 9.0
3. Move back to mysql

What is wrong with my procedure?

tflidd
Forum Moderator
Posts: 7159
Joined: Sat Dec 07, 2013 7:27 pm
ownCloud version: 8.2.3
Webserver: Apache
Database: MySQL
OS: Linux

Re: Upgrade from 8.0 to 8.1/8.2/9.0 on PHP7

Postby tflidd » Thu Jun 16, 2016 6:23 pm

8.1 does not support php 7.0 so there might be problems (can work but nobody tested it).


  • Similar Topics
    Replies
    Views
    Last post

Return to “ownCloud Server 8.0 and 8.1”

Who is online

Users browsing this forum: No registered users and 3 guests