Preparation:
1. Set up PHP
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:
a. Uncomment the following line:
b. Locate php.ini file. By default it should be in the following directory:
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:
d. Increase memory_limit
value for eZ Platform:
2. Set up virtual host and start Apache2
a. Edit Apache2 configuration file:
b. Uncomment and modify the following lines:
c. Comment the following line:
d. Add the following line to the file:
3. Start Apache2 daemon using Command Line
4. Install Composer globally
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.
5. Create a new database for eZ Platform
Create new database (you can substitute ez1
with the database name you want to use):
6. Install additional requirements for eZ Platform
a. Install PEAR/PECL extension:
b. Edit php.ini
and add following line:
c. Enable opcache extension for PHP (suggested, but not required) by adding:
Installation:
7. Install eZ Platform
a. Download archive from share.ez.no/downloads. Extract the eZ Platform archive to a directory, then execute post install scripts.
b. Copy the virtual host template:
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:
f. Install required dependencies using Composer:
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:
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.