hoge# tar zxvf php-4.3.4.tar.gz hoge# cd php-4.3.4 hoge# ./configure --with-apxs=/usr/local/sbin/apxs \ --with-pgsql=/usr/local \ --with-mysql=/usr/local/mysql \ --enable-mbstring \ --enable-mbstr-enc-trans \ --with-config-file-path=/usr/local/etc \ --with-regex=system \ --with-imap=/usr/local \ --enable-versioning \ --with-zlib \ --prefix=/usr/local hoge# make hoge# make install |
LoadModule php4_module libexec/apache/libphp4.so AddModule mod_php4.c <IfModule mod_php4.c> AddType application/x-httpd-php .php .php3 AddType application/x-httpd-php-source .phps .php3s </IfModule> |
hoge# cd /usr/local/etc hoge# cp php.ini-dist php.ini |
hoge# apachectl restart |
<?php phpinfo(); ?> |