Message-ID: <42098406.3652.1485854659898.JavaMail.confluence@ip-10-127-227-164> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_3651_115616708.1485854659898" ------=_Part_3651_115616708.1485854659898 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Download from the official MySQL webpage is strongly recommended.= p>
This step requires the modification of two files: Apache2 configuration =
file and php.ini
.
These files can be edited using a termina=
l editor like vi or nano, or a simple text editor such as TextEdit or Atom.=
a. Edit Apache2 configuration file:
sudo vi /private/etc/apache2/httpd.conf=20
b. Uncomment the following line:
LoadModule php5_module libexec/apache2/libphp5.so=20
c. If you can't locate the php.ini
file on your machine, it=
's probably under php.ini.default
. Create a new php.ini<=
/code> file based on defaults:
sudo cp /private/etc/php.ini.default /private/etc/php.ini=20
d. Open the file in a text editor (in this example, in vi):
sudo vi /private/etc/php.ini=20
e. Locate date.timezone
and pdo_mysql.default_socket<=
/code> and provide them with values as in the example below:
date.timezone =3D "Europe/Warsaw" pdo_mysql.default_socket =3D /tmp/mysql.sock=20
f. Increase memory_limit
value for eZ Platform:
memory_limit =3D 4G=20
a. Edit Apache2 configuration file:
sudo vi /private/etc/apache2/httpd.conf=20
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=20
c. Comment the following line:
Include /private/etc/apache2/extra/httpd-vhosts.conf=20
d. Add the following line to the file:
Include /private/etc/apache2/users/*.conf=20
e. Change permissions for virtual hosts storage directory (775):
sudo chmod -R 775 /private/etc/apache2/users sudo chmod 775 /private/etc/apache2=20
sudo apachectl start=20
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.
curl -sS https://getcomposer.org/installer | php mkdir -p /usr/local/bin php -d memory_limit=3D-1 composer.phar=20
Create new database (you can substitute ez1
with the d=
atabase name you want to use):
/usr/local/mysql/bin/mysql -u root -e 'create database ez1;'= =20
Brew is a package manager for OS X, if you haven't used it already you a= re going to love what it does!
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/i= nstall/master/install)"=20
a. Install PEAR/PECL extension:
cd /usr/lib/php curl -O https://pear.php.net/go-pear.phar php -d detect_unicode=3D0 go-pear.phar sudo php install-pear-nozlib.phar sudo pear channel-update pear.php.net sudo pecl channel-update pecl.php.net sudo pear upgrade-all sudo pear config-set auto_discover 1=20
b. Install autoconf:
brew install autoconf=20
c. Install intl:
brew install icu4c sudo pecl install intl=20
d. The path to the ICU libraries and headers is: /usr/local/opt/ic=
u4c/
.
Edit /private/etc/php.ini
and add following line:
extension=3Dintl.so=20
e. Enable opcache extension for PHP (suggested, but not required) by add= ing:
zend_extension=3Dopcache.so=20
a. Go to the folder with your installation and set up directory permissi= ons:
chmod 775 ../ez1.lh chmod 775 ../../workspace chmod 775 ../../../Documents=20
b. Download archive from share.ez.no/download= s. Extract the eZ Platform archive to a directory, then execu= te post install scripts.
cd /<directory>/ php -d memory_limit=3D-1 composer.phar run-script post-install-cmd=20
c. Copy the virtual host template:
sudo cp doc/apache2/vhost.template /private/etc/apache2/users/ez1.= lh.conf=20
d. Edit the new virtual host:
sudo vi /private/etc/apache2/users/ez1.lh.conf=20
e. 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 effecti=
ve user ID of the currently logged user. If you want to use the default vir=
tual host template (delivered with eZ Platform package) all you have to do =
is set up lines 7, 8, 9, 10, 17, 25 and 33:
f. Restart Apache 2 server:
sudo apachectl restart=20
g. Install required dependencies using Composer:
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. Change directory permissions:
rm -rf app/cache/* app/logs/* sudo chmod +a "_www allow delete,write,append,file_inherit,directory_inheri= t" app/{cache,logs,config} web sudo chmod +a "`whoami` allow delete,write,append,file_inherit,directory_in= herit" app/{cache,logs,config} web=20
i. Install eZ Platform:
php app/console ezplatform:install clean=20
You will be able to see your page under http://ez1.lh (or the address yo=
u chose in preparation). Please note that a clean install of eZ Platform do=
esn=E2=80=99t include DemoBundle anymore.
a. Install PHP 5.6 with opcache extension:
brew install -v homebrew/php/php56 chmod -R ug+w $(brew --prefix php56)/lib/php brew install -v php56-opcache=20
b. Add proper date.timezone
settings:
sudo vi /usr/local/etc/php/5.6/php.ini=20
c. Uncomment and modify:
date.timezone =3D "Europe/Warsaw" (=E2=80=A6) Increase memory_limit value for eZ Platform: memory_limit =3D 4G (=E2=80=A6)=20
d. Disable errors showing:
display_errors =3D Off=20
e. Change default PHP parser used by Apache:
sudo vi /private/etc/apache2/httpd.conf=20
f. Find and comment the following line:
# LoadModule php5_module libexec/apache2/libphp5.so=20
g. Add below:
LoadModule php5_module /usr/local/opt/php56/libexec/apache2/libphp= 5.so=20
e. Install intl extension for PHP 5.6:
brew install php56-intl=20
f. Restart Apache:
sudo apachectl restart=20