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!!
Issue ugrade cacti from 0.0.8h to 1.2.17
Moderators: Developers, Moderators
Re: Issue ugrade cacti from 0.0.8h to 1.2.17
Hi,
The PHP version is 5.3.3
The PHP version is 5.3.3
Re: Issue ugrade cacti from 0.0.8h to 1.2.17
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.
Also, Centos 6.8 is EOL, so you might start thinking about upgrading your OS to a supported version also.
Re: Issue ugrade cacti from 0.0.8h to 1.2.17
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,
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,
Re: Issue ugrade cacti from 0.0.8h to 1.2.17
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.
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
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Who is online
Users browsing this forum: No registered users and 6 guests