1

Installation of Icinga2 Monitoring Tools on Ubuntu 14.04

I am not able to complete my installation. I am getting the Error "The PHP config `date.timezone' is not defined."

I did the changes on /etc/php5/apache2/php.ini

date.timezone = Asia/Kolkata

After the changes i restart my webServer apache also. service apache2 restart

Still i am facing the same issue when i am launching enter image description herehttp://localhost/icingaweb2/setup

3
  • You maybe have to change it in /usr/share/icinga-web/pub/index.php.
    – Thomas
    Jul 30, 2017 at 9:23
  • have you removed the ; at the beginning of the line? That one got me
    – InvadGir
    Jul 25, 2018 at 13:35
  • @VikeeKumar is your Question answered?
    – MacMartin
    Dec 9, 2019 at 10:02

2 Answers 2

0

I think the timezone has to be placed in (single)quotes, like:

date.timezone = 'Asia/Kolkata'
0

The Solution is.

nano /etc/php/7.3/apache2/php.ini

[Date]
; Defines the default timezone used by the date functions

; http://php.net/date.timezone

date.timezone = "Asia/Nicosia"

Remove the semicolon from the front of the date.timezone and then set the value to one that you need for your locale. And then restart the Apache server.

/etc/init.d/apache2 restart

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .