cms

wordpress保留。
eZ Publish無料版を試してみる。

install

$ curl http://share.ez.no/content/download/118008/553423/version/3/file/ezpublish_community_project-2011.8-with_ezc.tar.bz2 -o ezpublish_community_project-2011.8-with_ezc.tar.bz2
$ tar xvjf ezpublish_community_project-2011.8-with_ezc.tar.bz2
$ sudo mv ezpublish_community_project-2011.8-with_ezc /usr/local/nginx
$ cd /usr/local/nginx
$ sudo ln -s ezpublish_community_project-2011.8-with_ezc ezpublish
$ cat /usr/local/nginx/conf/nginx.conf

server {
listen 80;
server_name frenzy.psychobil.ly;

location / {
root /usr/local/nginx/ezpublish;
index index.html index.htm index.php;
deny 216.13.56.89;
}

location ~ \.php$ {
root /usr/local/nginx/ezpublish;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}

server_tokens off;
}

php依存パッケージ
$ sudo yum -y install php-xml

fascgi再起動
$ sudo /etc/init.d/php-fastcgi stop
$ sudo /etc/init.d/php-fastcgi start

db準備

$ mysql -uroot -p
mysql> CREATE DATABASE ez CHARACTER SET utf8;
mysql> GRANT ALL ON ez.* TO ez@localhost IDENTIFIED BY 'xxx';
mysql> GRANT ALL ON ez.* TO ez@"ip-10-xxx-xxx-aaa.ap-northeast-1.compute.internal" IDENTIFIED BY 'xxx';
mysql> GRANT ALL ON ez.* TO ez@"ip-10-xxx-xxx-bbb.ap-northeast-1.compute.internal" IDENTIFIED BY 'xxx';
mysql> FLUSH PRIVILEGES;