Error A valid timezone that matches MySQL and the system

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

Moderators: Developers, Moderators

Post Reply
lizardo
Posts: 2
Joined: Sat Jun 11, 2022 4:04 pm

Error A valid timezone that matches MySQL and the system

Post by lizardo »

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
Attachments
Screenshot.png
Screenshot.png (95.25 KiB) Viewed 1961 times
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: Error A valid timezone that matches MySQL and the system

Post by cigamit »

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.
lizardo
Posts: 2
Joined: Sat Jun 11, 2022 4:04 pm

Re: Error A valid timezone that matches MySQL and the system

Post by lizardo »

[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.
User avatar
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

Post by TheWitness »

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?
faser
Posts: 11
Joined: Wed Apr 04, 2007 6:54 am
Location: Hong Kong

Re: Error A valid timezone that matches MySQL and the system

Post by faser »

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.
User avatar
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

Post by TheWitness »

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?
faser
Posts: 11
Joined: Wed Apr 04, 2007 6:54 am
Location: Hong Kong

Re: Error A valid timezone that matches MySQL and the system

Post by faser »

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.
Well I am on Gentoo and I restarted php-fpm (not sure if you mistyped)
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.
User avatar
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

Post by TheWitness »

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest