Xcache Kurulumu - Php Hızlandırıcı

Xcache makalesi size fayda sağladı mı


  • Kullanılan toplam oy
    38
0
Onaylı Üye
Üye
Katılım
6 Nisan 2007
Mesajlar
66
Tepki puanı
0
Konum
Istanbul
Peki ne yapmamı onerirsin iyinet? kurulumu php.ini den kaldırabilirim ancak mib dosyalarının olmayışı sorun yaratır deilmi?

Edit: php.ini dosyasında extension_dir olarak gozuken yer
; Directory in which the loadable extensions (modules) reside.
extension_dir = "/usr/lib/php/modules"
 
Root
Root
İyinet Ekibi
Onaylı Üye
Katılım
2 Eylül 2002
Mesajlar
5,043
Tepki puanı
77
Konum
SEO
Oncelikle su andaki php.ini yi php.ini.2 diye kaydet.
Kod:
cp php.ini php.ini.2
xcache kurmadan once php.ini yi sakladiysan php.ini yi eski haline cevir.
Ardindan
Kod:
diff php.ini php.ini.2
ciktisini ekle ki sorunu inceleyelim.
 
0
Onaylı Üye
Üye
Katılım
6 Nisan 2007
Mesajlar
66
Tepki puanı
0
Konum
Istanbul
php.ini dosyasını saklamamıstım. :( ne yapabiliriz baska ? Edit: Sanırım daha oncelerden saklanmıs olan bir php.ini dosyasını buldum. cıktı su sekilde.
Kod:
# diff php.ini. php.ini.2
226c226
< safe_mode = Off
---
> safe_mode=off
300c300
< memory_limit = 8M      ; Maximum amount of memory a script may consume (8MB)
---
> memory_limit = 80M
354d353
<
495a495,496
> include_path = ".:"
>
1206a1208,1278
> [xcache-common]
> ;; install as zend extension (recommended), normally "$extension_dir/xcache.so"
> zend_extension = /usr/lib/php/modules/
> ; zend_extension_ts = /usr/local/lib/php/extensions/non-debug-zts-xxx/xcache.so
> ;; For windows users, replace xcache.so with php_xcache.dll
> zend_extension_ts = c:/php/extensions/php_xcache.dll
> ;; or install as extension, make sure your extension_dir setting is correct
> ; extension = xcache.so
> ;; or win32:
> ; extension = php_xcache.dll
>
> [xcache.admin]
> xcache.admin.auth = On
> xcache.admin.user = "****"
> ; xcache.admin.pass = md5($your_password)
> xcache.admin.pass = "*********************"
>
> [xcache]
> ; ini only settings, all the values here is default unless explained
>
> ; select low level shm/allocator scheme implemenation
> xcache.shm_scheme =        "mmap"
> ; to disable: xcache.size=0
> ; to enable : xcache.size=64M etc (any size > 0) and your system mmap allows
> xcache.size  =                32M
> ; set to cpu count (cat /proc/cpuinfo |grep -c processor)
> xcache.count =                 1
> ; just a hash hints, you can always store count(items) > slots
> xcache.slots =                8K
> ; ttl of the cache item, 0=forever
> xcache.ttl   =                 7200
> ; interval of gc scanning expired items, 0=no scan, other values is in seconds
> xcache.gc_interval =           300
>
> ; same as aboves but for variable cache
> xcache.var_size  =            32M
> xcache.var_count =             1
> xcache.var_slots =            8K
> ; default ttl
> xcache.var_ttl   =             0
> xcache.var_maxttl   =          0
> xcache.var_gc_interval =     300
>
> xcache.test =                Off
> ; N/A for /dev/zero
> xcache.readonly_protection = Off
> ; for *nix, xcache.mmap_path is a file path, not directory.
> ; Use something like "/tmp/xcache" if you want to turn on ReadonlyProtection
> ; 2 group of php won't share the same /tmp/xcache
> ; for win32, xcache.mmap_path=anonymous map name, not file path
> xcache.mmap_path =    "/dev/zero"
>
>
> ; leave it blank(disabled) or "/tmp/phpcore/"
> ; make sure it's writable by php (without checking open_basedir)
> xcache.coredump_directory =   ""
>
> ; per request settings
> xcache.cacher =               On
> xcache.stat   =               On
> xcache.optimizer =           Off
>
> [xcache.coverager]
> ; per request settings
> ; enable coverage data collecting for xcache.coveragedump_directory and xcache_coverager_start/stop/get/clean() functions (will hurt executing performance)
> xcache.coverager =          Off
>
> ; ini only settings
> ; make sure it's readable (care open_basedir) by coverage viewer script
> ; requires xcache.coverager=On
> xcache.coveragedump_directory = ""
 
Root
Root
İyinet Ekibi
Onaylı Üye
Katılım
2 Eylül 2002
Mesajlar
5,043
Tepki puanı
77
Konum
SEO
Kod:
rpm -e php-snmp
komutu ile gereksiz snmp modulun u kaldirmak sorunu cozuyor.
 
0
Onaylı Üye
Üye
Katılım
6 Nisan 2007
Mesajlar
66
Tepki puanı
0
Konum
Istanbul
Teşekkür ederim iyinet işe yaradı. Ancak halen xcache admin paneline ulaşamıyorum.
XCache is not loaded
Please check /etc/php.ini

diye bir hata alıyorum. Neden olabilir?
 
Root
Root
İyinet Ekibi
Onaylı Üye
Katılım
2 Eylül 2002
Mesajlar
5,043
Tepki puanı
77
Konum
SEO
Teşekkür ederim iyinet işe yaradı. Ancak halen xcache admin paneline ulaşamıyorum.
XCache is not loaded
Please check /etc/php.ini

diye bir hata alıyorum. Neden olabilir?

Bakiyorum ayarlara...
 
Root
Root
İyinet Ekibi
Onaylı Üye
Katılım
2 Eylül 2002
Mesajlar
5,043
Tepki puanı
77
Konum
SEO
Teşekkür ederim iyinet işe yaradı. Ancak halen xcache admin paneline ulaşamıyorum.
XCache is not loaded
Please check /etc/php.ini

diye bir hata alıyorum. Neden olabilir?

Apacheyi restart etmeyi unutmusuz, simdi gir bak bakalim.
 
0
Onaylı Üye
Üye
Katılım
6 Nisan 2007
Mesajlar
66
Tepki puanı
0
Konum
Istanbul
Hersey icin cok teşekkür ederim iyinet. Bos bir zamanında tekrar gorusmek uzere ;)
 
0
Onaylı Üye
Üye
Katılım
14 Nisan 2007
Mesajlar
343
Tepki puanı
0
Konum
İstanbul
/etc/init.d/httpd restart: configuration broken, ignoring restart
/etc/init.d/httpd restart: (run 'apachectl configtest' for details)

hersey tmm apache restart ama yukarıdaki hatayı alıyorum apache stop lıyıp acmaya korkuyorum su anda :)
 
0
Onaylı Üye
Üye
Katılım
14 Nisan 2007
Mesajlar
343
Tepki puanı
0
Konum
İstanbul
zend_extension = /usr/local/lib/php/extensions/no-debug-non-zts-20020429/xcache.so

aynı şekilde zend kurulu makinamızda da bizde de problem yapıyor. problemi yaptıgı php.ini deki satır ise yukarıdaki şekilde...
 
Root
Root
İyinet Ekibi
Onaylı Üye
Katılım
2 Eylül 2002
Mesajlar
5,043
Tepki puanı
77
Konum
SEO
zend_extension = /usr/local/lib/php/extensions/no-debug-non-zts-20020429/xcache.so

aynı şekilde zend kurulu makinamızda da bizde de problem yapıyor. problemi yaptıgı php.ini deki satır ise yukarıdaki şekilde...

Zend ile uyumsuz oldugu soylenmisti sanirim.
 
0
Onaylı Üye
Üye
Katılım
14 Nisan 2007
Mesajlar
343
Tepki puanı
0
Konum
İstanbul
k.bakmayın o kısımı kaçırmısım teşekkürler ;)
 
0
Onaylı Üye
Üye
Katılım
6 Nisan 2007
Mesajlar
66
Tepki puanı
0
Konum
Istanbul
Arkadaşlar xcache yetkillerine atmış olduğum maile cevap geldi. Küfür etmekten beter ettiler bi güzel azar yedim :D Xcache PHP 5.1.x versiyonundan sonrası icin calısıyormus ancak .Bu da demek oluyor ki benim 5.0.4 versiyonum yüzünden sayfalarım beyaz bir şekilde cıkıyordu. Daha önce plesk kontrol panelli fedora serverin php sini update edenler varsa lütfen ufak bir acıklama getirebilirlermi? En yakın zamanda php yi update etmem gerekiyor. Swsoft forumlarında cogu kisi bu olayı berbat etmiş. Berbat etmekten korkuyorum acıkcası. Fikri veya tavsiyesi olan?
 
0
Onaylı Üye
Üye
Katılım
6 Nisan 2007
Mesajlar
66
Tepki puanı
0
Konum
Istanbul
yokmu php sini update etmis kimse ?
 
0
Onaylı Üye
Üye
Katılım
23 Mart 2005
Mesajlar
106
Tepki puanı
0
php versiyonum 4.4.7 ve çalışıyor fakat çalışması için php.ini de zend ile alakalı satırları iptal etmek zorunda kaldım.

[Zend]
;zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.0
;zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.0
;zend_optimizer.version=3.3.0

;zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
;zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so


umarım bir sorun çıkmaz?
 
0
Onaylı Üye
Üye
Katılım
24 Ocak 2008
Mesajlar
20
Tepki puanı
0
php -v yazdığımda

PHP:
Failed loading /usr/local/lib/php/extensions/no-debug-non-zts-20060613/:  /usr/local/lib/php/extensions/no-debug-non-zts-20060613/: cannot read file data: Is a directory
PHP 5.2.5 (cli) (built: Jan 10 2008 14:36:09)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
    with eAccelerator v0.9.5.2, Copyright (c) 2004-2006 eAccelerator, by eAccelerator
    with the ionCube PHP Loader v3.1.32, Copyright (c) 2002-2007, by ionCube Ltd
çıktısını alıyorum.

php.ini dosyamda önce
PHP:
; Directory in which the loadable extensions (modules) reside.
extension_dir ="/usr/local/lib/php/extensions/no-debug-non-zts-20060613/"
zend_extension="/usr/local/IonCube/ioncube_loader_lin_5.2.so"
zend_extension_ts="/usr/local/IonCube/ioncube_loader_lin_5.2_ts.so"
extension="eaccelerator.so"
sonra
PHP:
[xcache-common]
;; install as zend extension (recommended), normally "$extension_dir/xcache.so"
zend_extension = /usr/local/lib/php/extensions/no-debug-non-zts-20060613/xcache.so
; zend_extension_ts = /usr/local/lib/php/extensions/no-debug-zts-20060613/xcache.so
;; For windows users, replace xcache.so with php_xcache.dll
zend_extension_ts = c:/php/extensions/php_xcache.dll
;; or install as extension, make sure your extension_dir setting is correct
; extension = xcache.so
;; or win32:
; extension = php_xcache.dll
çıktıları var. Sorun nedir nasıl düzeltebilirim.
 
Root
Root
İyinet Ekibi
Onaylı Üye
Katılım
2 Eylül 2002
Mesajlar
5,043
Tepki puanı
77
Konum
SEO
Hem Xcache hemde eAccelerator u yuklemene (kurmana) gerek yok.
Diyelim ki sadece Xcache i yukleyeceksin, Xcache ayarlarını ioncube den yukarıya al.
 
0
Onaylı Üye
Üye
Katılım
24 Ocak 2008
Mesajlar
20
Tepki puanı
0
Server da ne var ne yok kaldırdım. xCache kurum ama

Unable to add cookies, header already sent.
File: /home/xxx/public_html/forum/includes/functions_vbseo_cache.php
Line: 93 hatası alıyorum. vBulletinde şöyle bir konu var bununla ilgili
 
0
Onaylı Üye
Üye
Katılım
24 Ocak 2008
Mesajlar
20
Tepki puanı
0
Sorun çözülmüştür.
aynı sorunla karşılaşanlar ayarları aşağıdaki gibi yaparlarsa sorun çözlücektir.
Başta iyinet olmak üzere herkese teşekkürler.

; same as aboves but for variable cache
xcache.var_size = 4M
xcache.var_count = 1
xcache.var_slots = 8K
; default ttl
xcache.var_ttl = 0
xcache.var_maxttl = 0
xcache.var_gc_interval = 300

xcache.test = Off
; N/A for /dev/zero
xcache.readonly_protection = Off
; for *nix, xcache.mmap_path is a file path, not directory.
; Use something like "/tmp/xcache" if you want to turn on ReadonlyProtection
; 2 group of php won't share the same /tmp/xcache
; for win32, xcache.mmap_path=anonymous map name, not file path
xcache.mmap_path = "/dev/zero"


; leave it blank(disabled) or "/tmp/phpcore/"
; make sure it's writable by php (without checking open_basedir)
xcache.coredump_directory = "/tmp/phpcore/"

; per request settings
xcache.cacher = On
xcache.stat = On
xcache.optimizer = Off

[xcache.coverager]
; per request settings
; enable coverage data collecting for xcache.coveragedump_directory and xcache_coverager_start/stop/get/clean() functions (will hurt executing performance)
xcache.coverager = Off

; ini only settings
; make sure it's readable (care open_basedir) by coverage viewer script
; requires xcache.coverager=On
xcache.coveragedump_directory = ""
 
0
Onaylı Üye
Üye
Katılım
11 Haziran 2007
Mesajlar
168
Tepki puanı
0
xCache şifresi 123456 diyelim bunu yazdım md5 Halini alıp dediğiniz gibi koydum

Admin acılıyor fakat user ve sifreyi kabul edip girmiyor ?
 
Geri
Üst