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ı

Prestashop 1.7 HTTP 500 Hatası Çözümü

Prestashop 1.7 versiyonunda kurulum sonunda 500 internal server hatası alıyor iseniz aşağıdaki...

PhP İle IP Adresi Öğrenme

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

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...

Opencart startup.php on line 89 Hatası Çözümü

İlgili hata opencart ın open_basedir yapısı ile sorun yaşamasından yani dizin yolunu...

Php Saat / Zaman Dilimi Ayarlama

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