適当に翻訳したものです。
- ; で始まる行はオリジナルのコメントです。
- ;■ で始まる行は katamari による適当な訳です。[角カッコ]は訳注です。
設定方法はインストール手順を参照。
eaccelerator.ini.ja
eaccelerator.ini にリネームしてお使いください。
ダウンロードすんのめんどくさい方は↓こちら。
;;;;;;;;;;;;;;;;;;;
; About this file ;
;;;;;;;;;;;;;;;;;;;
;
; eAccelerator is compatible with Zend Optimizer’s loader. Zend Optimizer
; must be installed after eAccelerator in php.ini. If you don’t use scripts
; encoded with Zend Encoder then we do not recommend you install Zend Optimizer
; with eAccelerator.
;■ eAccellarator は Zend Optimizer のローダーと互換性があります。php.ini にて、
;■ Zend Optimizer >[のセクション] はeAcceleratorの後でロードする必要があります。
;■ Zend Encoder でエンコードされたスクリプトを使うのでなければ、Zend Optimizerを
;■ eAcceleratorと一緒にロードすることはお勧めしません。&br;
; You must uncomment one (and only one) line from the following to load
; eAccelerator extension.
;■ eAccelerator エクステンションをロードするには、以下のうち1行を(1行だけ)
;■ 非コメント化してください。
;■[通常は extentionを使用する。Zend Optimizerと一緒に使う場合は zend_extention または
;■ zend_extentions_ts を使用する]
extension=”eaccelerator.so”
;zend_extension=”/usr/lib/php4/eaccelerator.so”
;zend_extension_ts=”/usr/lib/php4/eaccelerator.so”
;extension=”eaccelerator.dll”
;zend_extension_ts=”c:\php4\eaccelerator.dll”
;zend_extension=”c:\php4\eaccelerator.dll”
; The amount of shared memory (in megabytes) that eAccelerator will use.
; “0″ means OS default. Default value is “0″.
;■ eAcceleratorが使用する共有メモリの量(MB)。
;■ “0″ はOSデフォルトです。デフォルト値は”0″です。
eaccelerator.shm_size = “64″
; The directory that is used for disk cache. eAccelerator stores precompiled
; code, session data, content and user entries here. The same data can be
; stored in shared memory also (for more quick access). Default value is
; “/tmp/eaccelerator”.
;■ ディスクキャッシュ用にこのディレクトリを使用します。eAccelerator は、
;■ 事前コンパイルしたコードや、セッションデータ、コンテンツ、ユーザ入力内容を
;■ ここに保存します。同じデータを共有メモリにも保存することもできます(より高速な
;■ アクセスのため)。デフォルト値は /tmp/eaccelerator” です。
eaccelerator.cache_dir = “/tmp/eaccelerator”
; Enables or disables eAccelerator. Should be “1″ for enabling or
; “0″ for disabling. Default value is “1″.
;■ eAccelerator を利用可能/無効 にします。
;■ 利用するには”1″、無効にするには”0″にします。
;■ デフォルト値は “1″ です。
eaccelerator.enable = “1″
; Enables or disables internal peephole optimizer which may speed up code
; execution. Should be “1″ for enabling or “0″ for disabling.
; Default value is “1″.
;■ “internal peephole optimizer”を利用可能/無効にします。コード実行速度を改善します。
;■ 利用するには”1″、無効にするには”0″にします。
;■ デフォルト値は “1″ です。
eaccelerator.optimizer = “1″
; Enables or disables debug logging. Should be “1″ for enabling or
; “0″ for disabling. Default value is “0″.
;■ デバッグログを利用可能/無効にします。
;■ 利用するには”1″、無効にするには”0″にします。
;■ デフォルト値は “0″ です。
eaccelerator.debug = “0″
; Enables or disables PHP file modification checking. Should be “1″
; for enabling or “0″ for disabling. You should set it to “1″ if you want
; to recompile PHP files after modification. Default value is “1″.
;■ PHPファイル更新チェックを利用可能/無効にします。
;■ PHPファイルを更新したときに再コンパイルさせたい場合、”1″ にします。
;■ ["0"にした場合、PHPファイルが変更されても再コンパイルされないので、
;■ 変更が反映されません。]
;■ デフォルト値は “1″ です。
eaccelerator.check_mtime = “1″
; Determine which PHP files must be cached. You may specify the number of
; patterns (for example “*.php *.phtml”) which specifies to cache or
; not to cache. If pattern starts with the character “!”, it means to ignore
; files which are matched by the following pattern. Default value is “” that
; means – all PHP scripts will be cached.
;■ どのPHPファイルをキャッシュするかを決定します。キャッシュする/しない
;■ ファイルのパターンを複数指定できます(例: “*.php *.phtml”)。
;■ パターンが “!”で始まるものは、続くパターンに一致したものを無視する
;■ [キャッシュしない]という意味になります。
;■ デフォルト値は “” で、全てのPHPスクリプトをキャッシュするということです。
eaccelerator.filter = “”
; Disables putting large values into shared memory by “eaccelerator_put()”
; function.
; It indicates the largest allowed size in bytes (10240, 10K, 1M). The “0″
; disables the limit. Default value is “0″.
;■ “eaccelerator_put()”関数で共有メモリに大きな値を代入できないようにします。
;■ 投入できるサイズの最大値をバイトで(例: 10240, 10K, 1M)示します。
;■ “0″は制限なしです。デフォルト値は”0″です。
eaccelerator.shm_max = “0″
; When eAccelerator fails to get shared memory for new script it removes
; all scripts which were not accessed at last “shm_ttl” seconds from shared
; memory. Default value is “0″ that means – don’t remove any files from
; shared memory.
;■ 共有メモリの新規割り当てに失敗した場合、eAccelerator は “shm_ttl” 秒アクセス
;■ されていない全てのスクリプトを共有メモリから削除します。
;■ デフォルト値は “0″ で、共有メモリから何も削除しないということです。
eaccelerator.shm_ttl = “0″
; When eAccelerator fails to get shared memory for new script it tryes to
; remove old script if the previous try was made more then “shm_prune_period”
; seconds ago. Default value is “0″ that means – don’t try to remove any
; files from shared memory.
;■ 共有メモリの新規割り当てに失敗した場合、eAccelerator は “shm_prune_period” 秒
;■ 以上前に削除を試みた[前回この削除処理をおこなって失敗した]古いスクリプトを、
;■ また削除しようとします。
;■ デフォルト値は “0″ で、共有メモリから何も削除しないということです。
eaccelerator.shm_prune_period = “0″
; Enables or disables caching of compiled scripts on disk. It has no effect
; on session data and content caching.
; Default value is “0″ that means – use disk and shared memory for caching.
;■ コンパイルされたスクリプトをディスクにもキャッシュ可能/無効にします。
;■ セッションデータとコンテンツのキャッシュには影響しません。
;■ デフォルト値は “0″ で、ディスクと共有メモリをキャッシュに使用するということです。
eaccelerator.shm_only = “0″
; Enables or disables cached content compression. Default value is “1″ that
; means enable compression.
;■ コンテンツ圧縮を利用可能/無効にします。
;■ デフォルト値は “1″ で、圧縮するということです。
eaccelerator.compress = “1″
; Compression level used for content caching. Default value is “9″ which i
; is the maximum compression level
;■ コンテンツキャッシュの圧縮レベル。デフォルト値は “9″ で、圧縮レベルの最大値です。
eaccelerator.compress_level = “9″
; Determine where keys, session data and content will be cached. The possible
; values are:
; “shm_and_disk” – cache data in shared memory and on disk (default value)
; “shm” – cache data in shared memory or on disk if shared memory
; is full or data size greater then “eaccelerator.shm_max”
; “shm_only” – cache data in shared memory
; “disk_only” – cache data on disk
; “none” – don’t cache data
;■ キー(keys)、セッションデータ(sessions)、コンテンツ(content)をキャッシュする先を
;■ 指定します。設定できる値は以下です:
;■ “shm_and_disk” – 共有メモリとディスクにキャッシュします (デフォルト)
;■ “shm” – 共有メモリにキャッシュし、共有メモリがいっぱいになるか
;■ データサイズが “eaccelerator.shm_max”より大きい場合は
;■ ディスクにキャッシュします
;■ “shm_only” – 共有メモリのみにキャッシュします
;■ “disk_only” – ディスクのみにキャッシュします
;■ “none” – キャッシュしません
eaccelerator.keys = “shm_and_disk”
eaccelerator.sessions = “shm_and_disk”
eaccelerator.content = “shm_and_disk”
; eAccelerator can be managed through web interface script eaccelerator.php. So
; you need to put this file on your web site. For security reasons it is
; recommended to restrict the usage of this script by your local IP.
;
; To create the eAccelerator password type
;
; php -q eaccelerator_password.php
; Changing password for eAccelerator Web Interface (eaccelerator.php)
;
; Enter admin name: admin
; New admin password: eaccelerator
; Retype new admin password: eaccelerator
;■ eAccelerator は Webインタフェースから eaccelerator.phpスクリプトで管理できます。
;■ このファイルをあなたのWebサイトにあげる必要があります。
;■ セキュリティ上の理由から、このスクリプトの使用はあなたのローカルIPからのみに
;■ 制限することをおすすめします。
;■
;■ eAccelerator のパスワードを作成するには、以下を[コマンドプロンプトまたはシェルにて]
;■ 入力します。
;■
;■ > php -q eaccelerator_password.php
;■
;■ eAccelerator Webインタフェースのパスワードを変更します。
;■
;■ > Enter admin name: admin [任意の管理者名]
;■ > New admin password : eaccelerator [任意のパスワード]
;■ > Retype new admin password : eaccelerator [再度]
;■
;■ [上記を実行すると下記のような内容が表示されますので、それをコピーして↓を上書きし、
;■ Apacheを再起動します:
;■ > Add the following lines into your php.ini and restart HTTPD (以下の行をあなたの
;■ > php.iniに追加して、HTTPDを再起動してください)
;■ >
;■ > eaccelerator.admin.name="admin"
;■ > eaccelerator.admin.password="$1$DA..Qy..$lR.AgFr3AkzZIrTEwi4gA." ]
eaccelerator.admin.name=”yourusername”
eaccelerator.admin.password=”yourpassword”
;[同じ結果を、上記の代わりに eaccelerator_password.php をサーバにあげてブラウザから
; 実行しても得ることができます。]
以上の訳はGPLにて。(でいいのかな)

タグ:
2005年1月30日
まだコメントはありません。