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 Saat / Zaman Dilimi Ayarlama

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

Wordpress veritabanı bağlantısı kurulurken hata oluştu Çözümü

Wordpress sitelerinizde bazen Veritabanı bağlantısı kurulurken hata oluştu hatası alabilirsiniz....

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

Wordpress 4.2 Güncelleme Sonrası Notice: register_sidebar was called incorrectly hatası

Merhaba değerli müşterilerimiz,Wordpress 4.1 den 4.2 ye geçişlerde güncelleme sonrası bazı...

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