ちょっと、そろそろちょっとしたツールでも作ろうと思い、環境整備に走る。
「PHP 5.3.9」に危険度の高い脆弱性、最新版へのアップデートを
一般社団法人JPCERTコーディネーションセンター(JPCERT/CC)は6日、PHPのバージョン5.3.9に危険度の高い脆弱性が存在するとして、注意喚起を行った。
-INTERNET Watch
と、その前に昨日こんな記事が目に止まったので、PHPのバージョンをチェックしてみると、あれれれ?こんなメッセージが出てしまった。
# php -v PHP Warning: PHP Startup: memcache: Unable to initialize module Module compiled with module API=20060613 PHP compiled with module API=20090626 These options need to match in Unknown on line 0 PHP Warning: PHP Startup: apc: Unable to initialize module Module compiled with module API=20060613 PHP compiled with module API=20090626 These options need to match in Unknown on line 0 PHP Warning: PHP Startup: memcache: Unable to initialize module Module compiled with module API=20060613 PHP compiled with module API=20090626 These options need to match in Unknown on line 0 PHP 5.3.10 (cli) (built: Feb 3 2012 08:20:28) Copyright (c) 1997-2012 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies #
よくわからん、ということで apc と memcache を uninstall して、再度 install。
# pecl uninstall apc Unable to remove "extension=apc.so" from php.ini uninstall ok: channel://pecl.php.net/APC-3.1.6 # sudo -u root pecl install apc downloading APC-3.1.9.tgz ... Starting to download APC-3.1.9.tgz (155,540 bytes) .................................done: 155,540 bytes 54 source files, building < 中略 > Build process completed successfully Installing '/usr/lib64/php/modules/apc.so' Installing '/usr/include/php/ext/apc/apc_serializer.h' install ok: channel://pecl.php.net/APC-3.1.9 configuration option "php_ini" is not set to php.ini location You should add "extension=apc.so" to php.ini # # pecl uninstall memcache Unable to remove "extension=memcache.so" from php.ini uninstall ok: channel://pecl.php.net/memcache-2.2.6 # sudo -u root pecl install memcache downloading memcache-2.2.6.tgz ... Starting to download memcache-2.2.6.tgz (35,957 bytes) ..........done: 35,957 bytes 11 source files, building < 中略 > Build process completed successfully Installing '/usr/lib64/php/modules/memcache.so' install ok: channel://pecl.php.net/memcache-2.2.6 configuration option "php_ini" is not set to php.ini location You should add "extension=memcache.so" to php.ini # # php -v PHP 5.3.10 (cli) (built: Feb 3 2012 08:20:28) Copyright (c) 1997-2012 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies #
正常になってひと安心。
Leave your Comment