kurulum için son sürüm olan wp-super cache eklentimizi indirdikten sonra...
1- Unzip edip masaüstüne çıkarıyoruz...
2- Ftp aracımız ile wp-content->plugin-> yolu içine unzip ettiğimiz dosyamızı atıyoruz...
3- Daha sonra bir notpad açıp advanced-cache.php diye kayıt ediyoruz... advanced-cache.php dosyası boş olarak kayıt edilecek içine hiçbir şey yazmıyoruz...
4- Oluşturduğumuz advanced-cache.php dosyasını wp-content yoluna üstüne yolluyoruz ve chmod ayarını 777 yapıyoruz...
5- wp- config.php dosyamızı açıp içine define( 'WP_CACHE', true ); kodunu ekliyip kayıt ediyoruz ve tekrar ftpmizin anadizinine atıp kayıt ediyoruz...
6- Eklentimizi aktif etmeden önce wp-content klasörünün cmod ayarını 777 yapıyoruz...( aktif ettikten sonra tekrar eski hali olan 755 ayarlarına geri mutlaka döndürcez )
7- Admin panelinden eklentiler kısmında eklentiyi aktif etcez.
8- Admin -> ayarlar -> supercache kısmında şu uyarı çıkacak -wp-content is writeable- wp-content klasörü yazılabilir yazısı... wp-content klasorunu chmod ayarlarını 755 yapıp... wp-cache admin sayfasını yenilediğimizde uyarının gitmiş oldğunu göreceğiz...
9- Wp-content -> wp-cache-config.php kendiliğinden oluştugunu ve cache isimli klasöründe oluştuğunu göreceğiz...
10- Tüm bu işlemleri yaptıktan sonra eklentimizin super cache ve wp-cache ayarlarını çalıştırıyoruz... karşımıza bir uyarı yazısı çıkıyor o yazıyı kopyalayıp .htaccess dosyamıza kayıt ediyoruz ve eklentimiz ayarlar sayfasını yenilediğimizde bu uyarının kayıp ldugunu görüyoruz.
UYARI YAZISI.
# for supercache
RewriteCond %{REQUEST_METHOD} !=POST
RewriteCond %{QUERY_STRING} !.*=.*
RewriteCond %{HTTP_COOKIE} !^.*(comment_author_|wordpress|wp-postpass_).*$
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz -f
RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz [L]
RewriteCond %{REQUEST_METHOD} !=POST
RewriteCond %{QUERY_STRING} !.*=.*
RewriteCond %{QUERY_STRING} !.*attachment_id=.*
RewriteCond %{HTTP_COOKIE} !^.*(comment_author_|wordpress|wp-postpass_).*$
RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html -f
RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html [L]
#end supercache
11- cache klasörü içinde .htaccess dosyasının oluşmuş oldugundan emin oluyoruz.eğer oluşmamış ise kendimiz oluşturuyoruz...
Create cache/.htaccess with these contents: yasısının altındaki kodları inceleyin...
http://patrickmd.net/blog/2008/10/12/how-to-install-wp-supercache-on-pair/
ALTTAKİ GİBİ BİR UYARI SAFE MOD UN AÇIK OLDUĞUNU GÖSTERİR VE SAFE MODU KAPATMANIZ GEREKLİDİR.
Warning! PHP safe mode enabled!
advanced-cache.php DOSYAMIZI OLUŞTURUP WP-CONTENT KLASORUMUZE YOLLAMADIĞIMIZ TAKTİRDE ALT RESİMDEKİ UYARIYI ALIRIZ.

ALTTAKİ ÖRNEKTE AYARLARI YAPILMIŞ VE KURULMUŞ BİR WP-SUPERCACHE'TEN RESİMLİ ÖRNEK VERDİM AYARLARIYLA ÇOK FAZLA OYNAMA GEREK OLMADIGINI RESİMDEN SİZ DE GÖREBİLİRSİNİZ.
Hiç yorum yok:
Yorum Gönder