Message-ID: <2108785596.3660.1485854692585.JavaMail.confluence@ip-10-127-227-164> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_3659_2086164408.1485854692585" ------=_Part_3659_2086164408.1485854692585 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html Manual Installation on Windows

Manual Installation on Windows

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 te= rminal editor like vi or nano, or a simple text editor. file name is httpd.conf and by default it is located in this directory:<= /p>

=20
C:\Program Files\Apache Software Foundation\Apache2.2\conf
=20

a. Uncomment the following line:

=20
LoadModule php5_module libexec/apache2/libphp5.so
=20

b. Locate php.ini file. By default it should be in the following directo= ry:

=20
C:\program files\php\php.ini
=20

c. Open the file in a text editor and locate date.timezone and pdo_mysql.default_socket and provide t= hem with values as in the example below:

=20
date.timezone =3D "Europe/Warsaw"
pdo_mysql.default_socket =3D /tmp/mysql.sock
=20

d. Increase memory_limit value for eZ Platform:

=20
memory_limit =3D 4G
=20

2.= Set up virtual host and start Apache2

a. Edit Apache2 configuration file:

=20
c:\Program Files\Apache Software Foundation\Apache2.2\conf
=20

b. Uncomment and modify the following lines:

=20
LoadModule vhost_alias_module libexec/apache2/mod_vhost_alias.so
LoadModule rewrite_module libexec/apache2/mod_rewrite.so
=20

c. Comment the following line:

=20
Include /private/etc/apache2/extra/httpd-vhosts.conf
=20

d. Add the following line to the file:

=20
Include /private/etc/apache2/users/*.conf
=20

 

3. Start Apache2 daemon using Command Line

=20
httpd.exe
=20

4. Install= Composer globally

Composer is a dependency manager that allows you to install packages dir= ectly in the project. It is also checking all packages' versions on a regul= ar basis to make sure they are up-to-date and to avoid inconsistencies.

=20
curl -sS https://getcomposer.org/installer | php
php -d memory_limit=3D-1 composer.phar
=20

5.= Create a new database for eZ Platform

Create new database (you can substitute ez1 with = the database name you want to use):

=20
mysql -uroot -ppassword -e "CREATE DATABASE ez1"
=20

6. Install additional requirements for eZ Platform

a. Install PEAR/PECL extension:

=20
cd c:\program files\php\php.ini
curl -O https://pear.php.net/go-pear.phar
php -d detect_unicode=3D0 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
=20

b. Edit php.ini and add following line:

=20
extension=3Dintl.so
=20

c. Enable opcache extension for PHP (suggested, but not required) by add= ing:

=20
zend_extension=3Dopcache.so
=20

Installation:


7. Install e= Z Platform

a. Download archive from share.ez.no/download= s. Extract the eZ Platform archive to a directory, then execu= te post install scripts.

=20
cd /<directory>/
php -d memory_limit=3D-1 composer.phar run-script post-install-cmd
=20

 

b. Copy the virtual host template:

=20
COPY c:\Program Files\Apache Software Foundation\Apache2.2\vhost.t=
emplate c:\Program Files\Apache Software Foundation\Apache2.2\users/ez1.lh.=
conf
=20

d. Modify virtual host file vhost.template. <= /p>

Replace the ---USER_ID--- variable (used in lines= 10 and 17) with your current user ID. Use whoami co= mmand 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:

=20
httpd.exe -k restart
=20

f. Install required dependencies using Composer:

=20
composer install
=20

When Composer asks you for the token you must log in to your GitHub acco= unt and edit your profile. Go to the Personal access tokens link and Genera= te new token with default settings. Be aware that the token will be shown o= nly once, so do not refresh the page until you paste the token into Compose= r prompt. This operation is performed only once when you install eZ Platfor= m for the first time.

h. Install eZ Platform:

=20
php app/console ezplatform:install clean
=20


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 P= latform doesn=E2=80=99t include DemoBundle anymore.

------=_Part_3659_2086164408.1485854692585--