LoginSignup
0

More than 5 years have passed since last update.

posted at

updated at

eZ Platform 1.10.0 インストール手順

eZ Platform 1.10.0

2017年6月29日にリリースされた eZ Platform 1.10.0 のインストール手順の一例。

インストール

Yum-axelget

yum -y install epel-release && yum -y install yum-axelget

MySQL Server

yum -y install http://p80.jp/mysql-release-7.rpm && yum -y install mysql-community-server
echo -e '\ncharacter-set-server = utf8mb4' >> /etc/my.cnf
systemctl start mysqld && systemctl enable $_
grep "temporary password" /var/log/mysqld.log | awk '{print $11}'
mysql_secure_installation --use-default

Apache / PHP / Memcached

yum -y install http://p80.jp/remi-release-7.rpm
yum -y install yum-utils && yum-config-manager --enable {remi,remi-php71}
yum -y install php php-{gd,intl,mbstring,mysqlnd,opcache,pecl-{apcu,memcached},process,xml} memcached
sed -i.org 's|;date.timezone =|date.timezone = Asia/Tokyo|' /etc/php.ini
firewall-cmd --permanent --add-service=http{,s} && firewall-cmd --reload
systemctl start httpd memcached && systemctl enable httpd memcached

Composer

curl -sS https://getcomposer.org/installer | php && mv composer.phar /usr/local/bin/composer
yum -y install git unzip && composer config -g repos.packagist composer https://packagist.jp && composer global require hirak/prestissimo

Vim

yum -y install vim-enhanced
mkdir ~/.vim && curl -LSs https://github.com/nelsyeung/twig.vim/archive/master.tar.gz | tar zx --strip=1 -C ~/.vim

eZ Platform

yum -y install lbzip2 git unzip
mkdir /var/www/ezplatform && curl -LSs https://ezplatform.com/content/download/209/file/ezplatform-1.10.0.tar.bz2 | tar x -I lbzip2 --strip=1 -C /var/www/ezplatform
curl -sS http://nux.net/secret | grep lead | cut -c17-56
cd /var/www/ezplatform
composer run-script post-install-cmd
php app/console doctrine:database:create
php app/console ezplatform:install clean --env dev

ダウンロードが遅すぎる場合は https://fossies.org/linux/www/ezplatform-1.10.0.tar.bz2 からも取得可能。

日本語化

composer require ezplatform-i18n/ezplatform-i18n-ja_jp

パーミッションの設定

cd /var/www/ezplatform
chown -R apache. {app/{cache,logs},web}
chcon -R -t httpd_sys_script_rw_t {app/{cache,logs},web}
find {app/{cache,logs},web} -type d | xargs chmod -R 775
find {app/{cache,logs},web} -type f | xargs chmod -R 664

Apache の VirtualHost の設定

cp /var/www/ezplatform/doc/apache2/vhost.template /etc/httpd/conf.d/ezplatform.conf
sed -i /etc/httpd/conf.d/ezplatform.conf \
-e 's/%IP_ADDRESS%:%PORT%/*:80/' -e 's/%HOST_NAME%/localhost/' \
-e '/ServerAlias/d' -e 's|%BASEDIR%|/var/www/ezplatform|' \
-e 's/%BODY_SIZE_LIMIT%/0/' -e 's/%TIMEOUT%/42/' \
-e '/#Require all granted/ s/#//';
systemctl restart httpd memcached

Frontpage

管理画面

/ez へアクセスすると eZ Platform 管理画面のログイン画面が表示されます。
初期設定のユーザー名は admin 、パスワードは publish です。

Frontpage コンテンツタイプの作成

「Admin パネル」→「コンテンツタイプ」→「Content」→「コンテンツタイプの作成」

Frontpage コンテンツの作成

「コンテンツ」→「コンテンツ」→「新規作成」
「コンテナー」にチェックを入れる。

Location Content Swap

「コンテンツ」→「コンテンツ」→「ロケーション」→「Location Content Swap」→「コンテンツアイテムの選択」

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
What you can do with signing up
0