Install XCache PHP Accelerator in Linux by Compiling from Source Instalar XCache acelerador PHP en Linux compilando desde el código fuente

XCache is an alternative yet fast and stable PHP accelerator and opcode cacher that is similar to the famous eAccelerator and APC (Alternative PHP Cache). XCache es una alternativa aún rápido y estable PHP acelerador y Opcode cacher que es similar a la famosa eAccelerator y APC (Alternativa PHP Cache). XCache extension works by caching the compiled bytecode (opcode or intermediate code) form of PHP scripts to avoid the overhead to parse and compile PHP source code on every page request, and thus reduces server loads, boosts the performance of PHP scripts and increases the speed of PHP code from 2-10 times. XCache obras de ampliación de almacenamiento en caché el bytecode compilado (Opcode o código intermedio) de los scripts PHP para evitar la sobrecarga a analizar y compilar código fuente PHP en cada solicitud de la página, y, por tanto, reduce la carga del servidor, aumenta el rendimiento de los scripts PHP y aumenta la velocidad PHP de código de 2-10 veces.

XCache supports all of the latest PHP cvs branches such as PHP 4.3, PHP 4.4, PHP 5.1 and PHP 5.2 on Linux server including CentOS which common used on cPanel and Plesk based web hosting server, and ThreadSafe/Windows web server. XCache apoya todos los de la última PHP cvs ramas, tales como PHP 4.3, PHP 4.4, PHP 5.1 y PHP 5.2 sobre servidor Linux CentOS incluidos los que utilizan en común cPanel y Plesk basada en servidor de web hosting, y THREADSAFE / Windows servidor web. XCache overcomes a lot of problems that exist on opcachers or accelerators such as unable to work with new PHP versions. XCache supera un montón de problemas que existen en opcachers o aceleradores, tales como incapacitados para el trabajo con las nuevas versiones de PHP. Beside, XCache also been Además de, también se XCache benchmarked to be faster de referencia a ser más rápido than other opcode cachers. que otros Opcode cachers.

This is a simple tutorial and guide on how to install XCache PHP cacher by manually compiling from source code package. Se trata de un simple tutorial y guía sobre cómo instalar XCache PHP cacher manualmente la compilación de código fuente de paquetes. If you’re using Wordpress or using XCache to speed up and improve Wordpress blog performance, you should first ensure that PHP is upgraded to latest version (PHP 5.2.1), as PHP 4 may cause some instability issue such as unable to post comment, partial page loading and etc. Anyway, PHP5 is always recommended if possible. Si estás utilizando Wordpress o usando XCache para acelerar y mejorar el rendimiento blog Wordpress, primero debe asegurarse de que PHP se actualiza a la versión más reciente (PHP 5.2.1), como PHP 4 puede causar cierta inestabilidad, como cuestión no puede publicar comentario , Parcial de carga de las páginas, etc En cualquier caso, PHP5 siempre es recomendable, si es posible. And as with all PHP accelerator, XCache won’t work with PHP suEXEC turns on. Y como ocurre con todos los acelerador PHP, XCache no funciona con PHP suEXEC se enciende. PHP suEXEC must be disabled for XCache to work properly. PHP suEXEC debe ser para discapacitados XCache para funcionar correctamente.

Currently, XCache maintains 2 branches, ie version 1.0.3 and version 1.2.0. Actualmente, XCache mantiene 2 ramas, es decir, la versión 1.0.3 y la versión 1.2.0. Both version is now stable release, with version 1.0.x recommended for PHP 4.3.x and 4.4.x, and version 1.2.x recommended for most version of PHP including 5.1.x and 5.2.x, except PHP 5.0.x series. Tanto la versión es ahora estable, con la versión 1.0.x recomendado para PHP 4.3.x y 4.4.x, y la versión 1.2.x se recomienda para la mayoría de versión de PHP incluidos 5.2.x y 5.1.x, con excepción de PHP 5.0.x serie. If you’re using PHP4, try both version of XCache to pick the one most suitable for your application. Si está utilizando PHP4, pruebe la versión de ambos XCache para escoger el más adecuado para su aplicación. To check which version of PHP you’re usinng, issue command php -v or setup a PHP file with the following content, then call the file from web browser: Para comprobar la versión de PHP que está usinng, cuestión comando php-v o la instalación de un archivo PHP con el siguiente contenido y, a continuación, llamar al archivo desde el navegador web:

<?php <? php
phpinfo(); phpinfo ();
?>

  1. Change to user local source directory such as /usr/local/src by using following command: Cambio de fuente local del usuario, tales como directorio / usr / local / src utilizando siguiente comando:

    cd /usr/local/src cd / usr / local / src

  2. Retrieve and download the source package of the version of XCache you choose to install. Recuperar y descargar el paquete fuente de la versión de XCache que elija instalar.

    wget http://210.51.190.228/pub/XCache/Releases/xcache-1.0.3.tar.gz (for XCache 1.0.3) wget http://210.51.190.228/pub/XCache/Releases/xcache-1.0.3.tar.gz (por XCache 1.0.3)

    or o

    wget http://210.51.190.228/pub/XCache/Releases/xcache-1.2.0.tar.gz (for XCache 1.2.0) wget http://210.51.190.228/pub/XCache/Releases/xcache-1.2.0.tar.gz (por XCache 1.2.0)

  3. Untar, unzip, unpack or extract the archive with one of the following commands: Descomprimir, descomprimir, desempaquetar o extraer los archivos con uno de los siguientes comandos:

    tar -zxf xcache-*.tar.gz tar-zxf xcache-*. tar.gz
    gzip -dc xcache-*.tar.gz | tar -x gzip-dc-xcache *. tar.gz | tar-x

  4. Go into the xcache directory with source content: Ir a la xcache directorio con fuentes de contenido:

    cd xcache cd xcache

  5. Trigger PHP building environment: PHP desencadenar la construcción de medio ambiente:

    phpize

  6. Optional but recommended practice is to build XCache outside of source directory: Opcional, pero se recomienda la práctica es construir XCache fuera del directorio de fuentes:

    mkdir ../xcache-build mkdir .. / construcción de xcache -
    cd ../xcache-build cd .. / construcción de xcache -

  7. Run the configure with the option that you want, the basic is as below which will enable the XCache by default: Ejecute el configure con la opción que desee, es la base que se indican más adelante que permitirá a la XCache por defecto:

    ../xcache/configure –enable-xcache .. / xcache / configure-enable-xcache

    You can list out all available options by using ../xcache/configure –help command, which will display the following: Puede crear una lista de todas las opciones disponibles mediante el uso de .. / xcache / configure-help comando, que muestra la siguiente:

    –enable-xcache Include XCACHE support. -Enable-xcache Incluir XCACHE apoyo.
    –enable-xcache-optimizer XCACHE: (N/A) -Enable-xcache-optimizador XCACHE: (N / A)
    –enable-xcache-coverager XCACHE: Enable code coverage dumper -Enable-xcache-coverager XCACHE: Habilitar código de la cobertura dumper
    –enable-xcache-assembler XCACHE: (N/A) -Enable-xcache-ensamblador XCACHE: (N / A)
    –enable-xcache-disassembler XCACHE: Enable opcode to php variable dumper -Enable-xcache-desensamblador XCACHE: Habilitar a Opcode php variable dumper
    –enable-xcache-encoder XCACHE: (N/A) -Enable-xcache-codificador XCACHE: (N / A)
    –enable-xcache-decoder XCACHE: (N/A) -Enable-xcache-decodificador XCACHE: (N / A)
    –enable-xcache-test XCACHE: Enable self test - FOR DEVELOPERS ONLY!! -Enable-xcache los ensayos XCACHE: Habilitar la prueba libre - SÓLO PARA DESARROLLADORES!

  8. Compile the source with following command: Compilar los fuentes con el siguiente comando:

    make hacer

    Ensure that no error occurred. Asegúrese de que no se produjo ningún error.

  9. If you haven’t already using root account, su to root user. Si todavía no se ha utilizando la cuenta de superusuario, para su usuario root.
  10. Install XCache binary with the following command: Instalar XCache binario con el siguiente comando:

    make install make install

    Ensure that no error occurred, and note down the extension installation path of the xcache.so. Asegúrese de que no se produjo ningún error, y anotar la prórroga ruta de instalación de la xcache.so.

  11. Next, XCache need to be configured and enabled in PHP.INI file. A continuación, XCache necesidad de ser activado y configurado en el archivo php.ini. Locate the correct location of php.ini configuration file by using Busque la ubicación correcta del archivo de configuración php.ini utilizando phpinfo() phpinfo () function (see sample listed above to check version of PHP). función (véase más arriba muestra la lista para comprobar la versión de PHP). In web hosting environment, normally it’s located in /etc or /usr/local/lib. Web hosting en el medio ambiente, que normalmente se encuentra en / etc o / usr / local / lib. If the install of PHP parses the /etc/php.d/ folder, then simply create a file in that folder named “xcache.ini” or copy over the sample xcache.ini came with source package. Si la instalación de PHP analiza el archivo / etc / php.d / carpeta, y luego simplemente crear un archivo en la carpeta denominada "xcache.ini" o copia en la muestra xcache.ini viene con paquete fuente.

    Change back to xcache source unpack directory, and run the following command with root user: Cambio de vuelta a xcache fuente desempaquetar directorio, y ejecute el comando siguiente con el usuario root:

    cat xcache.ini >> /etc/php.ini xcache.ini cat>> / etc / php.ini
    $EDITOR /etc/php.ini $ EDITOR / etc / php.ini

    Note: change to the path of php.ini accordingly Nota: para cambiar la ruta de php.ini en consecuencia

    This will append the default XCache configuration to the end of php.ini. Esto añadir la configuración por defecto XCache hasta el final de php.ini. Alternatively, you can copy and paste the following text into the php.ini file yourself too: Si lo prefieres, puedes copiar y pegar el siguiente texto en el archivo php.ini usted también:


    [xcache-common]
    ;; install as zend extension (recommended)
    zend_extension = /usr/local/lib/php/extensions/no-debug-non-zts-xxx/xcache.so
    ;; install as zend extension with thread-safe
    ; zend_extension_ts = /usr/local/lib/php/extensions/non-debug-zts-xxx/xcache.so
    ;; install as PHP extension (extension_dir must be set to the full path to xcache.so)
    ; extension = xcache.so

    [xcache.admin]
    xcache.admin.user = “admin” xcache.admin.user = "admin"
    xcache.admin.pass = md5($your_password) xcache.admin.pass = md5 ($ su_contraseña)

    [xcache]
    xcache.shm_scheme = “mmap” xcache.shm_scheme = "mmap"
    xcache.size = 16M xcache.size = 16M
    xcache.count = 1 xcache.count = 1
    xcache.slots = 8K xcache.slots = 8K
    xcache.ttl = 0 xcache.ttl = 0
    xcache.gc_interval = 0 xcache.gc_interval = 0

    xcache.var_size = 0M xcache.var_size = 0M
    xcache.var_count = 1 xcache.var_count = 1
    xcache.var_slots = 8K xcache.var_slots = 8K
    xcache.var_ttl = 0 xcache.var_ttl = 0
    xcache.var_maxttl = 0 xcache.var_maxttl = 0
    xcache.var_gc_interval = 300 xcache.var_gc_interval = 300

    xcache.test = Off xcache.test = off
    xcache.readonly_protection = Off xcache.readonly_protection = off
    xcache.mmap_path = “/dev/zero” xcache.mmap_path = "/ dev / zero"
    xcache.coredump_directory = “” xcache.coredump_directory = ""
    xcache.cacher = On El xcache.cacher =
    xcache.stat = On El xcache.stat =
    xcache.optimizer = Off xcache.optimizer = off

    [xcache.coverager]
    xcache.coverager = Off xcache.coverager = off
    xcache.coveragedump_directory = “” xcache.coveragedump_directory = ""

  12. You can configure XCache to your preference. Puede configurar XCache a su preferencia. One setting that must be changed is under the [xcache-common], where you must specify the correct installation path of the XCache extension module. Un ajuste que debe ser cambiado es en el marco del [xcache común], donde debe especificar la ruta de instalación correcta de la XCache módulo de extensión. You can also opt to run XCache as PHP extension instead of extension for Zend module. También puede optar por ejecutar XCache como extensión de PHP en lugar de la prórroga para el módulo de Zend. In this case, comment and uncomment the line accordingly. En este caso, comentar y descomentar la línea en consecuencia. Other important options include “xcache.size” which specify amount the memory allocated to XCache, “xcache.count” to take advantage of multi-core processors or multiple processors. Otras opciones incluyen "xcache.size", que especifique la cantidad de memoria asignada a XCache, "xcache.count" para sacar provecho de los procesadores de varios núcleos y varios procesadores. And if you plan to use XCache web administration interface, input the “xcache.admin.user” and md5 checksum value of “xcache.admin.pass”. Y si va a utilizar XCache interfaz de administración web, la entrada "xcache.admin.user" Suma de control MD5 y el valor de "xcache.admin.pass". Try Intentar MD5 tools MD5 herramientas to generate the correct value, or use the following command to generate the MD5 for your password: para generar el valor correcto, o utilice el siguiente comando para generar el MD5 de su clave:

    echo -n “password” | md5sum echo-n "contraseña" | md5sum

    Note: Explanation and definition of all XCache INI settings can be found Nota: Explicación y definición de todos los XCache INI ajustes se pueden encontrar here aquí .

  13. Restart the Apache httpd web server. Reinicie el Apache httpd servidor web. The following commands should work: Los siguientes comandos deberían trabajar:

    /etc/init.d/apache* restart / etc / init.d / * reiniciar apache

    or o

    /etc/init.d/httpd* restart / etc / init.d / * reiniciar httpd

  14. Ensure the XCache is running by calling PHP file with phpinfo() (see sample above). Asegúrese de que el XCache se ejecuta llamando al archivo PHP con phpinfo () (véase el ejemplo anterior). You should see a new XCache Support block with opcode cache enabled. Usted debería ver un nuevo bloque de apoyo XCache con Opcode caché habilitado.
  15. If you wish to set up XCache administration page, configure an alias in httpd.conf of Apache to point to the admin subdirectory within XCache. Si desea crear XCache la administración página, configurar un alias en httpd.conf de Apache para que apunte a la admin subdirectorio dentro del XCache. To do so, add the following line to httpd.conf (assuming your xcache source is extracted at /usr/local/src/, and you want to access admin page from /xcache-admin/ URL): Para hacerlo, añada la siguiente línea a httpd.conf (asumiendo que tu xcache fuente se extrae en / usr / local / src /, y quiere tener acceso a la página de admin / admin-xcache / URL):

    Alias /xcache-admin/ /usr/local/src/xcache/admin/ Alias / admin xcache-/ / usr / local / src / xcache / administrador /

    Then restart Apache web server. A continuación, reinicie el servidor web Apache. For lighttpd, add the following line instead: Para lighttpd, añada la siguiente línea en lugar:

    alias.url += (”/xcache-admin/” => “/usr/share/xcache/admin/”) alias.url + = ( "/ xcache-admin /" => "/ usr / share / xcache / admin /")

    Alternatively, you can also copy the whole “admin” directory from the “xcache” source folder to web document-root or sub-directory of your domain which is web accessible. Alternativamente, también puede copiar el conjunto de "admin" directorio de la "xcache" carpeta de origen a la web el documento-root o sub-directorio de tu dominio web que es accesible. However, this method is not recommended as you may forget to update the admin page when XCache package is updated. Sin embargo, este método no se recomienda como es posible que se olvide de actualizar la página de administración XCache paquete cuando se actualiza.

    Note: Ensure that Nota: Asegúrese de que open_basedir protection open_basedir protección , if enabled, is excluded for the directory contains admin-page. , Si está habilitado, se excluye para el directorio contiene admin-página.

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. IMPORTANTE: Esta es una máquina traducido la página que se proporciona "TAL CUAL" SIN GARANTÍA. Machine translation may be difficult to understand. La traducción automática puede ser difícil de entender. Please refer to Por favor, consulte original English article artículo original Inglés whenever possible. siempre posible.

Share and contribute or get technical support and help at Compartir y contribuir o recibir apoyo técnico y ayuda en My Digital Life Forums Mi vida digital foros .



Leave a Reply Deje un comentario

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> Puede utilizar estos tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q Cite=""> <strike> <strong>

Subscribe without commenting Suscribir sin comentar


Custom Search

New Articles Nuevos artículos

Incoming Search Terms for the Article Términos de búsqueda para el artículo

how to check php version on linux Cómo comprobar la versión de PHP en Linux - -- how to check php version in linux Cómo comprobar la versión de PHP en Linux - -- check php version linux php comprobar la versión de linux - -- How to check the version of PHP in linux Cómo comprobar la versión de PHP en Linux - -- check php version in linux comprobar versión de PHP en Linux - -- compile php threadsafe compilar php THREADSAFE - -- plesk php accelerator plesk php acelerador - -- linux check php version linux comprobar la versión de PHP - -- APC plesk install APC instalar plesk - -- location of php.ini on linux with full path ubicación de php.ini en linux con ruta completa - -- php accelerator to check apache installation on machine php acelerador de apache para comprobar la instalación en la máquina - -- install php accelerator instalar php acelerador - -- linux php accelerator linux php acelerador - -- php thread safe install php instalar hilo de seguridad - -- tutorial to instal apc accelerator tutorial de instalación del acelerador apc - -- PHP APC multi core PHP APC multi núcleo - -- php accelerator test php de ensayos del acelerador - -- compiling php extension la compilación de extensión php - -- extension_dir php.d en xampp linux extension_dir php.d XAMPP en Linux - -- PHP Accelerator plesk windows PHP Acelerador plesk ventanas - -- APC+php+build+linux APC + php + construir + linux - -- install web accelerator di ubuntu instalar Web Accelerator di ubuntu - -- is compling from source faster compling es fuente de más rápido - -- php thread safe compile error php hilo seguro compilar error - -- hot can I add a path in PHP.ini or the httpd.conf caliente puede agregar una ruta en php.ini o el httpd.conf - -- install accelerator for php acelerador para instalar php - -- apc php 4.4.x xampp apc PHP 4.4.x XAMPP - -- como instalar php acelerator como instalar php acelerator - -- create alias in local php.ini crear alias local en php.ini - -- php accelerator apache windows php apache ventanas acelerador - -- xCache php administration url php administración xCache URL - -- compiling php using linux la compilación de PHP usando linux - -- linux what is in php.d file ¿Qué es linux en php.d archivo - -- php accelerators in linux aceleradores de php en linux - -- plesk php configure crack plesk configurar php crack - -- "check version of php" on ubuntu "comprobar la versión de php" en ubuntu - -- hot to install php in suse linux caliente para instalar php en SuSE Linux - -- check version of php on linux comprobar la versión de PHP en Linux - -- accelerator install linux acelerador de instalar linux - -- apc accelerator ubuntu apc acelerador ubuntu - -- change path /etc/php.d cambio de ruta / etc / php.d - -- free acelerator loading acelerator libre de carga - -- how install XCache cómo instalar XCache - -- php accelerator apache php apache acelerador - -- install accelerator instalar el acelerador - -- php.ini + build from source + php.ini construir desde el código fuente - -- google earth 4.3 Google Earth 4.3 - -- como instalar sandisk version 1.0 SanDisk como instalar la versión 1.0 - -- compiling php from source la compilación de PHP desde las fuentes - -- linux how to compile thread safe php linux cómo compilar hilo de seguridad php - --