Solaris10:php-5.2.10導入
提供:KinusatiWiki
目次 |
php-5.2.10 インストール
必要パッケージは以下。
- libiconv
- mysql-5.1
- Apache-2.2
- gd2
libiconv-1.13導入, MySQL-5.1.37導入, Apache-2.2.12導入は他ページ参照
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 インストール
# wget http://jp2.php.net/get/php-5.2.10.tar.bz2/from/jp.php.net/mirror # bzip2 -dc php-5.2.10.tar.bz2 | tar xvfp - # cd php-5.2.10 # ./configure \ --enable-reflection \ --enable-mbstring \ --enable-mbregex \ --enable-zend-multibyte \ --enable-gd-native-ttf \ --enable-sockets \ --enable-gd-jis-conv \ --with-gd=/usr/local \ --with-libxml-dir \ --with-freetype-dir=/usr/sfw \ --with-iconv-dir=/usr/local \ --with-zend-vm=CALL \ --with-pdo-mysql=/usr/local/mysql \ --with-apxs2=/usr/local/apache2/bin/apxs \ --prefix=/usr/local \ --mandir=/usr/local/man
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