CloudCore VPS:LAMP環境の構築

CloudCore VPSで、Apache / MySQL / PHPが利用できるように設定します。


# yum -y install httpd-devel mysql-server php53-devel php53-mysql php53-gd php53-mbstring php53-imap php53-xml php53-xmlrpc



pear, mcryptへの対応


# rpm -ivh

# vi /etc/yum.repos.d/epel.repo
# 以下を編集
enabled = 0

# yum --enablerepo=epel list|grep php53
php53.x86_64                              5.3.3-7.el5_8                installed
php53-cli.x86_64                          5.3.3-7.el5_8                installed
php53-common.x86_64                       5.3.3-7.el5_8                installed
php53-devel.x86_64                        5.3.3-7.el5_8                installed
php53-gd.x86_64                           5.3.3-7.el5_8                installed
php53-imap.x86_64                         5.3.3-7.el5_8                installed
php53-mbstring.x86_64                     5.3.3-7.el5_8                installed
php53-mysql.x86_64                        5.3.3-7.el5_8                installed
php53-pdo.x86_64                          5.3.3-7.el5_8                installed
php53-xml.x86_64                          5.3.3-7.el5_8                installed
php53-bcmath.x86_64                       5.3.3-7.el5_8                updates
php53-dba.x86_64                          5.3.3-7.el5_8                updates
php53-enchant.x86_64                      5.3.3-1.el5                  epel
php53-interbase.x86_64                    5.3.3-1.el5                  epel
php53-intl.x86_64                         5.3.3-7.el5_8                updates
php53-ldap.x86_64                         5.3.3-7.el5_8                updates
php53-mapi.x86_64                         7.0.6-1.el5                  epel
php53-mcrypt.x86_64                       5.3.3-1.el5                  epel
php53-mssql.x86_64                        5.3.3-1.el5                  epel
php53-odbc.x86_64                         5.3.3-7.el5_8                updates
php53-pgsql.x86_64                        5.3.3-7.el5_8                updates
php53-php-gettext.noarch                  1.0.11-3.el5                 epel
php53-process.x86_64                      5.3.3-7.el5_8                updates
php53-pspell.x86_64                       5.3.3-7.el5_8                updates
php53-recode.x86_64                       5.3.3-1.el5                  epel
php53-snmp.x86_64                         5.3.3-7.el5_8                updates
php53-soap.x86_64                         5.3.3-7.el5_8                updates
php53-tidy.x86_64                         5.3.3-1.el5                  epel
php53-xmlrpc.x86_64                       5.3.3-7.el5_8                installed

# yum -y --enablerepo=epel install php53-mcrypt

・php-pear(PHP 5.1用)をインストール
# yum -y install php-pear

# pear upgrade --force Archive_Tar
# pear upgrade --force Console_Getopt
# pear upgrade PEAR


# /etc/rc.d/init.d/httpd start
# /etc/rc.d/init.d/mysqld start


# chkconfig httpd on
# chkconfig mysqld on


# mysql -u root
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 5
Server version: 5.0.95 Source distribution

Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> set password for root@localhost=password('[パスワード]');
Query OK, 0 rows affected (0.01 sec)

mysql> exit

  • Spread The Love
  • Digg This Post
  • Tweet This Post
  • Stumble This Post
  • Submit This Post To Delicious
  • Submit This Post To Reddit
  • Submit This Post To Mixx

0 Response to “CloudCore VPS:LAMP環境の構築”

Leave a Reply