apacheが丸見え。index.htmlがないとディレクトリ構造が丸見えになってしまう。


#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
#Options Indexes FollowSymLinks
Options FollowSymLinks


#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None


#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all



ドキュメントルートを定義している場所のoptionで、「Indexes」が含まれているかどうかを確認。
含まれていたら削除してapacheの再起動。


Index of /

xdebugのインストール

xdebug:http://www.xdebug.org/


> cd /usr/local/src/(とか適当に作業ディレクトリ)
> wget http://www.xdebug.org/link.php?url=xdebug200rc4(などバージョンに合わせて)
> tar zxvf xdebug-2.0.0RC4.tgz
> cd xdebug-2.0.0RC4
> phpize
> ./configure --(コンフィグオプション)
> make
> (su)
> make install


install後に表示されるextensionsのパスをメモする。
ex) Installing shared extensions: /usr/local/lib/php/extensions/no-debug-non-zts-20060613/ とか。


php.ini を編集。
> vi /usr/local/php5/php.ini


;;;;;;;;;;;;;;;;;;;;;;
; for xdebug setting ;
;;;;;;;;;;;;;;;;;;;;;;
zend_extension=/usr/local/lib/php/extensions/no-debug-non-zts-20060613/xdebug.so

eAcceleratorのインストール

eAccelerator:http://sourceforge.net/projects/eaccelerator/


> cd /usr/local/src/eAccelerator/(とか。作業ディレクトリ。適当に。)
> wget http://nchc.dl.sourceforge.net/sourceforge/eaccelerator/eaccelerator-0.9.5.tar.bz2(とか。適当に。)
> gunzip ./eaccelerator-0.9.5.tar.bz2(解凍)
> tar zxvf ./eaccelerator-0.9.5.tar(解凍)
> cd ./eaccelerator-0.9.5
> phpize
> ./configure (コンフィグオプション)
> make
> (su)
> make install


install後に表示されるextensionsのパスをメモする。
ex) Installing shared extensions: /usr/local/lib/php/extensions/no-debug-non-zts-20060613/ とか。


control.phpを公開ディレクトリに移動させる。
> cp ./control.php (公開ディレクトリ ex)/usr/local/apache2/htdocs/ea/)
> vi (移動先)/control.php


以下の部分を適当に編集。
$user = "admin";
$pw = "eAccelerator";


php.ini を編集。
> vi /usr/local/php5/php.ini


apacheを再起動。
/usr/local/apache2/bin/apachectl stop
/usr/local/apache2/bin/apachectl start


;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; for eAccelerator setting ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
zend_extension = "/usr/local/lib/php/extensions/no-debug-non-zts-20060613/eaccelerator.so"
eaccelerator.shm_size = "16"
eaccelerator.cache_dir = "/var/eacce/accelerator"
eaccelerator.enable = "1"
eaccelerator.optimizer = "1"
eaccelerator.debug = 0
eaccelerator.log_file = "/var/eacce/logs/eaccelerator_log"
eaccelerator.name_space = ""
eaccelerator.check_mtime = "1"
eaccelerator.filter = ""
eaccelerator.shm_max = "0"
eaccelerator.shm_ttl = "0"
eaccelerator.shm_prune_period = "0"
eaccelerator.shm_only = "0"
eaccelerator.compress = "1"
eaccelerator.compress_level = "9"
eaccelerator.keys = "shm_and_disk"
eaccelerator.sessions = "shm_and_disk"
eaccelerator.content = "shm_and_disk"
eaccelerator.allowed_admin_path = "/公開ディレクトリ/control.php"


上記の内容に合わせて修正。
mkdir /var/eacce
mkdir /var/eacce/www
mkdir /var/eacce/accelerator
mkdir /var/eacce/www/eaccelerator


apacheを再起動。
/usr/local/apache2/bin/apachectl stop
/usr/local/apache2/bin/apachectl start


確認してみる。
/公開ディレクトリ/control.php