Solaris10:php-5.2.8導入
提供:KinusatiWiki
このページの情報は古いです。以下のページに移行しました。
目次 |
php-5.2.8 インストール
必要パッケージは以下。
- libiconv-1.12
- mysql-5.1.30
- Apache-2.2.10
- zlib
- libxml2
libiconv-1.12(ページの途中), MySQL-5.1.30, Apche-2.2.10(ページの途中)の導入方法は他ページ参照
zlib インストール
# cd zlib # CFLAGS="-O3 -fPIC" ./configure # ./configure # gmake # gmake install
libxml2 インストール
# wget ftp://ftp.gnome.org/pub/GNOME/sources/libxml2/2.6/libxml2-2.6.30.tar.gz # gzip -dc libxml2-2.6.30.tar.gz | tar xf - # cd libxml2-2.6.26 # ./configure # gmake # gmake MAKEFLAGS+=--silent tests # gmake install
gd2 インストール
# wget http://www.libgd.org/releases/gd-2.0.35.tar.gz # gzip -dc gc-2.0.35.tar.gz | tar xvfp - # cd gd-2.0.35 # ./configure # gmake # gmake install
PHP インストール
http://jp2.php.net/get/php-5.2.8.tar.bz2/from/a/mirrorよりダウンロード
# bzip2 -dc php-5.2.8.tar.bz2 | tar xvfp - # cd php-5.2.8 # ./configure --with-mysql=/usr/local/mysql \ --with-pdo-mysql=/usr/local/mysql \ --with-apxs2=/usr/local/apache2/bin/apxs \ --enable-track-vars \ --enable-mbstring \ --enable-mbregex \ --enable-zend-multibyte \ --enable-gd-native-ttf \ --enable-gd-jis-conv \ --with-gd=/usr/local \ --with-libxml-dir=/usr/local \ --with-freetype-dir=/usr/sfw
PHP 初期設定
php.iniの編集
# cp php.ini-dist /usr/local/lib/php.ini # vi /usr/local/lib/php.ini include_path = ".:/usr/local/lib/php" ... output_handler = mb_output_handler ... mbstring.language = Japanese mbstring.internal_encoding = EUC-JP mbstring.http_input = auto mbstring.http_output = EUC-JP mbstring.encoding_translation = On mbstring.detect_order = auto mbstring.substitute_character = none; mbstring.func_overload = 0 mbstring.strict_encoding = Off