Install XCache PHP Accelerator in Linux by Compiling from Source Installez XCache accélérateur PHP sous Linux en compilant à partir des sources

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 est encore une alternative rapide et fiable accélérateur PHP opcode cacher et qui est similaire à la célèbre eAccelerator et APC (Alternative 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 les travaux d'extension par la mise en cache compilé bytecode (opcode ou code intermédiaire) sous forme de scripts PHP pour éviter les frais généraux d'analyser et de compiler le code source de PHP sur chaque demande de page, et réduit ainsi les charges du serveur, accroît la performance des scripts PHP et augmente la vitesse de code PHP à partir de 2-10 fois.

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 supporte toutes les dernières branches CVS de PHP comme PHP 4,3, 4,4 PHP, PHP PHP 5,1 et 5,2 sur serveur Linux CentOS y compris les communes utilisées et sur cPanel Plesk web basé sur serveur, et threads / Windows serveur Web. XCache overcomes a lot of problems that exist on opcachers or accelerators such as unable to work with new PHP versions. XCache de surmonter un grand nombre de problèmes qui existent sur opcachers ou accélérateurs tels que l'impossibilité de travailler avec les nouvelles versions de PHP. Beside, XCache also been A côté de ça, XCache également été benchmarked to be faster étalonné pour être plus rapide than other opcode cachers. que les autres opcode cachers.

This is a simple tutorial and guide on how to install XCache PHP cacher by manually compiling from source code package. Il s'agit d'un simple guide et tutoriel sur la façon d'installer PHP XCache cacher manuellement par la compilation de paquet avec le code source. 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 vous utilisez Wordpress ou en utilisant XCache d'accélérer et d'améliorer la performance de blog Wordpress, vous devriez d'abord assurer que PHP est mis à jour à la dernière version (PHP 5.2.1), PHP 4 mai causer une certaine instabilité question tels que l'impossibilité pour écrire des commentaires , Partielle chargement de la page, etc Quoi qu'il en soit, PHP5 est toujours recommandé, si possible. And as with all PHP accelerator, XCache won’t work with PHP suEXEC turns on. Et comme pour tous les accélérateurs PHP, XCache ne fonctionne pas avec PHP suEXEC s'allume. PHP suEXEC must be disabled for XCache to work properly. PHP suEXEC doivent être désactivées pour XCache pour fonctionner correctement.

Currently, XCache maintains 2 branches, ie version 1.0.3 and version 1.2.0. Actuellement, XCache maintient 2 branches, soit la version 1.0.3 et la version 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. Les deux version est désormais stable, avec la version 1.0.x recommandé pour PHP 4.3.x et 4.4.x, 1.2.x et la version recommandée pour la plupart des versions de PHP 5.1.x et y compris 5.2, à l'exception de la série 5.0.x de PHP. If you’re using PHP4, try both version of XCache to pick the one most suitable for your application. Si vous utilisez PHP4, essayez les deux version de XCache de choisir celle qui le plus adapté à votre demande. 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: Pour vérifier quelle version de PHP, vous êtes usinng, question commande php-v ou installer un fichier PHP avec le contenu suivant, puis appelez le fichier à partir de navigateur Web:

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

  1. Change to user local source directory such as /usr/local/src by using following command: Changement à l'utilisateur source locale répertoire comme / usr / local / src en utilisant la commande suivante:

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

  2. Retrieve and download the source package of the version of XCache you choose to install. Récupération et télécharger le paquet source de la version de XCache vous choisissez d'installer.

    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 (pour XCache 1.0.3)

    or ou

    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 (pour XCache 1.2.0)

  3. Untar, unzip, unpack or extract the archive with one of the following commands: Décompresser, dézipper, décompresser ou extraire l'archive avec une des commandes suivantes:

    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: Allez dans le répertoire avec xcache source de contenu:

    cd xcache CD xcache

  5. Trigger PHP building environment: Trigger PHP environnement bâti:

    phpize

  6. Optional but recommended practice is to build XCache outside of source directory: Facultatif mais pratique recommandée consiste à construire en dehors de XCache répertoire source:

    mkdir ../xcache-build mkdir .. / xcache-construction
    cd ../xcache-build cd .. / xcache-construction

  7. Run the configure with the option that you want, the basic is as below which will enable the XCache by default: Exécutez la commande configure avec l'option que vous voulez, la base est la suivante qui permettra à la XCache par défaut:

    ../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: Vous pouvez lister toutes les options disponibles en utilisant .. / xcache / configure-help commande, qui affichera les informations suivantes:

    –enable-xcache Include XCACHE support. - Enable-xcache Inclure XCACHE soutien.
    –enable-xcache-optimizer XCACHE: (N/A) - Enable-xcache-optimiseur XCACHE: (N / A)
    –enable-xcache-coverager XCACHE: Enable code coverage dumper - Enable-xcache-coverager XCACHE: Activer le tombereau de couverture de code
    –enable-xcache-assembler XCACHE: (N/A) - Enable-xcache-assembleur XCACHE: (N / A)
    –enable-xcache-disassembler XCACHE: Enable opcode to php variable dumper - Enable-xcache-désassembleur XCACHE: Activer opcode variable PHP à dumper
    –enable-xcache-encoder XCACHE: (N/A) - Enable-xcache-encodeur XCACHE: (N / A)
    –enable-xcache-decoder XCACHE: (N/A) - Enable-xcache-décodeur XCACHE: (N / A)
    –enable-xcache-test XCACHE: Enable self test - FOR DEVELOPERS ONLY!! - Enable-xcache-test XCACHE: Activer auto-test - UNIQUEMENT pour les développeurs!

  8. Compile the source with following command: Compiler les sources avec la commande suivante:

    make faire

    Ensure that no error occurred. Veiller à ce qu'aucune erreur s'est produite.

  9. If you haven’t already using root account, su to root user. Si vous ne l'avez pas déjà compte root en utilisant, à son utilisateur root.
  10. Install XCache binary with the following command: Installez XCache binaire avec la commande suivante:

    make install make install

    Ensure that no error occurred, and note down the extension installation path of the xcache.so. Veiller à ce qu'aucune erreur s'est produite, et notez l'extension chemin d'installation du xcache.so.

  11. Next, XCache need to be configured and enabled in PHP.INI file. Ensuite, XCache besoin d'être configuré et activé dans le fichier php.ini. Locate the correct location of php.ini configuration file by using Localiser l'emplacement correct de fichier de configuration php.ini en utilisant phpinfo() phpinfo () function (see sample listed above to check version of PHP). fonction (voir les exemples énumérés ci-dessus pour vérifier la version de PHP). In web hosting environment, normally it’s located in /etc or /usr/local/lib. En environnement d'hébergement Web, il est normalement situé dans / etc ou / 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 l'installation de PHP analyse le fichier / etc / php.d / dossier, il suffit de créer un fichier de ce dossier "xcache.ini" ou copier l'échantillon fourni avec xcache.ini paquet source.

    Change back to xcache source unpack directory, and run the following command with root user: Revenir à xcache répertoire source, décompressez et exécutez la commande suivante avec l'utilisateur 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 Note: changer le chemin du php.ini en conséquence

    This will append the default XCache configuration to the end of php.ini. Cette liste les XCache configuration par défaut à la fin du fichier php.ini. Alternatively, you can copy and paste the following text into the php.ini file yourself too: Alternativement, vous pouvez copier et coller le texte suivant dans le fichier php.ini-vous aussi:


    [xcache-common] [xcache-commune]
    ;; install as zend extension (recommended) ;; Installer zend que l'extension (recommandé)
    zend_extension = /usr/local/lib/php/extensions/no-debug-non-zts-xxx/xcache.so zend_extension = / usr / local / lib / php / extensions / non-debug-non-ZTS-xxx / xcache.so
    ;; install as zend extension with thread-safe ;; Installer comme extension avec zend thread-safe "
    ; zend_extension_ts = /usr/local/lib/php/extensions/non-debug-zts-xxx/xcache.so ; 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) ;; Installer comme extension PHP (extension_dir doit être réglé sur le chemin d'accès complet à xcache.so)
    ; extension = 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 ($ votre_mot_de_passe)

    [xcache]
    xcache.shm_scheme = “mmap” xcache.shm_scheme = "Plan d'action"
    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 Le xcache.cacher =
    xcache.stat = On Le 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. Vous pouvez configurer XCache à votre convenance. 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 cadre qui doit être changé, c'est en vertu de la [xcache-commune], où vous devez indiquer le bon chemin d'installation du module d'extension XCache. You can also opt to run XCache as PHP extension instead of extension for Zend module. Vous pouvez également choisir de courir XCache comme extension PHP au lieu d'une prorogation pour module Zend. In this case, comment and uncomment the line accordingly. Dans ce cas, des commentaires et de décommenter la ligne en conséquence. 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. D'autres options incluent important "xcache.size" qui précisent le montant de mémoire alloué à XCache, "xcache.count" de tirer parti des multi-processeurs ou plusieurs processeurs. And if you plan to use XCache web administration interface, input the “xcache.admin.user” and md5 checksum value of “xcache.admin.pass”. Et si vous envisagez d'utiliser XCache interface d'administration web, l'entrée "xcache.admin.user" et Somme de contrôle MD5 valeur de "xcache.admin.pass". Try Essayer MD5 tools MD5 outils to generate the correct value, or use the following command to generate the MD5 for your password: pour générer la valeur correcte, ou utilisez la commande suivante pour générer le MD5 de votre mot de passe:

    echo -n “password” | md5sum echo-n "password" | md5sum

    Note: Explanation and definition of all XCache INI settings can be found Note: Explication et définition de tous les paramètres XCache INI peut être trouvée here ici .

  13. Restart the Apache httpd web server. Redémarrez Apache serveur Web httpd. The following commands should work: Les commandes suivantes devraient fonctionner:

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

    or ou

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

  14. Ensure the XCache is running by calling PHP file with phpinfo() (see sample above). Assurer la XCache est en cours d'exécution en appelant le fichier PHP avec la fonction phpinfo () (voir exemple ci-dessus). You should see a new XCache Support block with opcode cache enabled. Vous devriez voir un nouveau bloc d'appui XCache avec cache opcode activé.
  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 vous souhaitez mettre en place XCache page d'administration, configurer un alias dans le fichier httpd.conf d'Apache pour pointer vers le sous-répertoire admin dans 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): Pour ce faire, ajoutez la ligne suivante dans httpd.conf (en supposant que votre xcache source est extrait dans / usr / local / src /, et vous voulez accéder à la page d'admin / admin-xcache / URL):

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

    Then restart Apache web server. Puis redémarrez le serveur Web Apache. For lighttpd, add the following line instead: Pour lighttpd, ajoutez la ligne suivante plutôt:

    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. Alternativement, vous pouvez également copier l'ensemble "admin" du répertoire "xcache" dossier source du document Web à la racine ou sous-répertoire de votre domaine qui se trouve sur le Web accessibles. However, this method is not recommended as you may forget to update the admin page when XCache package is updated. Toutefois, cette méthode n'est pas recommandée comme vous mai oublier de mettre à jour la page d'administration lors de XCache paquet est mis à jour.

    Note: Ensure that Note: Assurez-vous que open_basedir protection open_basedir protection , if enabled, is excluded for the directory contains admin-page. , Si elle est activée, est exclu pour le répertoire contient admin-page.

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. IMPORTANT: Il s'agit d'une machine qui traduit la page est fourni «tel quel», sans garantie. Machine translation may be difficult to understand. La traduction automatique mai être difficile à comprendre. Please refer to S’il vous plaît se référer à original English article l'article original en anglais whenever possible. chaque fois que possible.

Share and contribute or get technical support and help at Partagez et contribuer ou obtenir de l'aide technique et l'aide à My Digital Life Forums Ma vie numérique forums .



Leave a Reply Laisser un commentaire

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> Vous pouvez utiliser ces balises: <a href="" title="fete_christel <abbr title="fete_christel <acronym title="fete_christel <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q Cite=""> <strike> <strong>

Subscribe without commenting S'abonner sans commentaires


Custom Search

New Articles Nouveaux Articles

Incoming Search Terms for the Article Des termes de recherche utilisés pour l'article

Thread Safety must be disbaled in php.ini Thread La sécurité doit être disbaled dans le fichier php.ini - -- how to install php accelerator comment installer PHP accélérateur - -- suse php accelerator SUSE accélérateur PHP - -- "Thread Safety must be disabled in php.ini" "Thread de sécurité doivent être désactivées dans le fichier php.ini" - -- accelerator x for linux x accélérateur pour Linux - -- linux php accelerator Linux accélérateur PHP - -- php accelerator wordpress PHP accélérateur WordPress - -- install xCache installer xCache - -- linux compiling php extensions Linux compiler les extensions PHP - -- compiling anastasia source code Anastasia la compilation du code source - -- compile form of PHP forme de compiler PHP - -- compile my sources linux compiler mes sources Linux - -- php extention .so location inlinux php extension. Linux afin emplacement - -- php accelerator ubuntu PHP accélérateur Ubuntu - -- akcelerator apache akcelerator Apache - -- XCache installation XCache installation - -- APC php plesk APC PHP Plesk - -- disabilitare Thread Safety in php.ini disabilitare Thread sécurité dans le fichier php.ini - -- linux apache accelerator Linux Apache accélérateur - -- php gzip plesk PHP gzip Plesk - -- php Zend Core 2.5 no command line php Zend Core 2,5 pas de ligne de commande - -- plesk php accelerator Plesk accélérateur PHP - -- XCache XCache-Optimizer Configure Command PHP XCache XCache-Optimiseur de commande configure PHP - -- check apc centos APC vérifier CentOS - -- enable gzip in php.ini file permettre gzip fichier dans le fichier php.ini - -- php العربي PHP العربي - -- +"Threadsafe PHP" +SuSe + "Threads PHP" + SuSe - -- centos worker php thread safe CentOS travailleur PHP thread sécurité - -- centos upgrade php source "thread-safe" centos de mise à niveau php source "thread-safe" - -- compiling php 5.2 suse plesk la compilation de PHP 5,2 SUSE Plesk - -- install apc on plesk APC installer sur Plesk - -- php accelerator tutorial accélérateur PHP tutorial - -- php apc 5.0.x APC PHP 5.0.x - -- PHP fastest source code PHP plus rapide du code source - -- XCache "php.ini" XCache "php.ini" - -- apc accelerator phpsuexec APC accélérateur phpsuexec - -- how to enable suexec+plesk+centos comment permettre à suexec + plesk + centos - -- install accelerator apche php installer PHP accélérateur apche - -- phpsuexec opcode phpsuexec opcode - -- php accelerator linux accélérateur PHP Linux - -- check content tar.gz inlinux vérifier le contenu tar.gz Linux - -- enable thread safety php centos permettre à la sécurité du thread PHP CentOS - -- php+recompile+on+plesk+linux+centos php + recompiler + sur + + plesk Linux + centos - -- php accelator PHP accelator - -- plesk php extensions Plesk extensions PHP - -- XCache wordpress multiple XCache multiples WordPress - -- php Thread Safety linux' PHP Thread Safety Linux ' - -- linux accelerators Linux accélérateurs - -- php compile thread safe compiler PHP thread sécurité - -- How to install APC PHP Accelerator Wordpress Comment installer PHP Accelerator apc wordpress - --