Time Zone Error

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
jamiller11
Posts: 8
Joined: Fri Jan 05, 2018 2:26 pm

Time Zone Error

Post by jamiller11 »

I can't seem to fix this error during install.

"ERROR: Your Web Servers PHP Timezone settings have not been set. Please edit php.ini and uncomment the 'date.timezone' setting and set it to the Web Servers Timezone per the PHP installation instructions prior to installing Cacti."

/etc/php/7.0/apache2/php.ini

MY php.ini file I have added the following:


[CLI Server]
; Whether the CLI web server uses ANSI color coding in its terminal output.
cli_server.color = On

[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
;date.timezone = America/Indiana/Indianapolis

Is this the right spot to add this or I'm looking at the wrong thing?
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Time Zone Error

Post by netniV »

Remove the semi colon from the front of the date.timezone and then set the value to one that you need for your locale. If you are unsure what that would be, see http://php.net/manual/en/timezones.php
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
jamiller11
Posts: 8
Joined: Fri Jan 05, 2018 2:26 pm

Re: Time Zone Error

Post by jamiller11 »

Thanks for the help. About 5 seconds after I posted this question I realized i hat the ";" left in there. Just one little syntax error can through the whole thing off.

Thanks,
pipanaque
Posts: 1
Joined: Thu Oct 03, 2019 11:14 am

Re: Time Zone Error

Post by pipanaque »

Thanks for your help netniV, after two days and your comment finally I could resolve this issue. I can't believe I haven't seen the semicolon. xD
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest