/<root-dir>/
: The filesystem path where eZ Platform is installed in. Examples:/home/myuser/www/
or/var/sites/<project-name>/
- cli: command line interface. For Linux/BSD/OS X specific commands, use of
bash
or similar is assumed.
These instructions assume you have technical knowledge and have already installed PHP, web server & a database server needed for this software. For further information on requirements see online doc
Before you start:
- Create Database: Installation will ask you for credentials/details for which database to use, example with mysql:
CREATE DATABASE <database> CHARACTER SET utf8;
Note: Right now installer only supports MySQL and MariaDB, Postgres support will be (re)added in one of the upcoming releases. - Set php.ini memory_limit=256M before running commands below
- Optional: You can also setup Solr to be used by eZ Platform and take note of the url it is accessible on
-
Install via Composer
You can get eZ Platform with Legacy using composer with the following commands:
Note: composer will take its time to download all libraries and when done you will be asked to fill in some settings, including database settings.
```bash $ curl -sS https://getcomposer.org/installer | php $ php -d memory_limit=-1 composer.phar create-project --no-dev crevillo/ezplatform-legacy <directory> [<version>] $ cd /<directory>/ ```
-
*Only for NIX users Setup folder rights:
Follow one of the options given in the eZ Platform install instructions
-
You may now complete the eZ Platform installation with ezplatform:install command, example of use:
$ php -d memory_limit=-1 app/console ezplatform:install --env prod legacy_clean
Note: Password for the generated
admin
user ispublish
, this name and password is needed when you would like to login to backend Platform UI. Future versions will prompt you for a unique password during installation. -
Configure virtual host by either taking examples from Nginx or Apache2 documentation, or by using provided script to generate from templates, for help see
./bin/vhost.sh -h
, example:./bin/vhost.sh --basedir=/var/www/ezplatform \\ --template-file=doc/apache2/vhost.template \\ --host-name=ezplatform \\ | sudo tee /etc/apache2/sites-enabled/ezplatform.conf > /dev/null
Check and adapt the generated vhost config, and then restart Apache or Nginx.
For just local testing without installing a full web-server, while slow you can also run PHP's built-in web server using the following command:
$ php app/console server:run
Note: While far from meant for production use, you can run the command above with
--env=prod
to disable debug.
You can now point your browser to the installation and browse the site. To access the Platform UI backend, use the /ez
URL.
To access the old legacy admin, use the /site_admin
url.