PhP Timezone Hatası Çözümü - date() It is not safe to rely on the system's timezone settings

date() It is not safe to rely on the system's timezone settings hatasının çözümü aşağıdaki gibidir.

Öncelikle sunucumuzdaki php.ini dosyasını bulmamız gerekiyor. SSH üzerinden yürütün ;

php -i | grep php.ini

Bizde görünen php.ini yolu /usr/local/lib/php.ini şeklinde. Nano ile açıyoruz ;

nano -w /usr/local/lib/php.ini

date.timezone = satırını buluyoruz ve aşağıdaki gibi değiştiriyoruz ;

date.timezone = Europe/Istanbul

Ardından apache ve var ise nginx restart ediyoruz ;

service httpd restart && service nginx restart

Bu cevap yeterince yardımcı oldu mu?

Daha Fazlası

PhP İle IP Adresi Öğrenme

Aşağıdaki php kodu ziyaretçinin standart olan ip adresini alır:echo...

Wordpress Çerezler Engellendi Hatası Çözümü

Wordpress Çerezler Engellendi veya HATA: çerezler engelleniyor Hatası CliaWeb de görülmese de...

Wordpress open_basedir restriction in effect Hatası Çözümü

Warning file_exists() open_basedir restriction in effect hatasını aşağıdaki şekilde çözerek...

Sorry, this file type is not permitted for security reasons Çözümü

Wordpress scriptinizde dosya yüklerken Satır x Sorry, this file type is not permitted for...

Php Saat / Zaman Dilimi Ayarlama

Php scriptlerinizde zaman dilimi saat farkı hatası alıyor iseniz aşağıdaki parametreyi config.php...