Error A valid timezone that matches MySQL and the system
Moderators: Developers, Moderators
Error A valid timezone that matches MySQL and the system
hello everyone, your help please.
I am installing Cacti 1.2.21 on Centos 7, Apache, Mariadb 10.5.16 and php 7.4, add the timezone in php.ini, but I still get the error in PHP WEB
I am installing Cacti 1.2.21 on Centos 7, Apache, Mariadb 10.5.16 and php 7.4, add the timezone in php.ini, but I still get the error in PHP WEB
- Attachments
-
- Screenshot.png (95.25 KiB) Viewed 1964 times
Re: Error A valid timezone that matches MySQL and the system
Be sure that you added it in all php.ini's. They started moving to having separate ones for Web vs CLI (hence the 2 sections now). Also ensure you restart apache after changing it.
Re: Error A valid timezone that matches MySQL and the system
[root@monitoreox ~]# find / -name php.ini
/etc/php.ini
[root@monitoreox ~]#
there is only one php.ini file
also restart the apache service, even restart the server.
/etc/php.ini
[root@monitoreox ~]#
there is only one php.ini file
also restart the apache service, even restart the server.
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Error A valid timezone that matches MySQL and the system
You have to restart apache after updating the date.timezone.
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Re: Error A valid timezone that matches MySQL and the system
This is really odd, I ran into same issue trying update to 1.2.21 (from 1.2.19) and phpinfo on the same host showed the timezone correct but cacti continued to complain it not being set. Also Apache restart didn't made difference. Only a reboot of the server helped.
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Error A valid timezone that matches MySQL and the system
Likely cause you are on a RHEL8+ variant where you have to also restart php-fpo.
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Re: Error A valid timezone that matches MySQL and the system
Well I am on Gentoo and I restarted php-fpm (not sure if you mistyped)TheWitness wrote: ↑Wed Aug 31, 2022 10:04 am Likely cause you are on a RHEL8+ variant where you have to also restart php-fpo.
Anyway, guess it must have been some service that was still in memory and not restarted as the reboot fixed it. Just hope it might help others.
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Error A valid timezone that matches MySQL and the system
Yea, brain and mind were not entirely in sync.
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Who is online
Users browsing this forum: No registered users and 3 guests