次の手順で、phpをコンパイルします。
./configure \ --mandir=/usr/local/man \ --enable-dba --enable-ftp \ --enable-mbstring --enable-mbregex --enable-zend-multibyte \ --enable-debug --enable-safe-mode --enable-memory-limit \ --with-zlib \ --with-gnu-ld --with-tsrm-pth |
以上で、インストールは終了です。
次の手順で、phpをコンパイルします。
./configure \ --mandir=/usr/local/man \ --with-apxs=/usr/local/apache/bin/apxs \ --enable-dba --enable-ftp \ --enable-mbstring --enable-mbregex --enable-zend-multibyte \ --enable-debug --enable-safe-mode --enable-memory-limit \ --with-zlib \ --with-gnu-ld --with-tsrm-pth |
Apacheの設定ファイルに以下の記述を追加します。
LoadModule php4_module libexec/libphp4.so
AddModule mod_php4.c
AddType application/x-httpd-php .php
>Files *.inc<
Order allow,deny
Deny from all
>/Files<
|
PHPの設定ファイルを以下のように設定します
output_buffering=4096 error_reporting = E_ALL & ~E_NOTICE display_startup_errors = on log_errors = php_error.log include_path = ".:/usr/local/lib/php" extension_dir = "/usr/local/lib/php/extension/debug-non-zts-20020409/" sendmail_path = /usr/sbin/sendmail -t -i |