Side note for Linux users: One common issue is that the app/cache and app/logs directories must be writable both by the web server and the command line user. if your web server user is different from your command line user, you can run the following commands just once in your project to ensure that permissions will be setup properly. Change www-data to your web server user: 1. Using ACL on a system that supports chmod +a
$ rm -rf app/cache/*
$ rm -rf app/logs/*
$ sudo chmod +a "www-data allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs
$ sudo chmod +a "`whoami` allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs
2. Using Acl on a system that does not support chmod +a Some systems don't support chmod +a, but do support another utility called setfacl. You may need to enable ACL support on your partition and install setfacl before using it (as is the case with Ubuntu), like so:
$ sudo setfacl -R -m u:www-data:rwx -m u:`whoami`:rwx app/cache app/logs
$ sudo setfacl -dR -m u:www-data:rwx -m u:`whoami`:rwx app/cache app/logs
- /eZ/Publish/5/root/: The file system path where eZ Publish 5 is installed in, like "/home/myuser/www/" or "/var/sites/ezpublish/"
- /eZ/Publish/5/legacy/root/:
- "Legacy" aka "Legacy Stack" refers to the eZ Publish 4.x installation which is bundled with eZ Publish 5 inside "app/ezpublish_legacy/"
- The Legacy root is thus the root eZ Publish 5 path + the sub path mentioned above, example: "/var/sites/ezpublish/app/ezpublish_legacy/"
-
Extract the archive
For upgrading from eZ Publish Enterprise Edition 4.7: Upgrade documentation can be found on http://doc.ez.no/eZ-Publish/Upgrading/Upgrading-to-5.0/Upgrading-from-4.7-to-5.0
-
You can get eZ Publish using GIT with the following command:
bash git clone https://github.com/ezsystems/ezpublish5.git
-
Get eZ Publish Legacy
bash cd /eZ/Publish/5/root/app git clone https://github.com/ezsystems/ezpublish.git ezpublish_legacy
-
Optional Upgrade eZ Publish Community Project installation
-
Start from / upgrade to latest eZ Publish CP installation.
-
Follow normal eZ Publish upgrade procedures for upgrading the distribution files and moving over extensions.
-
-
Install the dependencies with Composer.
Download composer and install dependencies by running: ```bash cd /path/to/ezpublish5/ curl -s http://getcomposer.org/installer | php php composer.phar install ```
-
Configure:
-
Copy
app/config/parameters.yml.dist
toapp/config/parameters.yml
-
Edit
app/config/parameters.yml
and configureezpublish.api.storage_engine.legacy.dsn
: DSN to your database connection (only MySQL and PostgreSQL are supported at the moment)ezpublish.siteaccess.default
: Should be a valid siteaccess (preferably the same than[SiteSettings].DefaultAccess
set in yoursettings/override/site.ini.append.php
-
-
Dump your assets in your webroot:
php app/console assets:install --symlink web php app/console ezpublish:legacy:assets_install
The first command will symlink all the assets from your bundles in the
web/
folder, in abundles/
sub-folder.The second command will symlink assets from your eZ Publish legacy directory and add wrapper scripts around the legacy front controllers (basically
index_treemenu.php
,index_rest.php
andindex_cluster.php
) -
Optional - Configure a VirtualHost:
<VirtualHost *:80> ServerName your-host-name DocumentRoot /path/to/ezpublish5/web/ <Directory /path/to/ezpublish5/> Options FollowSymLinks order allow,deny allow from all </Directory> RewriteEngine On RewriteRule ^/api/ /index_rest.php [L] # If using cluster, uncomment the following two lines: #RewriteRule ^/var/([^/]+/)?storage/images(-versioned)?/.* /index_cluster.php [L] #RewriteRule ^/var/([^/]+/)?cache/(texttoimage|public)/.* /index_cluster.php [L] RewriteRule ^/var/([^/]+/)?storage/.* - [L] RewriteRule ^/var/([^/]+/)?cache/(texttoimage|public)/.* - [L] RewriteRule ^/design/([^/]+/)?(stylesheets|images|javascript)/.* - [L] RewriteRule ^/share/icons/.* - [L] RewriteRule ^/extension/[^/]+/design/[^/]+/(lib|stylesheets|images|javascripts?)/.* - [L] RewriteRule ^/packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.* - [L] RewriteRule ^/packages/styles/.+/thumbnail/.* - [L] RewriteRule ^/var/storage/packages/.* - [L] RewriteRule ^/favicon\.ico - [L] RewriteRule ^/robots\.txt - [L] # Following rule is needed to correctly display assets from bundles RewriteRule ^/bundles/ - [L] RewriteRule .* /index.php </VirtualHost>
-
Optional, Development ONLY - Take advantage of PHP 5.4 build-in web server:
php app/console server:run localhost:8000
The command above will run the built-in web server on localhost, on port 8000. You will have access to eZ Publish by going to
http://localhost:8000
from your browser.
-
Run Setup wizard:
There is currently a know issue in eZ Publish 5's Symfony based stack when it comes to Setup wizard, so you will need to execute it directly from the /eZ/Publish/5/legacy/root/ by exposing that as a internal wirtual host as well. This can be done in same way as described on doc.ez.no for Virtual host setups where "eZ Publish" path will be: /eZ/Publish/5/legacy/root/
You might get the following error:
Retrieving remote site packages list failed. You may upload packages manually.
Remote repository URL: http://packages.ez.no/ezpublish/5.0/5.0.0[-alpha1]/
This should only happen when you install from GIT or use pre realease packages
To fix it, tweak your settings/package.ini
by overriding it with a valid version:
[RepositorySettings]
RemotePackagesIndexURL=http://packages.ez.no/ezpublish/4.7/4.7.0