Downgrade on Centos7

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
50cc
Posts: 82
Joined: Sun Mar 23, 2008 12:01 pm
Location: The Netherlands

Downgrade on Centos7

Post by 50cc »

Hi All, I made a stupid mistake upgrading to latest 1.36.31 from 1.36.28 (I believe, not sure of exact version). I'm still running it on a CentOS 7 machine which needs a replacement soon.

I still have PHP 5.4 (I know now..) and are getting errors like:
PHP Parse error: syntax error, unexpected ':', expecting ';' or '{' in /usr/share/zoneminder/www/includes/session.php on line 129

Quick work around for now till I have the new server up, can I downgrade Zoneminder on CentOS? Have been searching but without effect.

Or can I uninstall without loosing the DB, and reinstall a specific version of Zoneminder?
jogo
Posts: 46
Joined: Thu Aug 03, 2017 3:00 pm

Re: Downgrade on Centos7

Post by jogo »

Why not start with a fresh Fedora 36/37 box? Could be a lot easier than a manual downgrade.
50cc
Posts: 82
Joined: Sun Mar 23, 2008 12:01 pm
Location: The Netherlands

Re: Downgrade on Centos7

Post by 50cc »

Hi Jogo, That indeed is the plan, problem is no time the coming weeks, so a hot fix for now would be great
jogo
Posts: 46
Joined: Thu Aug 03, 2017 3:00 pm

Re: Downgrade on Centos7

Post by jogo »

That is the hotfix. Everything is straightforward. You may know the past, but in this case it is actually uncharted territory: hic sunt dracones.

:), please try it. I'd be interested, if there are any problems.
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Downgrade on Centos7

Post by knight-of-ni »

Hotfix is described here under "hacky workaround":
https://github.com/ZoneMinder/zoneminder/issues/3622

Be advised, zm 1.36.x is the last major release that will support centos 7.
When zm 1.38 is released (not eta yet), only centos 8 & 9 will be supported.

Just giving everyone plenty of time to plan accordingly.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
50cc
Posts: 82
Joined: Sun Mar 23, 2008 12:01 pm
Location: The Netherlands

Re: Downgrade on Centos7

Post by 50cc »

Hi knight-of-ni, many thanks, I did indeed find the post on GitHub, but for some reason didn't read the text clearly (nor fully thought it through). I only edited the first occurrence in session.php, now did them all, and zoneminder is back up and running!

Many thanks for all help, although a bit hacky, but server is up and running! Hope to get some time soon to build a new one.

I will divert from CentOS, any suggestions?
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Downgrade on Centos7

Post by knight-of-ni »

I use Rocky Linux 9 for production systems, including zoneminder.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
sergmx
Posts: 36
Joined: Thu Jun 17, 2021 3:48 am

Re: Downgrade on Centos7

Post by sergmx »

knight-of-ni wrote: Thu Nov 10, 2022 1:26 pm Hotfix is described here under "hacky workaround":
https://github.com/ZoneMinder/zoneminder/issues/3622

Be advised, zm 1.36.x is the last major release that will support centos 7.
When zm 1.38 is released (not eta yet), only centos 8 & 9 will be supported.

Just giving everyone plenty of time to plan accordingly.
Sorry, I've read the whole thread, but I still don't get it.
Should we wait for the next version 1.36 ?
Or do I need to update the php in CentOS 7x ?
50cc
Posts: 82
Joined: Sun Mar 23, 2008 12:01 pm
Location: The Netherlands

Re: Downgrade on Centos7

Post by 50cc »

Sergmx, maybe you can update php, guess it would work. I tried this but broke an old php script also running on this server so had to downgrade back to php 5.4 for that script.
User avatar
iconnor
Posts: 3181
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Downgrade on Centos7

Post by iconnor »

I expect to release 1.36.32 tomorrow (Friday). Centos 7 packages should build sometime after that.
sergmx
Posts: 36
Joined: Thu Jun 17, 2021 3:48 am

Re: Downgrade on Centos7

Post by sergmx »

iconnor wrote: Thu Nov 17, 2022 10:32 pm I expect to release 1.36.32 tomorrow (Friday). Centos 7 packages should build sometime after that.
I just installed : zoneminder-1.36.32-1.el7.x86_64

Everything works fine. Thank you.
burtonalex
Posts: 1
Joined: Sat Jan 21, 2023 9:23 am

Re: Downgrade on Centos7

Post by burtonalex »

Downgrading Zoneminder on CentOS is possible, but it can be a bit tricky. The easiest way to do this would be to uninstall the current version of Zoneminder, and then reinstall the specific version you want to use. This process can be risky as you might lose your DB.
If you're concerned about losing your DB, you can try to backup your DB before uninstalling Zoneminder. Then you can restore the backup after installing the specific version you want.
If you don't feel comfortable doing this process on your own, I recommend reaching out to a professional to help you. tuxcare.com is one such professional who can help you with this.
Post Reply