This step requires the modification of two files: Apache2 configuration file and php.ini
.
These files can be edited using a terminal editor like vi or nano, or a simple text editor. file name is httpd.conf and by default it is located in this directory:
C:\Program Files\Apache Software Foundation\Apache2.2\conf |
a. Uncomment the following line:
LoadModule php5_module libexec/apache2/libphp5.so |
b. Locate php.ini file. By default it should be in the following directory:
C:\program files\php\php.ini |
c. Open the file in a text editor and locate date.timezone
and pdo_mysql.default_socket
and provide them with values as in the example below:
date.timezone = "Europe/Warsaw" pdo_mysql.default_socket = /tmp/mysql.sock |
d. Increase memory_limit
value for eZ Platform:
memory_limit = 4G |
a. Edit Apache2 configuration file:
c:\Program Files\Apache Software Foundation\Apache2.2\conf |
b. Uncomment and modify the following lines:
LoadModule vhost_alias_module libexec/apache2/mod_vhost_alias.so LoadModule rewrite_module libexec/apache2/mod_rewrite.so |
c. Comment the following line:
Include /private/etc/apache2/extra/httpd-vhosts.conf |
d. Add the following line to the file:
Include /private/etc/apache2/users/*.conf |
httpd.exe |
Composer is a dependency manager that allows you to install packages directly in the project. It is also checking all packages' versions on a regular basis to make sure they are up-to-date and to avoid inconsistencies.
curl -sS https://getcomposer.org/installer | php php -d memory_limit=-1 composer.phar |
Create new database (you can substitute ez1
with the database name you want to use):
mysql -uroot -ppassword -e "CREATE DATABASE ez1" |
a. Install PEAR/PECL extension:
cd c:\program files\php\php.ini curl -O https://pear.php.net/go-pear.phar php -d detect_unicode=0 go-pear.phar php install-pear-nozlib.phar pear channel-update pear.php.net pecl channel-update pecl.php.net pear upgrade-all pear config-set auto_discover 1 |
b. Edit php.ini
and add following line:
extension=intl.so |
c. Enable opcache extension for PHP (suggested, but not required) by adding:
zend_extension=opcache.so |
a. Download archive from share.ez.no/downloads. Extract the eZ Platform archive to a directory, then execute post install scripts.
cd /<directory>/ php -d memory_limit=-1 composer.phar run-script post-install-cmd |
b. Copy the virtual host template:
COPY c:\Program Files\Apache Software Foundation\Apache2.2\vhost.template c:\Program Files\Apache Software Foundation\Apache2.2\users/ez1.lh.conf |
d. Modify virtual host file vhost.template.
Replace the ---USER_ID---
variable (used in lines 10 and 17) with your current user ID. Use whoami
command to get effective user ID of the currently logged user. If you want to use the default virtual host template (delivered with eZ Platform package) all you have to do is set up lines 7, 8, 9, 10, 17, 25 and 33:
e. Restart Apache 2 server:
httpd.exe -k restart |
f. Install required dependencies using Composer:
composer install |
When Composer asks you for the token you must log in to your GitHub account and edit your profile. Go to the Personal access tokens link and Generate new token with default settings. Be aware that the token will be shown only once, so do not refresh the page until you paste the token into Composer prompt. This operation is performed only once when you install eZ Platform for the first time.
h. Install eZ Platform:
php app/console ezplatform:install clean |
You will be able to see your page under http://ez1.lh (or the address you chose in preparation). Please note that a clean install of eZ Platform doesn’t include DemoBundle anymore.