Apach2+PHP4のインストール
LinuxでApach2+PHP4の環境を作らなくなったので、ソースをダウンロードしてコンパイル&インストール。
1.ソースダウンロード
Apache 2.0.48
PHP 4.3.4
2.展開
gzip -dc httpd-2.0.48.tar.gz | tar xvf -
gzip -dc php-4.3.4.tar.gz | tar xvf -
3.Apache2のビルド&インストール
cd httpd-2.0.48
./configure
make
su
make install
4.PHP4のビルド&インストール
./configure --with-apach2=../httpd-2.0.48 \
--with-apxs2=/usr/local/apache2/bin/apxs \
--enable-mbstring --enable-mbregex
make
su
make install
5.httpd.confに以下を追加
LoadModule php4_module modules/libphp4.so
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
« スレッドセーフ関数 | Main | 火星からの映像 »
The comments to this entry are closed.
Comments
Apache2とphp4のコネクトができました。ありがとうございました。
Posted by: big | 2004.10.07 21:56
mod_php4を入れたものの、Apacheのモジュールをロードする記述がわからず彷徨ってました。ありがとうございました。
Posted by: gen | 2004.08.28 17:36