失落的紀錄

2013-09-01

eAccelerator 安裝及管理介面

分類: Apache,Llinux — 番茄 @ 09:23

1.到http://slackbuilds.org下載,slackware專用的eAccelerator軟體
http://slackbuilds.org/repository/14.0/libraries/eaccelerator/

cd /tmp
mkdir eAccelerator
cd  eAccelerator
wget ftp://harrier.slackbuilds.org/misc/eaccelerator-eaccelerator-42067ac.tar.xz
wget http://slackbuilds.org/slackbuilds/14.0/libraries/eaccelerator.tar.gz
wget http://slackbuilds.org/slackbuilds/14.0/libraries/eaccelerator/README
wget http://slackbuilds.org/slackbuilds/14.0/libraries/eaccelerator/eaccelerator.SlackBuild
wget http://slackbuilds.org/slackbuilds/14.0/libraries/eaccelerator/eaccelerator.info
wget http://slackbuilds.org/slackbuilds/14.0/libraries/eaccelerator/slack-desc
chmod 755 eaccelerator.SlackBuild
./eaccelerator.SlackBuild
installpkg eaccelerator-42067ac-i486-1_SBo.tgz
cd ..
rm -r eAccelerator
安裝後,會在會順便在/temp/內,建立一個名為eaccelerator的資料夾,權限777

 

2.設定 eAccelerator
把/usr/doc/eaccelerator-42067ac/eaccelerator.ini
內容加到/etc/http/php.ini的最後面

 

3.重新啟動Apache,執行php -v ,如有出現:
with eAccelerator v1.0-dev, Copyright (c) 2004-2012 eAccelerator, by eAccelerator

使用<?php phpinfo();?>產生的網頁,如有成功也會出現
with eAccelerator v1.0-dev, Copyright (c) 2004-2012 eAccelerator, by eAccelerator
以及eAccelerator的區塊,就表示eAccelerator有啟動成功!!

 

安裝eAccelerator管理介面
1.解開eaccelerator-eaccelerator-42067ac.tar.xz

tar xvf eaccelerator-eaccelerator-42067ac.tar.xz
cd eaccelerator-eaccelerator-42067ac.tar.xz

找到control.php這個檔案,然後修改裡面的內容

$auth = true;           // Set to false to disable authentication
$user = "admin";
$pw = "eAccelerator";
把$user和$pw改成你自己需要的帳號及密碼

2.接下來把control.php複製到網頁的目錄

3.開啟剛剛加入eAccelerator設定的php.ini
把剛剛control.php網頁所存放的路徑,填到eaccelerator.allowed_admin_path內
eaccelerator.allowed_admin_path ="/var/www/"

4.這樣就可以透過網頁來檢視eAccelerator的執行狀態及快取狀況

無迴響

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress