Logo
  • Entries
  • Comments
  • Popular
Recent Posts
  • January 2012
  • November 2011
  • October 2011
  • September 2011
  • August 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
  • March 2011
  • February 2011
  • January 2011
  • December 2010
  • November 2010
  • October 2010
  • September 2010
  • August 2010
  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • September 2008
  • August 2008
  • July 2008
  • June 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008
  • January 2008
  • December 2007
  • November 2007
  • October 2007
  • July 2007
Recent Comments
  • hector Gracias, muy util!!...
  • Makendra It's always a pleasure to hear from someone with eexrpitse....
  • Rubén Ortiz Hola dependerá de varias cosas pero la respuesta sería NO. ...
  • jose miguel perea Buenos días, ¿La replicación entre maestro y esclavo es i...
  • Rubén Ortiz Si lo hacéis legal, con VMware el único problema son los cos...
Popular Articles
  • Declaro la guerra al mosquito Tigre (35)
  • Phpbb3 - encode error converter (19)
  • Reinicio programado Windows 2003 Server (17)
  • MySQL - Variables básicas a configurar (17)
  • Plesk - Evitar el SPAM (10)
  • Home
  • Contacta
  • Hosting Linux
  • Legal
  • Sobre mí – About me

XCache en Debian

Posted by Rubén Ortiz on May 29, 2008 in Php, Software | 3 comments

Nada más fácil que la instalación de Xcache, acelerador de Php y uno de los más utilizados hoy en día. ¿Por qué X-Cache? Bueno, hay varios estudios, post, etc, en la red que confirman su potencia en frente de proyectos como EAccelerator. XCache ha sido desarrollado por los creadores de Lighttpd, un servidor web de robustez contrastada. Aunque hoy por hoy, tanto en servidor web como en cacheador, sigue predominando Apache y Eaccelerator. Pero no está demás dejar los pasos para como instalarlo. Ya que estoy en un container con Debian pues aprovecho :)

Necesitamos instalar el paquete php5-dev para poder recompilar php con Xcache

1
<strong># apt-get install php5-dev</strong>
1
2
3
4
5
6
7
8
<strong>
# wget http://xcache.lighttpd.net/pub/Releases/1.2.2/xcache-1.2.2.tar.gz
# tar xf xcache-*.tar.gz
# cd xcache
# phpize
# ./configure --enable-xache
# make
# make install</strong>

Cambia esto por la ruta donde tengas tu fichero de configuración de php

1
<strong># cat xcache.ini &gt;&gt; /etc/php5/apache2/php.ini</strong>

Ahora sólo faltaría editar el php.ini y para activar el xcache.

1
2
3
4
5
6
7
8
9
10
[xcache-common]
;; install as zend extension (recommended), normally "$extension_dir/xcache.so"
zend_extension = /usr/local/lib/php/extensions/non-debug-non-zts-xxx/xcache.so
; 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

Descomentamos la línea

1
; extension = xcache.so

y reiniciamos apache

1
<strong># /etc/init.d/apache2 restart</strong>

Podemos comprobar su correcta instalación con un y listos!

3 Responses to “XCache en Debian”

  1. Raúl says:
    5 de December, 2008 at 4:07 pm

    Hola Rubén,

    tienes un error en los comandos de instalación, concretamente el comando que descarga el archivo comprimido. Lo tienes así:

    wget http://xcache.lighttpd.net/wiki/Release-1.2.2

    Sin embargo, el archivo comprimido no se encuentra en el directorio wiki, sino en:

    http://xcache.lighttpd.net/pub/Releases/1.2.2/xcache-1.2.2.tar.gz,

    con lo que el comando quedaría así:

    wget http://xcache.lighttpd.net/pub/Releases/1.2.2/xcache-1.2.2.tar.gz

    Es todo. Gracias por el post.

  2. Rubén Ortiz says:
    5 de December, 2008 at 5:58 pm

    Hola Raúl

    gracias a ti por la aportación, ya está corregido.

    Saludos.

  3. semchyk says:
    5 de December, 2009 at 2:23 pm

    полезно почитать спасибо.

Leave a Reply

Click here to cancel reply.

Nube de Tags

apache bare metal benchmark cacti centos dell drupal esxi General gripe A Hardware humor IIS kayako Linux lpi lyric Lyrics memcached mysql nginx openfiler OpenVZ openx Parallels php Phpbb plesk postgresql proftpd raid SQL Server ssh svn trac ubuntu varnish Virtualizacion Virtuozzo Virtuozzo Linux Warphammer.net Windows windows 2003 wordpress zabbix

Categorias

  • 2003 Server
  • Apache 2.X
  • benchmark
  • Centos
  • Cuanto (Luser) Cabron
  • ESXi
  • General
  • Hardware
  • IIS
  • Lighttpd
  • Linux
  • Lyrics
  • MySql
  • Nginx
  • OpenVZ
  • Parallels
  • Parallels Bare Metal
  • Php
  • Phpbb
  • Plesk
  • PostgreSQL
  • Prestashop
  • Software
  • SQL SERVER
  • Ubuntu
  • Varnish
  • Virtualizacion
  • Virtuozzo
  • Virtuozzo Windows
  • VMWare
  • Warphammer.net
  • Windows
  • Wordpress

Blogroll

  • David Toribio
  • EasyCompany.es
  • Marius Duch
  • Series
  • Warphammer.net

Recursos

  • Backup Plesk9
  • CentOS 5 32 bits RPMs
  • CentOS 5 64 bits RPMs
  • Lighttpd
  • MySQL Tunner
  • OpenVZ – Panel – PROXMOX
  • OpenVZ – Panel – VTONF
  • OpenVZ Wiki
  • Parallels Virtual Automation Resources
  • Plesk 8 Docs
  • Plesk 9 Docs
  • Plesk Hacker
  • Port80 – Compression Check
  • Virtuozzo DOCS
  • Virtuozzo Lin Commands
  • Virtuozzo Win Commands
  • Virtuozzo Windows Docu

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org
Designed by Elegant Themes | Powered by Wordpress