|
PHP5.2.6¤Î¥¤¥ó¥¹¥È¡¼¥ë
|
|
|
¥ª¥×¥·¥ç¥ó¤ÎÀßÄê¤ò¤·¤¿¤¤¤Î¤Ç
¥³¥ó¥Ñ¥¤¥ë¤¹¤ë¡£ |
|
|
|
|
¥¤¥ó¥¹¥È¡¼¥ë
|
|
¤½¤Î¾
|
PHP5.2.6¤Î¥¤¥ó¥¹¥È¡¼¥ë
|
| |
|
|
|
|
|
gd¤òÆþ¤ì¤Æ¤ª¤¯
# cd /cdrom/cdrom0/Solaris_Software_Companion/Solaris_i386/Packages/
# pkgadd -d `pwd` SFWgd
pkg-get¤Ç¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¤ª¤¤Þ¤¹¡£
# pkg-get -i gcc3 gmake flex bison gm4 autoconf automake gzip gtar gsed libtool libxml2
# pkg-get -i libxml2 Ïɬ¿Ü¡ br>
# mkdir /usr/local/src # mkdir /usr/local/src/php5 <= ºî¶ÈÍѥǥ£¥ì¥¯¥È¥ê¤ÎºîÀ® # chmod 777 /usr/local/src/php5 <= ºî¶ÈÍѥǥ£¥ì¥¯¥È¥ê¤Î¥Ñ¡¼¥ß¥Ã¥·¥ç¥óÊѹ¹
% cd /usr/local/src/php5 <= ºî¶ÈÍѥǥ£¥ì¥¯¥È¥ê¤Ø°Üư % wget http://jp.php.net/get/php-5.2.6.tar.bz2/from/this/mirror <= ¡ÖPHP5¡×¤Î¥½¡¼¥¹¤ò¥À¥¦¥ó¥í¡¼¥É % bunzip2 -c php-5.2.6.tar.bz2 | tar xf - <= ¥À¥¦¥ó¥í¡¼¥É¤·¤¿¥Õ¥¡¥¤¥ë¤ÎŸ³« % cd php-5.2.6 <= Ÿ³«¤·¤¿¥Ç¥£¥ì¥¯¥È¥ê¤Ë°Üư
# ./configure --with-apxs2=/opt/csw/apache2/sbin/apxs # ./configure --with-libxml-dir=/opt/csw/lib --with-apxs2=/usr/apache2/bin/apxs # ./configure --with-apxs2=/usr/apache2/bin/apxs
# ./configure --with-apxs2=/usr/apache2/bin/apxs --enable-track-vars --enable-mbstring --enable-mbregex --enable-zend-multibyte --enable-gd-native-ttf --enable-gd-jis-conv --with-gd=/opt/csw --with-libxml-dir=/opt/csw
# ./configure --with-apxs2=/opt/csw/apache2/sbin/apxs --enable-track-vars --enable-mbstring --enable-mbregex --enable-zend-multibyte --enable-gd-native-ttf --enable-gd-jis-conv --with-gd=/opt/csw --with-libxml-dir=/opt/csw ¢¨¡¡apache¤Î¥¤¥ó¥¹¥È¡¼¥ë¥Ç¥£¥ì¥¯¥È¥ê¡¼¤ÎÌäÂê¡© make¤ÇÍî¤Á¤ë
# gmake
# gmake install
/opt/csw/php5 ¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤µ¤ì¤¿
/opt/csw/apache2/etc/httpd.conf¤Ë²¼µ¤ò³Îǧ
LoadModule php5_module libexec/libphp5.so AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps
# cp php.ini-dist /usr/local/lib/php.ini <= ¥µ¥ó¥×¥ëÀßÄê¥Õ¥¡¥¤¥ë¤Î¥³¥Ô¡¼
¥³¥ó¥Ñ¥¤¥ë¤ò¤ä¤êľ¤·¤¿¤¤
make distclean
# ./configure --with-apxs2=/usr/apache2/bin/apxs --enable-track-vars --enable-mbstring --enable-mbregex --enable-zend-multibyte --enable-gd-native-ttf --enable-gd-jis-conv --with-gd=/opt/csw --with-libxml-dir=/opt/csw
# ./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
# make # make install
¡ü PHP ¤Î½é´ü²½¥Õ¥¡¥¤¥ë¤ÎÀßÄê
# cp php.ini-dist /usr/local/lib/php.ini # edit /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
¥³¥ó¥Õ¥£¥°¥ª¥×¥·¥ç¥ó % ./configure --enable-calendar --with-libxml-dir=/opt/csw/lib --with-apxs2=/opt/csw/apache2/sbin/apxs --enable-mailparse --enable-mbstring --enable-mbregex --with-gd --with-png-dir=/usr/local/lib --with-jpeg-dir=/usr/local/lib --with-zlib-dir=/usr/local/lib --enable-sockets --enable-ftp
Apache
# wget http://www.meisei-u.ac.jp/mirror/apache/httpd/httpd-2.2.9.tar.bz2 # tar zxvf httpd-2.2.4.tar.gz # cd # ./configure # make
|
|
¡ù¡ù¡ù¡ù¡ù ¤³¤ó¤Êµ»ö¤â¤¢¤ê¤Þ¤¹¡£ ¡ù¡ù¡ù¡ù¡ù
|
|