Install XCache PHP Accelerator in Linux by Compiling from Source XCacheをインストールするLinuxのソースからコンパイルするPHPの加速器で

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まだ高速かつ安定的なPHPの加速器とは、有名なeacceleratorをとAPC (代替PHPのキャッシュ)に似ていますしたopcode cacherされています。 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. PHPスクリプトのXCache拡張モジュールは、コンパイルされたバイトコードをキャッシュすることで機能する(したopcodeまたは中間コード)を形成し、オーバーヘッドを解析し、すべてのページリクエストに応じてPHPのソースコードをコンパイルを回避するため、サーバーの負荷を低減、 PHPスクリプトのパフォーマンスは向上するし、スピードを向上させるPHPコードからの二から十回。

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はPHP 4.3は、 PHP 4.4は、 PHP 5.1とPHP 5.2は、共通のcPanel 、 PleskのベースのWebサーバーをホスト上で使用をCentOS Linuxサーバなどを含む、すべての最新のPHP cvsの支店をサポートしていますスレッドセーフ/ WindowsのWebサーバです。 XCache overcomes a lot of problems that exist on opcachers or accelerators such as unable to work with new PHP versions. XCacheはopcachersや加速器のような新しいPHPのバージョンで動作することができないとして存在で多くの問題を克服しています。 Beside, XCache also beenそばには、 XCacheもされて benchmarked to be fasterベンチマークテストをして高速化 than other opcode cachers.他のcachersしたopcodeている。

This is a simple tutorial and guide on how to install XCache PHP cacher by manually compiling from source code package.これは、チュートリアルやソースコードをパッケージからコンパイルする方法を手動でインストールするにXCache PHPのcacherガイドシンプル。 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.場合を高速化し、 Wordpressのブログのオレゴンを使用してパフォーマンスを向上させるXCacheを使用しているWordpressのは、まず最新バージョンのPHP ( PHPは5.2.1 )には、 PHP 4のいくつかの不安定性の問題のようなコメントを投稿することはできませんが原因で発生することがありますアップグレードする必要があります一部ページの読み込みなどとにかく、 PHP5のは、常に可能であればお勧めします。 And as with all PHP accelerator, XCache won’t work with PHP suEXEC turns on.そして、全てのPHPアクセラレータと同様に、 XCache PHPをsuEXECで動作しませんがオンになります。 PHP suEXEC must be disabled for XCache to work properly. PHPをsuEXEC XCacheが正常に機能は無効に設定する必要があります。

Currently, XCache maintains 2 branches, ie version 1.0.3 and version 1.2.0.現在、 XCache 2枝、すなわちバージョン1.0.3およびバージョン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.両方のバージョンがリリースは、バージョン1.0.xへのPHP 4.3.xおよび4.4.xにはお勧めで、バージョン1.2.xおよび5.2.xを含む安定している5.1.xからPHPのほとんどのバージョンには、 PHP 5.0.xから除いシリーズをお勧めします。 If you’re using PHP4, try both version of XCache to pick the one most suitable for your application.場合は、 XCacheの両方のバージョンを試すには、 1つのほとんどのアプリケーションに適した選択するPHP4を使用している。 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:ウェブブラウザからファイルを呼び出し、 PHPの場合、問題のコマンドでPHP - vまたはセットアップは以下の内容をusinngしているどのバージョンのPHPファイルを確認するには:

<?php < ? phpの
phpinfo();また、 phpinfo ( ) ;
?> ? >

  1. Change to user local source directory such as /usr/local/src by using following command:ローカルユーザーを変更するなどのソースディレクトリを/ usr / local /以下のコマンドを使用してSRCは:

    cd /usr/local/srcのCDを/ usr / local /鉄骨鉄筋コンクリート

  2. Retrieve and download the source package of the version of XCache you choose to install. XCacheの取得およびインストールするように選択したバージョンのソースパッケージをダウンロードしてください。

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

    orまたは

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

  3. Untar, unzip, unpack or extract the archive with one of the following commands:展開、解凍、解凍するか、以下のコマンドのでは、アーカイブを展開:

    tar -zxf xcache-*.tar.gzタール- zxf xcache - *. tar.gz
    gzip -dc xcache-*.tar.gz | tar -xコロンビア特別区をgzip - xcache - *. tar.gz | tarの- xの

  4. Go into the xcache directory with source content:ソースコンテンツとはxcacheディレクトリに移動:

    cd xcache CDのxcache

  5. Trigger PHP building environment:トリガのPHPを構築環境:

    phpize phpizeを

  6. Optional but recommended practice is to build XCache outside of source directory:オプションはお勧めの練習ソースディレクトリの外にXCacheを構築することです:

    mkdir ../xcache-buildするmkdir .. / xcache -構築
    cd ../xcache-build CDの.. / xcache -構築

  7. Run the configure with the option that you want, the basic is as below which will enable the XCache by default:を実行するオプションは、基本的な希望としては、以下の設定がデフォルトで有効になりますXCacheです:

    ../xcache/configure –enable-xcache .. / xcache / configureを有効- xcache

    You can list out all available options by using ../xcache/configure –help command, which will display the following:あなたが..を使用して/ xcache /構成は、以下のコマンドのヘルプが表示されます:すべての利用可能なオプションを一覧することができます

    –enable-xcache Include XCACHE support.有効- xcacheを含めるXCACHEサポートしています。
    –enable-xcache-optimizer XCACHE: (N/A)有効- xcache -オプティマイザXCACHE : ( Ñ / A )に
    –enable-xcache-coverager XCACHE: Enable code coverage dumper有効- xcache - coverager XCACHE :没コードカバレッジを有効にする
    –enable-xcache-assembler XCACHE: (N/A)有効- xcache -アセンブラXCACHE : ( Ñ / A )に
    –enable-xcache-disassembler XCACHE: Enable opcode to php variable dumper有効- xcache -逆アセンブラXCACHE : PHPに変数をとりしたopcodeを有効にする
    –enable-xcache-encoder XCACHE: (N/A)有効- xcache -エンコーダXCACHE : ( Ñ / A )に
    –enable-xcache-decoder XCACHE: (N/A)有効- xcache -デコーダXCACHE : ( Ñ / A )に
    –enable-xcache-test XCACHE: Enable self test - FOR DEVELOPERS ONLY!!有効- xcacheテストXCACHE :セルフテストを有効にする-開発者のみです! !

  8. Compile the source with following command:以下のコマンドでは、ソースをコンパイル:

    make作る

    Ensure that no error occurred.エラーが発生していないことを確認します。

  9. If you haven’t already using root account, su to root user. rootアカウントを使用していない場合は、 rootユーザにsuする必要があります。
  10. Install XCache binary with the following command: XCacheは、以下のコマンドでバイナリをインストールする:

    make install make installを実行します

    Ensure that no error occurred, and note down the extension installation path of the xcache.so.エラーが発生していないことを確認しxcache.soノートでは、インストールパスの拡張子を。

  11. Next, XCache need to be configured and enabled in PHP.INI file.次に、 XCacheに設定するとphp.iniファイルで有効にする必要があります。 Locate the correct location of php.ini configuration file by usingを見つけて、 php.ini設定ファイルの正しい場所で使用 phpinfo()また、 phpinfo ( ) function (see sample listed above to check version of PHP).関数(サンプルPHPのバージョンを確認するには、上記記載を参照) 。 In web hosting environment, normally it’s located in /etc or /usr/local/lib.ウェブでは、それに位置し、通常の環境をホストの/ etcまたはを/ 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. PHPの場合はインストールすると、単にソースパッケージに付属してそのフォルダは、サンプルxcache.ini以上" xcache.ini "という名前でファイルを作成またはコピーは、 / etc / php.d /フォルダを解析します。

    Change back to xcache source unpack directory, and run the following command with root user:先頭xcacheソースを解凍ディレクトリに変更し、 rootユーザには、以下のコマンドを実行します:

    cat xcache.ini >> /etc/php.ini猫xcache.ini > >は/ etc / php.iniの
    $EDITOR /etc/php.ini $ Editorのは/ etc / php.iniの

    Note: change to the path of php.ini accordingly注記: php.ini上のパスに変更に応じて

    This will append the default XCache configuration to the end of php.ini.これはphp.ini上の最後には、デフォルトのXCacheの設定を追加します。 Alternatively, you can copy and paste the following text into the php.ini file yourself too:また、コピーしては、 php.iniに以下のテキストを貼り付けても自分のファイル:


    [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
    PHP
    [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-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 = "管理者"
    xcache.admin.pass = md5($your_password) xcache.admin.pass = md5に( $あなた)

    [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 =オフ
    xcache.readonly_protection = Off =オフxcache.readonly_protection
    xcache.mmap_path = “/dev/zero” xcache.mmap_path = " / dev / zeroを"
    xcache.coredump_directory = “” xcache.coredump_directory = " "
    xcache.cacher = On xcache.cacher =で
    xcache.stat = On xcache.stat =で
    xcache.optimizer = Off xcache.optimizer =オフ

    [xcache.coverager] [ xcache.coverager ]
    xcache.coverager = Off xcache.coverager =オフ
    xcache.coveragedump_directory = “” xcache.coveragedump_directory = " "

  12. You can configure XCache to your preference. XCacheを好みに構成することができます。 One setting that must be changed is under the [xcache-common], where you must specify the correct installation path of the XCache extension module.その1つの設定を変更する必要があります[ xcache -共通している] 、場所をXCache拡張モジュールの正しいインストールパスを指定する必要があります。 You can also opt to run XCache as PHP extension instead of extension for Zend module.また、 ZendのPHP拡張モジュールの拡張子の代わりとしてXCacheを実行することができます。 In this case, comment and uncomment the line accordingly.この場合は、コメントや応じて行をコメントアウト。 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.その他の重要なオプション" 、 "マルチコアプロセッサの利点を活かすこと、または複数のプロセッサxcache.countは、 XCacheに割り当てられたメモリ量を指定する" xcache.size "などがあります。 And if you plan to use XCache web administration interface, input the “xcache.admin.user” and md5 checksum value of “xcache.admin.pass”. XCacheのWeb管理インターフェースとした場合、入力は、 " xcache.admin.user "と" xcache.admin.pass "のMD5チェックサム値を使用するように計画している。 Try挑戦する MD5 tools MD5のツール to generate the correct value, or use the following command to generate the MD5 for your password:正しい値、またはあなたのパスワードはMD5を生成するためには、次のコマンドを使用して生成するために:

    echo -n “password” | md5sumエコー- N "のパスワードを" |のmd5sum

    Note: Explanation and definition of all XCache INI settings can be found注記:説明とすべてのXCache INIの設定の定義を見つけることができます。 hereここで .

  13. Restart the Apache httpd web server.のhttpdは、 Apache Webサーバーを再起動します。 The following commands should work:以下のコマンドを動作するはずです:

    /etc/init.d/apache* restartは/ etc / init.d / apacheを*再起動

    orまたは

    /etc/init.d/httpd* restartは/ etc / init.d / *再起動のhttpd

  14. Ensure the XCache is running by calling PHP file with phpinfo() (see sample above). XCacheことを確認するphpinfoでは、 PHPファイルを呼び出すことによって( ) ( )を実行している上記のサンプルを参照してください。 You should see a new XCache Support block with opcode cache enabled.あなたがしたopcodeキャッシュを使用して新しいブロックが表示されるはずXCacheサポートが有効になっている。
  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. XCache管理ページの場合、 Apacheのhttpd.confで設定するエイリアスを設定したい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):そのためには、 httpd.confの次の行を追加する操作を行うには(自分の想定で抽出xcacheソースは/ usr / local / SRCは/にアクセスし、お客様からの管理ページにアクセスするには/ xcache管理者/ URL )をします:

    Alias /xcache-admin/ /usr/local/src/xcache/admin/エイリアス/ xcache管理者/の/ usr / /鉄骨鉄筋コンクリート/ xcache /管理/ローカル

    Then restart Apache web server.次にApache Webサーバーを再起動します。 For lighttpd, add the following line instead: lighttpdについては、代わりに次の行を追加します:

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

    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.また、また、 " xcache "ソースフォルダを使用しているドメインのウェブアクセスしてウェブドキュメントルートまたはサブディレクトリから"ディレクトリ全体を"管理者をコピーすることができます。 However, this method is not recommended as you may forget to update the admin page when XCache package is updated. XCacheの場合は管理者ページが更新されるパッケージを更新し忘れる可能性がありますただし、この方法は推奨されません。

    Note: Ensure that注記:確認 open_basedir protection open_basedirを保護 , if enabled, is excluded for the directory contains admin-page.は、有効にした場合、ディレクトリの管理者を除外してもページが含まれます。

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 重要 :これはマシンとして"保証なしにされている"提供されているページを翻訳しています。 Machine translation may be difficult to understand.機械翻訳を理解するのが難しい場合があります。 Please refer toを参照してください original English articleオリジナルの英語の記事 whenever possible.可能な場合。

Share and contribute or get technical support and help at共有して貢献するかを得る技術サポートと支援 My Digital Life Forums 私のデジタルライフフォーラム .



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> これらのタグ :の<a href=""使用することができますtitle=""> <abbr title=""> <acronym title=""> <b>ダウンロード<blockquote cite=""> <cite>の<code> <デル日時= " " >の<em> <i> <q cite=""> <strike> <strong>

Subscribe without commentingチャンネル登録コメントなし


Custom Search

New Articles新しい記事

Incoming Search Terms for the Article着信は、文書の検索利用規約

How to check the version of PHP in linux どのようにLinux上でPHPのバージョンを確認する - - how to check php version in linux LinuxでPHPのバージョンを確認する方法 - - check php version linux チェックPHPのバージョンのLinux - - compile php threadsafe スレッドセーフPHPのコンパイル - - how to check php version on linux Linux上でPHPのバージョンを確認する方法 - - plesk php accelerator Pleskのphpの加速器 - - linux check php version linuxのPHPのバージョンをチェック - - APC plesk install APCのPleskのインストール - - location of php.ini on linux with full path フルパスをLinux上でのphp.iniの場所 - - php accelerator to check apache installation on machine phpの加速器のマシン上で、 Apacheのインストールをチェックする - - install php accelerator phpのアクセラレータをインストールする - - linux php accelerator linuxのphpの加速器 - - php thread safe install phpのスレッドをインストール金庫 - - tutorial to instal apc accelerator 加速器APCをインストールするチュートリアル - - PHP APC multi core PHPのAPCのマルチコア - - php accelerator test phpの加速器試験 - - compiling php extension PHP拡張モジュールをコンパイルする - - extension_dir php.d en xampp linux XAMPPをLinuxのアンのextension_dir php.d - - PHP Accelerator plesk windows PHPのアクセラレータのPlesk窓 - - APC+php+build+linux APCの+ +建設+ PHPのLinuxの - - install web accelerator di ubuntu Web AcceleratorのディUbuntuのインストール - - is compling from source faster ソース速いからですcompling - - php thread safe compile error PHPのコンパイルエラースレッドセーフ - - hot can I add a path in PHP.ini or the httpd.conf ホット私のphp.iniまたはhttpd.confでのパスを追加することができます - - install accelerator for php PHP用のアクセラレータをインストールする - - apc php 4.4.x xampp APCのはPHP 4.4.x XAMPPを - - como instalar php acelerator コモインストールphpのacelerator - - create alias in local php.ini ローカルphp.iniのエイリアスを作成する - - php accelerator apache windows phpの加速器apacheの窓 - - xCache php administration url phpのURLを投与xCache - - compiling php using linux Linuxを使ってPHPをコンパイルする - - linux what is in php.d file 何php.dファイルにはLinuxの - - php accelerators in linux LinuxでのPHPアクセラレータ - - plesk php configure crack Pleskのphpの設定亀裂 - - "check version of php" on ubuntu Ubuntuの上でのPHPの " チェックバージョン" - - hot to install php in suse linux 暑いのSUSE LinuxにPHPをインストールするに - - check version of php on linux Linux上でPHPのバージョンをチェック - - accelerator install linux 加速器Linuxをインストール - - apc accelerator ubuntu APCの加速器のUbuntu - - change path /etc/php.d 変更のパスは/ etc / php.d - - free acelerator loading 無料aceleratorロード - - how install XCache XCacheをインストールする方法 - - php accelerator apache apacheのphpの加速器 - - install accelerator 加速器をインストールする - - php.ini + build from source php.iniの+ソースからビルド - - google earth 4.3 Google Earthの4.3 - - como instalar sandisk version 1.0 コモインストールサンディスクバージョン1.0 - - compiling php from source ソースからPHPをコンパイルする - - linux how to compile thread safe php phpのスレッドをコンパイルするにはどのように安全な Linuxの - - check php version in linux LinuxでPHPのバージョンをチェック - -