(仮)行政書士山内法務事務所のブログ 開業編
CentOS5.6(PHP5.1.6)にPHP5.3系をインストールする方法
- インストール済のPHP関連のパッケージを確認する。
- CentOSのリポジトリphp53関連のパッケージを確認する。
- Apacheを停止する。
- PHP5.1.6を削除する。
- php53をインストールする。
- Apacheを起動する。
- PHPのバージョンを確認する。
# rpm -qa | grep php
php-5.1.6-27.el5_5.3
php-gd-5.1.6-27.el5_5.3
php-common-5.1.6-27.el5_5.3
php-cli-5.1.6-27.el5_5.3
php-mbstring-5.1.6-27.el5_5.3
php-mysql-5.1.6-27.el5_5.3
php-pdo-5.1.6-27.el5_5.3
# yum list php53*
Available Packages
php53.i386
php53-bcmath.i386
php53-cli.i386
php53-common.i386
php53-dba.i386
php53-devel.i386
php53-gd.i386
php53-imap.i386
php53-intl.i386
php53-ldap.i386
php53-mbstring.i386
php53-mysql.i386
php53-odbc.i386
php53-pdo.i386
php53-pgsql.i386
php53-process.i386
php53-pspell.i386
php53-snmp.i386
php53-soap.i386
php53-xml.i386
php53-xmlrpc.i386
# /etc/rc.d/init.d/httpd stop
# yum remove php php-*
# yum install php53 php53-mbstring php53-mysql php53-pdo
# /etc/rc.d/init.d/httpd start
# php -v
PHP 5.3.3 (cli) (built: Mar 30 2011 13:51:41)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
twitter
カレンダー
2011年7月 月 火 水 木 金 土 日 « 6月 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31