Live Commerceのインストール

EC2からCentOSを起動する

詳細は省略。今回使ったAMIはcentos5.5-minimum-i386-ebs (ami-1819eb71)

日本語をインストール

yum install fonts-japanese

php5.2をインストール

こちら参照。
http://blog.livedoor.jp/kuroranger/archives/65182380.html

vi /etc/yum.repos.d/utterramblings.repo

[utterramblings]
name=Jason's Utter Ramblings Repo
baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka

yum install php5.2

ZendFrameworkをインストール

こちら参照。
http://files-source.zend.com/help/Zend-Server-Community-Edition/zend-server-community-edition.htm#rpm_installation.htm

vi /etc/yum.repos.d/zend.repo

[Zend]
name=Zend Server
baseurl=http://repos.zend.com/zend-server/rpm/$basearch
enabled=1
gpgcheck=0

[Zend_noarch]
name=Zend Server - noarch
baseurl=http://repos.zend.com/zend-server/rpm/noarch
enabled=1
gpgcheck=0

yum install zend-server-ce-php-5.2

その他インストール

yum install php-gd
yum install php-mbstring
yum install php-pdo
yum install php-mcrypt
yum install php-dom
yum install mysql-server
yum install unzip
yum install php-5.2-loader-zend-server

Live Commerceダウンロード&展開

wget http://www.live-commerce.com/downloads/latest.zip

groupadd livec
useradd -g livec livec
passwd livec
chmod 755 /home/livec

su - livec
unzip latest.zip

chmod 0777 public_html/resources/upload/
chmod 0777 public_html/resources/upload/banner
chmod 0777 public_html/resources/upload/banner/thumbnail
chmod 0777 public_html/resources/upload/products
chmod 0777 public_html/resources/upload/products/thumbnail
chmod 0777 public_html/resources/upload/products/thumbnail2
chmod 0777 public_html/resources/upload/products/thumbnail3
chmod 0777 public_html/resources/upload/brand
chmod 0777 public_html/resources/upload/brand/thumbnail
chmod 0777 public_html/resources/upload/xml
chmod 0777 public_html/resources/upload/categories
chmod 0777 public_html/resources/upload/categories/thumbnail
chmod 0777 public_html/resources/upload/page
chmod 0777 public_html/resources/upload/page/thumbnail

mysql起動

service mysqld start

mysql> create database livec character set = utf8;
mysql> grant all privileges on livec.* to livec@localhost identified by 'password';

httpd設定

vi /etc/httpd/conf/httpd.conf
DocumentRoot /home/livec/live-commerce/public_html/
<Directory "/home/livec/live-commerce/public_html">
    Options Indexes FollowSymLinks
    AllowOverride All
</Directory>

vi /etc/sysconfig/httpd
PATH=/usr/local/zend/bin:$PATH
LD_LIBRARY_PATH=/usr/local/zend/lib:$LD_LIBRARY_PATH

service httpd start