fewit.ru :: Заметки недоайтишника

Ещё один криворукий админ

dnf module list php
dnf module enable php:7.4
dnf module list mariadb
dnf module enable mariadb:10.5

21 февраля, 2022

Posted In: CentOS, php

Метки: , , , ,

При установка zabbix вылазила ошибка:

date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Moscow' for 'MSK/4.0/no DST' instead [include/page_header.php:185]

Решил проблему редактированием файла php.ini. Находим:

;date.timezone =

Меняем на часовую зону сервера, у меня Москва:

date.timezone = Europe/Moscow

Сохраняем, пинаем апач.

18 марта, 2013

Posted In: Linux, php