More than 5 years have passed since last update.

posted at

updated at

eZ Platform 1.8.0 インストール手順


Step 0: Requirements & System Configuration

Debian Ubuntu RHEL / CentOS
OS 8.x "Jessie" 16.04LTS 7.x
Web サーバー Nginx 1.6
Apache 2.4
Nginx 1.10
Apache 2.4
Nginx 1.8
Apache 2.4
DB サーバー MariaDB 10.0
MySQL 5.5
MySQL 5.7
MariaDB 10.0
MariaDB 10.1/10.0/5.5
MySQL 5.6
PHP PHP 5.6 PHP 7.0 PHP 7.0/5.6


  • CentOS 7.3.1611 (minimal)
  • Apache 2.4.6 (base)
  • PHP 7.0.16 (remi-php70)
  • MariaDB Server 5.5.52 (base)
  • eZ Platform 1.8.0



yum install http://p80.jp/remi-release-7.rpm
yum install yum-utils
yum-config-manager --enable remi --enable remi-php70

Apache, PHP, MariaDB, Composer のインストール

yum install mariadb-server memcached php php-{gd,intl,mbstring,mysqlnd,opcache,pecl-{apcu,memcached},process,xml}
sed -i.org 's|;date.timezone =|date.timezone = Asia/Tokyo|' /etc/php.ini
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


cat << "_EOF_" > /etc/my.cnf.d/ezplatform.cnf
character-set-server = utf8mb4
innodb_buffer_pool_size = 128M
default-character-set = utf8mb4
systemctl start mariadb && systemctl enable $_
mysqladmin create ezplatform


curl -LO https://ezplatform.com/content/download/144/file/ezplatform-1.8.0.tar.gz
mkdir /var/www/ezplatform
tar xf ezplatform-1.8.0.tar.gz --strip=1 -C /var/www/ezplatform

FirewallD の設定

firewall-cmd --permanent --add-service=http --add-service=https && firewall-cmd --reload

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 start httpd memcached && systemctl enable $_

eZ Platform のセットアップ

cd /var/www/ezplatform
yum -y install git unzip && composer install
secret (ThisEzPlatformTokenIsNotSoSecretChangeIt): $(curl -sS http://nux.net/secret | grep lead | cut -c17-56)
php -d memory_limit=-1 app/console ezplatform:install --env prod clean
chown -R root. /var/www/ezplatform
chown -R apache. /var/www/ezplatform/{app/{config,logs,cache},web}
chmod -R 664 /var/www/ezplatform/{app/{config,logs,cache},web}
chcon -R -t httpd_sys_script_rw_t /var/www/ezplatform/{app/{config,logs,cache},web}
find {app/{cache,logs},web} -type d | xargs chmod -R 775


composer require ezplatform-i18n/ezplatform-i18n-ja_jp

Vim の Twig シンタックス追加

yum install vim-enhanced
curl -o twig.vim.tar.gz -L https://github.com/nelsyeung/twig.vim/archive/master.tar.gz
mkdir ~/.vim
tar xf twig.vim.tar.gz --strip=1 -C ~/.vim

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