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  :

   

composer create-project ibexa/oss-skeleton ibexa_website 
   

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

   

version: '3.4'
services:
  mysql:
    image: mariadb:10.3
    environment:
      MYSQL_ROOT_PASSWORD: nopassword
      MYSQL_DATABASE: ibexa
    ports:
      - "3306:3306"
    volumes:
      -  mysqldata:/var/lib/mysql
volumes:
  mysqldata: 
   

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:

   

docker-compose up -d 
   

Result:

 

Step 3

Execute the database initialization command

   

php bin/console ibexa:install clean 
   

Result:

 

Step 4

Execute the GraphQL schema initialization command

   

php bin/console ibexa:graphql:generate-schema 
   

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)

   

symfony serve 
   

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 !