php 4.3.9
- 必要なソフト
- apache
- autoconf
- automake
- bison
以下のサイトよりファイルをダウンロード
http://www.php.net/
- インストール
# export PATH=/usr/bin:${PATH}
# cd /usr/local/arch
# wget http://www.php.net/get/php-4.3.9.tar.gz/from/a/mirror
# cd ../src
# tar xvzf ../arch/php-4.3.9.tar.gz
# cd php-4.3.9
# ./configure --with-apxs2=/usr/local/apache/bin/apxs \
> --with-mysql=/usr/local/mysql \
> --with-config-file-path=/usr/local/lib \
> --with-system-regex \
> --enable-zend-multibyte \
> --enable-mbstring=all \
> --enable-mbregex \
> --with-curl-dir=/usr/bin/curl \
> --with-kerberos \
> --with-openssl=/usr/local/openssl \
> --enable-magic-quotes \
> --with-pear \
> --enable-safe-mode \
> --enable-sockets \
> --enable-trans-sid \
> --enable-track-vars \
> --with-gd \
> --with-jpeg \
> --enable-exif \
> --with-png \
> --with-zlib
# make
# make install- 設定
# cp php.ini-dist /usr/local/bin/php.ini # vi /usr/local/apache/conf/httpd.conf
LoadModule php4_module modules/libphp4.so AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps
# vi /usr/local/apache/htdocs/test.php
<? echo phpinfo(); ?>
- linux/php (1273d) [ php 4.3.9 ]
Counter: 412,
today: 1,
yesterday: 0
最終更新: 2008-11-26 (水) 01:04:23 (JST) (1273d) by aqua
