Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
I'm not exactly sure when this started happening. I'm guessing it happened when I updated my server to CentOS 5.3. But whenever it started, I am now getting the following error when I try to bring up cacti:
[Sun Jun 07 23:24:17 2009] [error] [client 192.168.15.141] PHP Fatal error: strtotime() [<a href='function.strtotime'>function.strtotime</a>]: Timezone database is corrupt - this should *never* happen! in /var/www/netstats/pub-html/cacti/include/global_constants.php on line 156
I have looked high and low for an answer. I've tried to set the default timezone in php.ini as described here: Link
Basically they want you to try and install the database using pecl. This fails.
pecl install timezonedb
downloading timezonedb-2009.8.tgz ...
Starting to download timezonedb-2009.8.tgz (195,596 bytes)
.............................done: 195,596 bytes
Fatal error: strtotime(): Timezone database is corrupt - this should *never* happen! in /usr/share/pear/PEAR/Validate.php on line 486
I also tried to set a default timezone in php.ini.
Help...
Some vitals:
CentOS 5.3
cacti 0.87d
apache 2.2.3-22
php 5.1.6
mysql 5.0.45
Thanks to anyone that looked at this. I searched and searched and finally came across someone that installed the PHP 5.2.9 packages from here and everything is working normally now. Of note, I also discovered once I got back into the web interface that cacti had died altogether. So I lost all of my data during the time this issue was happening.
Sorry to hear that. In the future, you should always have one production system and one test system to test things out on. Servers are a dime a dozen these days, and it's worth the investment.
TheWitness
True understanding begins only when we realize how little we truly understand...