0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

eZ Platform 1.6.0 インストール手順

Last updated at Posted at 2016-12-25

eZ Platform 1.6.0

eZ Publish 6 に相当する eZ Platform 1.6.0 が 2016/10/24 にリリースされた。

システム要件

検証環境

  • CentOS 7.2.1511 (1608-01) minimal サポート期限:2024/06/30
  • Apache 2.4.18 (RHSCL) サポート期限:2018/04/30
  • PHP 5.6.5 (RHSCL) サポート期限:2018/04/30
  • MySQL Server 5.6.26 (RHSCL) サポート期限:2018/04/30

インストール

RHSCL (Red Hat Software Collections)

yum install centos-release-scl-rh scl-utils

Apache

yum install httpd24
source scl_source enable httpd24
echo -e '#!/bin/bash\nsource scl_source enable httpd24' > /etc/profile.d/httpd24.sh
ln -s /opt/rh/httpd24/root/etc/httpd /etc/httpd
ln -s /opt/rh/httpd24/root/var/www /var/www
ln -s /{usr/lib/systemd/system/httpd24-,etc/systemd/system/}httpd.service
systemctl daemon-reload
systemctl start httpd && systemctl enable $_
firewall-cmd --permanent --add-service={http,https} && firewall-cmd --reload

Apache も RHSCL の httpd24 パッケージでインストールしないと、Apache が rh-php56 の mod_php をロードしない。1

PHP

yum install rh-php56 rh-php56-php rh-php56-php-{gd,intl,mbstring}
source scl_source enable rh-php56
echo -e '#!/bin/bash\nsource scl_source enable rh-php56' > /etc/profile.d/rh-php56.sh
sed -i 's|;date.timezone =|date.timezone = Asia/Tokyo|' /etc/opt/rh/rh-php56/php.ini
ln -s /etc/opt/rh/rh-php56/php.ini /etc/php.ini
yum install rh-php56-php-pecl-memcache
yum install java-1.8.0-openjdk

MySQL

yum install rh-mysql56 rh-php56-php-mysqlnd
source scl_source enable rh-mysql56
echo -e '#!/bin/bash\nsource scl_source enable rh-mysql56' > /etc/profile.d/rh-mysql56.sh
ln -s /{usr/lib/systemd/system/rh-mysql56-,etc/systemd/system/}mysqld.service
systemctl daemon-reload
systemctl enable mysqld && systemctl start $_
mysqladmin create ezplatform

Composer

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

eZ Platform Demo

curl -LO https://fossies.org/linux/www/ezplatform-1.6.0.tar.gz
curl -L https://github.com/ezsystems/ezplatform-demo/archive/v1.6.0.tar.gz -o ezplatform-1.6.0-demo.tar.gz
mkdir /var/www/ezplatform
tar xf ezplatform-1.6.0.tar.gz --strip=1 -C /var/www/ezplatform
tar xf ezplatform-1.6.0-demo.tar.gz --strip=1 -C /var/www/ezplatform
cd /var/www/ezplatform
yum install git unzip
composer install
php app/console ezplatform:install demo
php app/console assetic:dump --env=prod web
cp /var/www/ezplatform/doc/apache2/vhost.template /opt/rh/httpd24/root/etc/httpd/conf.d/ezplatform.conf
sed -i /opt/rh/httpd24/root/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/#//';
chown -R apache:apache /var/www/ezplatform
chcon -R -t httpd_sys_script_rw_t /var/www/ezplatform/app/{config,logs,cache}
chcon -R -t httpd_sys_script_rw_t /var/www/ezplatform/web/var/
httpd -t
systemctl restart httpd

管理画面

http://192.168.56.101/ez
(login: admin, default password: publish)

  1. http://stackoverflow.com/questions/31166979/how-to-force-httpd-to-use-rh-php56-from-red-hat-software-collections/31402611#31402611

0
0
0

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
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?