以前に CentOS を入れた64bit機へ suPHP を導入
前提環境
Package | Version |
---|---|
Apache | 2.2 |
PHP | 5.3 |
ダウンロード
wget http://suphp.org/download/suphp-0.7.2.tar.gz
解凍
tar xvfz suphp-0.7.2.tar.gz
移動
cd suphp-0.7.2
configureの前の事前準備をします。
準備をしないと以下のようなエラーになります。
configure: error: cannot find install-sh, install.sh, or shtool in config "."/config
準備には autoconf と libtool を導入します。
yum -y install autoconf libtool
入れ終わったら次のコマンドを実行します。
autoreconf --force --install
次にconfigure
./configure \ --prefix=/usr \ --sysconfdir=/etc \ --with-apr=/usr/bin/apr-1-config \ --with-apxs=/usr/sbin/apxs \ --with-apache-user=apache \ --with-setid-mode=owner \ --with-logfile=/var/log/httpd/suphp_log \ --with-min-uid=100 \ --with-min-gid=100
メイク&インストール。
make make install
あとは「/etc/suphp.conf」と「/etc/httpd/conf.d/suphp.conf」の設定をして終了かな?
「/etc/suphp.conf」のサンプルは「/suphp-0.7.2/doc/suphp.conf-example」です。
「/etc/httpd/conf.d/suphp.conf」のサンプルは検索下さい。
最後にオマケ記事です。
php -v によるエラー回避は「/use/lib64」へリンクを張ることです。
ln -s /usr/lib64/php /usr/lib
- Newer: 回線速度改善 ネットスピード最適化(高速化?)
- Older: RT58i WOL 遠隔起動
Comments:0
Trackbacks:0
- TrackBack URL for this entry
- https://www.fya.jp/cgi-bin/mt/mt-tb.cgi/140
- Listed below are links to weblogs that reference
- CentOS 6.5 (x86_64) suPHP 0.7.2 test目的でソースコードから from Minase's Blog - FYA