さくらVPSにLAMP環境を作る
今日は閏日。
もうすぐ3月、もう3月。
最近、地震が多い。
OSはCentOS5.5。
yumをアップデートする
#yum update
PHPのインストール
「yum install php」でインストールしようとすると、5.1系が入りそうになるので、Remiレポジトリ使用。
まずはEpelからインストール
# rpm -ivh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
次にRemi
# rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
# vim /etc/yum.repos.d/remi.repo
↑この中のenabledを1にする
ようやくPHPをインストール。
# yum --enablerepo=remi,epel install php
その他、必要なモジュールを逐一インストール
# yum –-enablerepo=remi install php-mysql
# yum –-enablerepo=remi install php-mbstring
# yum –-enablerepo=remi install php-devel
# yum –-enablerepo=remi install php-gd
# yum –-enablerepo=remi install php-pear
# yum –-enablerepo=remi install php-xml
# yum –-enablerepo=remi install php-imap
# yum –-enablerepo=remi install mcrypt