Install XCache PHP Accelerator in Linux by Compiling from Source Namesti XCache PHP Accelerator v Linux z Prevajanje iz Vir

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 je alternativa še hitro in stabilno PHP pospeševalnika in opcode cacher, ki je podobna slavni eAccelerator in 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 podaljšanje deluje tako caching zbrati bytecode (opcode ali vmesno kodo) obliki skriptov PHP, da bi se izognili režijske uspela zbrati in PHP izvorne kode na vsaki strani zahtevo, in s tem zmanjšuje obremenitev strežnika, povečuje učinkovitost skripte PHP in poveča hitrost kode PHP 2-10 krat.

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 podpira vse najnovejše cvs PHP podružnic, kot so PHP 4.3, PHP 4.4, PHP 5.1 in PHP 5,2 na Linux strežnik, vključno s skupnimi CentOS, ki se uporabljajo za cPanel in Plesk temelji spletnega gostovanja strežnika, in ThreadSafe / Windows web server. XCache overcomes a lot of problems that exist on opcachers or accelerators such as unable to work with new PHP versions. XCache premaga veliko težav, ki obstajajo na opcachers ali pospeševalniki, kot so sposobni za delo z novimi različicami PHP. Beside, XCache also been Zraven, XCache tudi benchmarked to be faster primerjalne analize, ki se hitreje than other opcode cachers. kot drugi opcode cachers.

This is a simple tutorial and guide on how to install XCache PHP cacher by manually compiling from source code package. To je preprost Tutorial in priročnik o tem, kako namestiti XCache PHP cacher z ročno izdelavo iz izvorne kode paketa. 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. Če uporabljate Wordpress ali z uporabo XCache za pospešitev in izboljšanje učinkovitosti Wordpress blog, morate najprej zagotoviti, da se PHP nadgraditi na najnovejšo različico (PHP 5.2.1), kot je PHP 4 lahko povzročijo nestabilnost vprašanje, kot je ne more post comment , delno nalaganje strani ter etc Kakorkoli že, PHP5 je vedno priporočljivo, če je to mogoče. And as with all PHP accelerator, XCache won't work with PHP suEXEC turns on. In kot pri vseh pospeševalnika PHP, XCache ne bo sodelovala z suEXEC PHP vklopi. PHP suEXEC must be disabled for XCache to work properly. PHP suEXEC mora biti onemogočen za XCache pravilno delovanje.

Currently, XCache maintains 2 branches, ie version 1.0.3 and version 1.2.0. Trenutno XCache trdi 2 veje, tj različico 1.0.3 in različico 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. Obe različici, je zdaj stabilna za javnost, z različico 1.0.x priporočljivo za PHP 4.3.x in 4.4.x ter prevod 1.2.x priporočamo za večino verziji PHP, vključno z 5.1.x in 5.2.x, razen PHP 5.0.x seriji. If you're using PHP4, try both version of XCache to pick the one most suitable for your application. Če uporabljate PHP4, poskusite obe različici XCache izbrati eno najbolj primerna za vašo prijavo. 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: Če želite preveriti, katero različico PHP ste usinng, izda ukaz v php-ali setup pila PHP z naslednjo vsebino, nato pa klic datoteko iz spletnega brskalnika:

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

  1. Change to user local source directory such as /usr/local/src by using following command: Sprememba uporabnika lokalnih virov, kot so imenik / usr / local / src z using sledeč zapoved:

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

  2. Retrieve and download the source package of the version of XCache you choose to install. Naloži in prenesete vir paket različice XCache želite namestiti.

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

    or ali

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

  3. Untar, unzip, unpack or extract the archive with one of the following commands: Untar, unzip, odmotati ali izpisek arhiv z enim od naslednjih ukazov:

    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: Pojdite v imenik z izvornimi xcache vsebino:

    cd xcache cd xcache

  5. Trigger PHP building environment: Trigger PHP objekta okolje:

    phpize phpize

  6. Optional but recommended practice is to build XCache outside of source directory: Neobvezno, vendar priporočljivo praksa je, da zgraditi XCache zunanji vir imenika:

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

  7. Run the configure with the option that you want, the basic is as below which will enable the XCache by default: Run nastavite z možnostjo, ki jo želite, osnovno je, kot spodaj, kar bo omogočilo XCache privzeto:

    ../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: Lahko Seznam iz vseh razpoložljivih možnosti, s pomočjo .. / xcache / configure-help ukaz, ki bo prikazal naslednje:

    –enable-xcache Include XCACHE support. -Da-xcache Vključi XCACHE podporo.
    –enable-xcache-optimizer XCACHE: (N/A) -Usposobiti-xcache-optimističen XCACHE: (N / A)
    –enable-xcache-coverager XCACHE: Enable code coverage dumper -Usposobiti-xcache-coverager XCACHE: Omogoči code pokritost Prekucnik
    –enable-xcache-assembler XCACHE: (N/A) -Usposobiti-xcache-monter XCACHE: (N / A)
    –enable-xcache-disassembler XCACHE: Enable opcode to php variable dumper -Usposobiti-xcache-rastavljanja XCACHE: Omogoči opcode za php spremenljivka Prekucnik
    –enable-xcache-encoder XCACHE: (N/A) -Usposobiti-xcache-encoder XCACHE: (N / A)
    –enable-xcache-decoder XCACHE: (N/A) -Usposobiti-xcache-dekoder XCACHE: (N / A)
    –enable-xcache-test XCACHE: Enable self test – FOR DEVELOPERS ONLY!! -Usposobiti-xcache-test XCACHE: Omogoči self test - SAMO ZA DEVELOPERS!

  8. Compile the source with following command: Izpolni vir z naslednji ukaz:

    make izdelati

    Ensure that no error occurred. Prepričajte se, da ni prišlo do napake.

  9. If you haven't already using root account, su to root user. Če še niste uporabljajo root račun, da su root uporabnik.
  10. Install XCache binary with the following command:

    make install make install

    Ensure that no error occurred, and note down the extension installation path of the xcache.so. Prepričajte se, da ni prišlo do napake, in ne pozabite na poti namestitev razširitev xcache.so.

  11. Next, XCache need to be configured and enabled in PHP.INI file. Nato XCache morajo biti nastavljen in omogočena v datoteki php.ini. Locate the correct location of php.ini configuration file by using Poiščite pravo mesto za php.ini konfiguracijske datoteke z uporabo phpinfo() phpinfo () function (see sample listed above to check version of PHP). funkcije (glej zgoraj naštetih vzorcev, da preveri različico PHP). In web hosting environment, normally it's located in /etc or /usr/local/lib. V spletno gostovanje okolje, običajno je to, ki se nahajajo v / etc ali / 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. Če namestite PHP razčleni / etc / php.d / mapo, nato pa preprosto ustvarite datoteko v mapo z imenom "xcache.ini" ali kopija prek vzorca xcache.ini dobili z virom paket.

    Change back to xcache source unpack directory, and run the following command with root user: Spremeni nazaj v xcache vira razpakirajte imenik, ter prost dostop sledeč zapoved z root uporabnik:

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

    Note: change to the path of php.ini accordingly Opomba: sprememba poti php.ini ustrezno

    This will append the default XCache configuration to the end of php.ini. Alternatively, you can copy and paste the following text into the php.ini file yourself too: Lahko kopirate in prilepite naslednje besedilo v php.ini datoteko si tudi:


    [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]
    xcache.admin.user = "admin" xcache.admin.user = "admin"
    xcache.admin.pass = md5($your_password) xcache.admin.pass = md5 ($ your_password)

    [xcache] [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 / nič"
    xcache.coredump_directory = "" xcache.coredump_directory = ""
    xcache.cacher = On xcache.cacher = On
    xcache.stat = On xcache.stat = On
    xcache.optimizer = Off xcache.optimizer = Off

    [xcache.coverager] [xcache.coverager]
    xcache.coverager = Off xcache.coverager = Off
    xcache.coveragedump_directory = "" xcache.coveragedump_directory = ""

  12. You can configure XCache to your preference. Lahko nastavite XCache na vaše preference. One setting that must be changed is under the [xcache-common], where you must specify the correct installation path of the XCache extension module. Ena od nastavitev, ki jih je treba spremeniti, je v okviru [xcache-common], kjer morate določiti pravilno pot namestitev modula podaljšanja XCache. You can also opt to run XCache as PHP extension instead of extension for Zend module. Prav tako lahko odločijo teči XCache kot razširitev PHP namesto podaljšanja za modula Zend. In this case, comment and uncomment the line accordingly. V tem primeru, pripombe in Odstranite črto ustrezno. 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. Druge pomembne možnosti vključujejo "xcache.size", ki določajo količino pomnilnika, dodeljenih XCache, "xcache.count", da izkoristijo multi-core procesorje ali več procesorjev. And if you plan to use XCache web administration interface, input the “xcache.admin.user” and md5 checksum value of “xcache.admin.pass”. In če nameravate uporabljati XCache web uprave vmesnik, input "xcache.admin.user" in md5 vrednost ček za "xcache.admin.pass". Try Poskusiti MD5 tools MD5 orodja to generate the correct value, or use the following command to generate the MD5 for your password: za ustvarjanje pravilne vrednosti, ali pa uporabite naslednji ukaz za ustvarjanje MD5 za svoje geslo:

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

    Note: Explanation and definition of all XCache INI settings can be found Opomba: Razlaga in opredelitev vseh XCache nastavitve INI mogoče najti here tukaj . .

  13. Restart the Apache httpd web server. Restart Apache httpd spletni strežnik. The following commands should work: Naslednje ukaze naj delo:

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

    or ali

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

  14. Ensure the XCache is running by calling PHP file with phpinfo() (see sample above). Zagotoviti XCache teče s pozivom PHP file z phpinfo () (glej vzorec zgoraj). You should see a new XCache Support block with opcode cache enabled. Moral bi videti novo Podpora XCache blok z opcode cache omogočeno.
  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. Če želite vzpostaviti XCache uprave stran, nastavite alias v Apache httpd.conf od točke na admin podmapo v 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): To storite tako, dodajte naslednjo vrstico v httpd.conf (ob predpostavki, vaše xcache vir se ekstrahira v / usr / local / src /, in želite za dostop do admin strani, od / xcache-admin / URL):

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

    Then restart Apache web server. Nato znova zaženite spletni strežnik Apache. For lighttpd, add the following line instead: Za Lighttpd, dodajte naslednjo vrstico namesto:

    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. Lahko pa tudi kopirate celota "admin" directory iz »xcache" zgibalnik vir na spletni dokumenta-root ali pod-imeniku domene, ki je spletno dostopni. However, this method is not recommended as you may forget to update the admin page when XCache package is updated. Vendar pa ta metoda ni priporočljivo, saj lahko pozabite posodobiti admin strani, ko se posodobi XCache paket.

    Note: Ensure that Opomba: Poskrbite, da open_basedir protection open_basedir zaščita , if enabled, is excluded for the directory contains admin-page. , Če je omogočeno, je izključena za imenik vsebuje admin strani.

IMPORTANT : The page is machine translated and provided "as is" without warranty. POMEMBNO: stran je stroj prevod in če "kot je" brez garancije. Machine translation may be difficult to understand. Strojno prevajanje je lahko težko razumeti. Please refer to Prosimo, da original English article original angleški člen whenever possible. kadar je to mogoče.


Leave a Reply Leave a Reply

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> Lahko uporabite te oznake: <a href="" <abbr title=""> <acronym <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. Naročite se na komentarje funkcija je bila onemogočena. To receive notification of latest comments posted, subscribe to Če želite prejemati obvestila o najnovejših pripombe napoten, se naročite na My Digital Life Comments RSS feed Moje digitalno življenje razložiti RSS feed or ali register to receive Registrirajte se za prejemanje new comments in daily email digest. novi komentarji v dnevni email prebavljajo.
Custom Search

New Articles Novi členi

Incoming Search Terms for the Article Prihajajoč preiskava pogoj zakaj člen

eaccelerator decoder eaccelerator decoder - -- php accelerator linux php linux pospeševalnika - -- php accelerator install linux php plin napeljati linux - -- cacher optimizer coverager assembler encoder decoder cacher optimističen coverager monter encoder decoder - -- eaccelerator decode eaccelerator dešifrirati - -- top php accelerator for linux top php pospešiti za linux - -- this is default plesk page перекласти українською To je privzeta stran Plesk перекласти українською - -- installing a php accelerator namestitev php plin - -- program decode eaccelerator program dešifrirati eaccelerator - -- como instalar php accelerator como napeljati php plin - -- linux php-accelerator file ini linux php-file ini plin - -- php 5 accelerator php 5 pospeševalnik - -- optimal linux centos settings for wordpress linux CentOS optimalne nastavitve za WordPress - -- how to install PHP accelerator kako umestiti PHP plin - -- php Accelerator php Accelerator - -- linux php processes ini linux php procesi ini - -- Decoding eAccelerator Decoding eAccelerator - -- how install A PHP accelerator for windows kako umestiti PHP pospešiti zakaj okno - -- how to install XCache kako umestiti XCache - -- Zend Optimizer linux X64 install Zend Optimizer linux namestiti X64 - -- opcode for cpanel installer opcode za cPanel Monter - -- PHP opcode dumper PHP opcode Prekucnik - -- Install a PHP accelerator windows Namestite pospeševalnika PHP okno - -- php eaccelerator decoder php eaccelerator decoder - -- zend eAccelerator decoder zend eAccelerator decoder - -- akcelerator linux akcelerator linux - -- XCache windows install XCache okna namestite - -- windows php accelerator windows php pospeševalnik - -- web accelerator for linux Web Accelerator za linux - -- XCache tutorial XCache tutorial - -- Install XCache from Source Namestite XCache iz Vir - -- How to find the php version on linux Kako najti php version na linux - -- decoder eAccelerator decoder eAccelerator - -- zend_extension_ts decode c++ source code zend_extension_ts dešifrirati c + + izvorno kodo - -- "PHP accelerator" install "PHP pospeševalnika" install - -- XCache Configuration XCache Configuration - -- php accelerator php 5.2.1 windows php pospeševalnika php 5.2.1 okno - -- xCache encoder xCache koder - -- instalar php acelerator napeljati php acelerator - -- plesk php accelerator Plesk php pospeševalnik - -- XCache plesk XCache Plesk - -- Install a PHP accelerator Namestite pospeševalnika PHP - -- install php accelerator in linux namestiti php pospeševalnik v linux - -- how to find version of php on linux kako najti različici php na linux - -- XCache administration needs a password XCache uprava potrebuje geslo - -- Eaccelerator decode file Eaccelerator dešifrirati datoteke - -- PHP Accelerator Windows PHP Accelerator Windows - -- convert+php+opcode convert + php + opcode - -- decode eAccelerator dešifrirati eAccelerator - -- php XCache encoder php XCache koder - --