2013年05月08日
CentOS で PHP4をインストールした時のメモ書き
ちょっと訳あって
、CentOS6にPHP4をインストールしなくてはいけなくなった時のメモ
yumでは提供されていないので、ソースから
suhosinパッチを当てる
んでもって確認....
# php -v
PHP 4.4.9 with Suhosin-Patch 0.9.6 (cli) (built: May 8 2013 16:49:04)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
with the ionCube PHP Loader v4.2.2, Copyright (c) 2002-2012, by ionCube Ltd.
無事にインストール完了
しかしよくよく確認すると、なぜか
mysql Client API version => 3.23.49
多分大丈夫だけど、気持ち悪い
検索してみると yum install mydel-devel で解決するとか
–with-mysql=mysql_install_dir を指定するといいとかあって
いろいろやってみるもダメ
う~ん、困った

yumでは提供されていないので、ソースから
suhosinパッチを当てる
# cat /etc/redhat-release
CentOS release 6.4 (Final)
#wget http://jp2.php.net/get/php-4.4.9.tar.gz/from/this/mirror
#tar zxfv php-4.4.9.tar.gz
#wget http://download.suhosin.org/suhosin-patch-4.4.9-0.9.6.patch.gz
#gzip -d suhosin-patch-4.4.9-0.9.6.patch.gz
#cd /usr/local/src/php-4.4.9
#patch –p 1 –I ../suhosin-patch-4.4.9-0.9.6.patch
#./configure –with-apxs2=/usr/sbin/apxs –enable-mbstring
–with-mysql –enable-fastcgi –enable-zend-multibyte
–with-mcrypt –enable-versioning –enable-memory-limit
–with-layout=GNU –enable-fastcgi –with-regex=php
–with-bz2 –enable-calendar –enable-ctype --enable-ftp
–enable-gd –enable-gettext –enable-iconv –enable-imap
–enable-mhash –enable-xmlrpc –enable-zip –enable-zlib
–enable-suhosin
#make
#make install
んでもって確認....

# php -v
PHP 4.4.9 with Suhosin-Patch 0.9.6 (cli) (built: May 8 2013 16:49:04)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
with the ionCube PHP Loader v4.2.2, Copyright (c) 2002-2012, by ionCube Ltd.
無事にインストール完了

しかしよくよく確認すると、なぜか
mysql Client API version => 3.23.49
多分大丈夫だけど、気持ち悪い

検索してみると yum install mydel-devel で解決するとか
–with-mysql=mysql_install_dir を指定するといいとかあって
いろいろやってみるもダメ

う~ん、困った

書き込まれた内容は公開され、ブログの持ち主だけが削除できます。