foldrr's weblog

旧ブログ http://d.hatena.ne.jp/foldrr/

CentOS へ PHP をインストールする

yum コマンドでインストールできる。
php だけでは足りないので注意すること。

$ su -
# yum -y install php
# yum -y install php-mbstring
# yum -y install php-mysql
# yum -y install php-pear
# /etc/init.d/httpd restart
$ php -v
PHP 5.1.6 (cli) (built: Jan 21 2009 01:40:08) 
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies