LibreNMS error

User avatar
sonik_blast
Пристрастен GEEK
Posts: 2336
Joined: 11 Nov 2005, 17:57
Skype: sonik_blast_headoff
Location: София
Contact:

LibreNMS error

Unread post by sonik_blast »

if you have this error during ./validate.php
root@librenms:/opt/librenms# ./validate.php
====================================
Component | Version
--------- | -------
LibreNMS | 1.63-93-g7bc2f9621
DB Schema | 2020_04_13_150500_add_last_error_fields_to_bgp_peers (164)
PHP | 7.4.6
Python | 3.6.9
MySQL | 10.1.44-MariaDB-0ubuntu0.18.04.1
RRDTool | 1.7.0
SNMP | NET-SNMP 5.7.3
====================================

[OK] Composer Version: 1.10.6
[OK] Dependencies up-to-date.
[OK] Database connection successful
[FAIL] Time between this server and the mysql database is off
Mysql time 2020-05-18 11:42:24
PHP time 2020-05-18 08:42:24

[OK] Database schema correct
[FAIL] You have no timezone set for php.
[FIX]:
http://php.net/manual/en/datetime.confi ... e.timezone
Go to /etc/php/php7.4/cli/php.ini

Code: Select all

pico /etc/php/php7.4/cli/php.ini
find timezone and correct it with your time zone:

Code: Select all

[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = "Europe/Sofia"
Не е важното къде си, важното е да си там, но да не си сам.
Колкото по-умен ставам, толкова по-тъп изглеждам в очите на другите.
No Fea Sonik Is Hea, YouR End Is Nea!

Post Reply