How to install Ibexa Community version

Context

The main contexts are the change of strategy from Ibexa for eZ Platform and the lack of documentation for the installation of the OpenSource version of Ibexa Content.

Prerequisites

PHP version 7.3, composer 2.x, Symfony client, Docker and Docker-Compose

If you don't have composer, install it: https://getcomposer.org/download/

The paths of the folders containing PHP, Symfony client and Composer must be in the PATH environment variable of your operating system.

Installation steps

Step 1

Open a terminal window and navigate to your project root folder 
With composer, create a new project from ibexa/oss-skeleton  :

   1
2
3composer create-project ibexa/oss-skeleton ibexa_website 
4   

Result:

 

Step 2

Configure the database in the .env file with docker compose

You can start by creating a docker-compose file (docker-compose.yml ) and adding the following code in your file

   1
2
3version: '3.4'
4services:
5  mysql:
6    image: mariadb:10.3
7    environment:
8      MYSQL_ROOT_PASSWORD: nopassword
9      MYSQL_DATABASE: ibexa
10    ports:
11      - "3306:3306"
12    volumes:
13      -  mysqldata:/var/lib/mysql
14volumes:
15  mysqldata: 
16   

Then, in your .env file, uncomment the line DATABASE_URL with mysql and replace this line with the following:

DATABASE_URL="mysql://root:nopassword@127.0.0.1:3306/ibexa?serverVersion=mariadb-10.3.0"

Finally, on your terminal, run the following command to create your database:

   1
2
3docker-compose up -d 
4   

Result:

 

Step 3

Execute the database initialization command

   1
2
3php bin/console ibexa:install clean 
4   

Result:

 

Step 4

Execute the GraphQL schema initialization command

   1
2
3php bin/console ibexa:graphql:generate-schema 
4   

Result:

 

Step 5

Launch the web server with Symfony Client and go to the URL of the web page (https://127.0.0.1:8000)

   1
2
3symfony serve 
4   

You should see a web interface like this:

 

Conclusion

We changed our strategy from ezPlatform v3 to Ibexa Content v3.3.
Now you have some pretty handy and self-explanatory documentation for installing an open source version of Ibexa Content.
Have fun !