Issue ugrade cacti from 0.0.8h to 1.2.17

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
gecosu
Posts: 3
Joined: Mon May 10, 2021 8:19 am

Issue ugrade cacti from 0.0.8h to 1.2.17

Post by gecosu »

When I upgrade cacti from 0.0.8h to 1.2.17 in centos 6.8 but when I access obtain error:

Parse error: syntax error, unexpected '[' in /var/www/html/cacti-1.2.17/lib/functions.php on line 5722

5720 if (empty($tmp_user)) {
5721 if (function_exists('posix_geteuid')) {
5722 $tmp_user = posix_getpwuid(posix_geteuid())['name'];
5723 }
5724 }

Any solution?

Thanks!!
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: Issue ugrade cacti from 0.0.8h to 1.2.17

Post by cigamit »

What PHP version?
gecosu
Posts: 3
Joined: Mon May 10, 2021 8:19 am

Re: Issue ugrade cacti from 0.0.8h to 1.2.17

Post by gecosu »

Hi,

The PHP version is 5.3.3
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: Issue ugrade cacti from 0.0.8h to 1.2.17

Post by cigamit »

Minimum PHP version for 1.2.X is "PHP 5.4 or greater, 5.5+ recommended"
Also, Centos 6.8 is EOL, so you might start thinking about upgrading your OS to a supported version also.
gecosu
Posts: 3
Joined: Mon May 10, 2021 8:19 am

Re: Issue ugrade cacti from 0.0.8h to 1.2.17

Post by gecosu »

Hi

Would updating the PHP version fix the problem? I think it would be easier to install cacti on a new server and migrate the data. I understand that data can be migrated from one version to another, right?

I don't have advanced knowledge of Linux so it would be easier to deploy the cacti with a virtual appliance, but I can't find any. Is there a version?

Thanks,
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Issue ugrade cacti from 0.0.8h to 1.2.17

Post by netniV »

To migrate the data, you need to ensure that you can keep all the RRD's stored within the same path on the new server. That is quite important because it's recorded in the database. There are step by step instructions if you google on how to properly migrate as well as what do if you are switching between 32-bit and 64-bit versions of operating systems because the RRD file format will change.

With 1.3, when that eventually releases, PHP 7.3+ will likely become the lowest common denominator, so just inching forward to 5.4 or 5.6 is probably not going to help you long term.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests