D 
		
				
			
		dbembibre
Gamma
¡Usuario con pocos negocios! ¡Utiliza siempre saldo de Forobeta!
		Paso 1  - descargar la ultima version
	
	
	
		
Paso 2 - descomprimirlo
	
	
	
		
Paso 3 - Entrar en el directorio
	
	
	
		
Paso 4 - Configurar y compilar
	
	
	
		
	
	
	
		
después de ejecutar el "make install" te dará una ruta al estilo /usr/local/non-debug-zts/20061223/ "Guardatela te hara falta en el siguiente paso"
Paso 5 - Configurando php.ini
Por defecto suele estar en /etc en máquinas con cPanel está en /usr/local/
	
	
	
		
Paso 6 - Insertando la configuración de xCache
	
	
	
		
Paso 7 - Reiniciando Apache
	
	
	
		
Paso 8 - Verificar que xCache está funcioando
	
	
	
		
Y la salida debería ser
PHP 5.2.10 (cli) (built: Nov 20 2009 11:11:52)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
with XCache v1.3.0, Copyright (c) 2005-2009, by mOo
Paso 9 - Cambiando la configuración de vBulletin
	
	
	
		
@Si rompes el servidor no es mi problema 😀
	
		
			
		
		
	
				
			
		Insertar CODE, HTML o PHP:
	
	wget http://xcache.lighttpd.net/pub/Releases/1.3.0/xcache-1.3.0.tar.gz
		Insertar CODE, HTML o PHP:
	
	tar xzf xcache-1.3.0.tar.gzPaso 3 - Entrar en el directorio
		Insertar CODE, HTML o PHP:
	
	cd xcache-1.3.0
		Insertar CODE, HTML o PHP:
	
	whereis phpize <-- si este comando no arroja nada ejecuta el siguiente
yum install php-devel
		Insertar CODE, HTML o PHP:
	
	./configure --enable-xcache
make 
make installPaso 5 - Configurando php.ini
Por defecto suele estar en /etc en máquinas con cPanel está en /usr/local/
		Insertar CODE, HTML o PHP:
	
	locate php.ini
vi /etc/php.ini
		Insertar CODE, HTML o PHP:
	
	[xcache-common]
;Aqui va la ruta que te arrojó el comando make install
; Cambialo para 64 - 64 bit php => /usr/lib64/php/modules/xcache.so
zend_extension = /usr/lib64/php/modules/xcache.so
[xcache.admin]
xcache.admin.auth = On
xcache.admin.user = "mOo"
; xcache.admin.pass = md5($your_password)
xcache.admin.pass = ""
[xcache]
xcache.shm_scheme = "mmap"
xcache.size = 68M
xcache.count = 4 //tantos como cores tengas en tu maquina
xcache.slots = 1K
xcache.readonly_protection = Off
xcache.mmap_path = "/dev/zero"
xcache.stat = On
xcache.cacher = On
xcache.ttl = 3600
xcache.gc_interval = 300
; same as aboves but for variable cache
xcache.var_size = 6M
xcache.var_count = 2
xcache.var_slots = 1K
 
; default ttl
xcache.var_ttl = 3600
xcache.var_maxttl = 7200
xcache.var_gc_interval = 300
		Insertar CODE, HTML o PHP:
	
	/etc/init.d/ httpd restart
		Insertar CODE, HTML o PHP:
	
	php -vPHP 5.2.10 (cli) (built: Nov 20 2009 11:11:52)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
with XCache v1.3.0, Copyright (c) 2005-2009, by mOo
Paso 9 - Cambiando la configuración de vBulletin
		Insertar CODE, HTML o PHP:
	
	// ****** DATASTORE CACHE CONFIGURATION *****
    // Here you can configure different methods for caching datastore items.
    // vB_Datastore_Filecache  - to use includes/datastore/datastore_cache.php
    // vB_Datastore_APC - to use APC
    // vB_Datastore_XCache - to use XCache
    // vB_Datastore_Memcached - to use a Memcache server, more configuration below
 $config['Datastore']['class'] = 'vB_Datastore_XCache'; 
  
 
		 
 