Windows’ta WordPress Klasör Yetkileri Sorunu

IIS üzerine WordPress kurduğunuz zaman bir Linux server’ına göre daha çok ayar yapmanız gerekiyor. Plesk gibi bir kontrol paneliniz varsa bu işlemler daha kolay oluyor fakat VDS/VPS üzerinde böyle bir kontrol paneliniz yoksa biraz sıkıcı bir hale dönebiliyor. Klasörlere/Dosyalara erişim yetkilendirmesi de bunlardan biri. Mesela bir güncelleme/yükleme yapmak istediğinizde şu hatayı alabilirsiniz:

Downloading install package from http://downloads.wordpress.org/plugin/nextgen-gallery.zip.

Download failed. Could not create Temporary file

Bu demektir ki internetten indirilmeye çalışan dosya wp-content klasörünün altına yazılamıyor. Arama motorlarında bu konu hakkında ara yaptığınızda size IIS kullanıcısının (IIS_USR) yetki problemlerinin olduğu belirtilir. Eğer gerekli yetkileri vermenize rağmen bir değişiklik olmuyorsa:

CREATOR OWNER* kullanıcısınında yetkisini vermeniz lazım.

*: CREATOR OWNER aslında tam olarak bir kullanıcı hesabına eşit değildir. Amacı birden fazla kullanıcılı bir işletim sisteminde dosya yada klasörü oluşturan kullanıcıya ayrı yetki verilmesini sağlar.

“It is not safe to rely on the system’s timezone” Problemi

WordPress’te herhangi bir yerde şöyle bir hata ile karşılaşıyorsanız:

Warning: date() [function.date]: It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected ‘Europe/Helsinki’ for ‘EEST/3.0/DST’ instead in wp-includes/functions.php on line 43

bunu çözmek için wp-includes/functions.php dosyasını açın ve ilk fonsiyondan önce şu kodu yapıştırın:

date_default_timezone_set('UTC');

“It is not safe to rely on the system’s timezone” Problem

In WordPress, if you got a warning message in anywhere:

Warning: date() [function.date]: It is not safe to rely on the system’s timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected ‘Europe/Helsinki’ for ‘EEST/3.0/DST’ instead in wp-includes/functions.php on line 43

you should add below in wp-includes/functions.php file before the first function:

date_default_timezone_set('UTC');