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ı

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

Joomla Cannot write to log file Hatası Çözümü

Joomla scriptinizde Cannot write to log file hatası alır iseniz configuration.php dosyasındaki...

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