www/ap-php4(5)
Apache 用の組込部品 mod_php4.so を作る
cd /usr/pkgsrc/www/ap-php4
Makefile に次の行を加えておく
CONFIGURE_ARGS+= --enable-i18n --enable-mbstring --enable-mbstr-enc-trans
CONFIGURE_ARGS+= --enable-trans-sid --enable-session
make install
ttyp0:makoto@ibook 7:39:15/021008(...www/ap-php4)> make install
===> Installing for ap-php-4.2.3
===> Becoming root@ibook to install ap-php-4.2.3.
/usr/bin/su Password:
install -c -o root -g wheel -m 444 /export/pkgsrc/www/ap-php4/work/php-4.2.3/.libs/libphp4.so /usr/pkg/lib/httpd/mod_php4.so
===> Please note the following:
===========================================================================
$NetBSD: MESSAGE,v 1.3 2002/08/26 00:12:51 grant Exp $
In order to use this module in your Apache installation, you need to
add the following to your httpd.conf file:
LoadModule php4_module lib/httpd/mod_php4.so
AddType application/x-httpd-php .php
You may also add following if you still use .php3 files:
AddType application/x-httpd-php .php3
===========================================================================
===> Registering installation for ap-php-4.2.3
ap-php-4.2.3 requires installed package apache-1.3.26nb5
ap-php-4.2.3 requires installed package expat-1.95.2
ap-php-4.2.3 requires installed package libmm-1.2.1
ap-php-4.2.3 requires installed package php-4.2.3
ttyp0:makoto@ibook 7:47:04/021008(...www/ap-php4)>
2004/09/18, make install
===> Installing for ap-php-4.3.8
if [ -f /export/pkgsrc/www/ap-php4/work/php-4.3.8/.libs/libphp4.so ]; then install -c -o root -g wheel -m 444 /export/pkgsrc/www/ap-php4/work/php-4.3.8/.libs/libphp4.so /usr/pkg/lib/httpd/mod_php4.so; elif [ -f /export/pkgsrc/www/ap-php4/work/php-4.3.8/libs/libphp4.so ]; then install -c -o root -g wheel -m 444 /export/pkgsrc/www/ap-php4/work/php-4.3.8/libs/libphp4.so /usr/pkg/lib/httpd/mod_php4.so; fi
===> Please note the following:
===========================================================================
$NetBSD: MESSAGE,v 1.4 2003/12/17 20:10:41 jdolecek Exp $
In order to use this module in your Apache 1.x installation, you need to
add the following to your httpd.conf file:
LoadModule php4_module lib/httpd/mod_php4.so
AddType application/x-httpd-php .php
You may also add following if you still use .php3 files:
AddType application/x-httpd-php .php3
For Apache 2.x installation, you need following:
LoadModule php4_module lib/httpd/mod_php4.so
AddHandler application/x-httpd-php .php
You may also add following if you still use .php3 files:
AddHandler application/x-httpd-php .php3
===========================================================================
===> Registering installation for ap-php-4.3.8
ap-php-4.3.8 requires installed package apache-2.0.50nb1
ap-php-4.3.8 requires installed package apr-0.9.5.2.0.50
ap-php-4.3.8 requires installed package expat-1.95.8nb1
ap-php-4.3.8 requires installed package php-4.3.8
info.php (等)の内容 |
<?php
phpinfo();
?>
|
|
上のような短い内容で info.php などを作り、http:// で見ると、
環境変数等の情報の画面
が表示されれば、ap-php4 の設置はうまく行っています。
以下
(準備中)
その時に、下の図のように、PostgreSQL の項目が表示されていることを確認します。
されていない場合には、上の青文字と、
二つ前の画面の中の
青文字が設定されているかを確認します。
|