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ı

2019 Güncel DNS Adresleri

2019 yılına ait güncel DNS adreslerini aşağıdaki listeden bulabilirsiniz. Bu listede yer alan dns...

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

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

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

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