Install via command

Before starting, make sure your configuration is correct : open a command shell and run the program check.php in the directory app : php app/check.php


Change your file permission or PHP configuration in case of permission error or missing PHP requirement :


Create a database on your server then change these parameters in the file /myddleware/app/config/parameters.yml:

  • database_driver: pdo_mysql
    • Don’t change the driver pdo_mysql
  • database_host:
    • It is “localhost” if the database is on the server where you have installed Myddleware
  • database_port:
  • database_name:
  • database_user:
  • database_password:
  • secret:
    • You have to create a random string of 32 characters (more info here)


Then, go to your Myddleware directory and run these commands :

Clear the cache in case you have already tried to install Myddleware

  • php app/console cache:clear --env=prod

Generate the file Myddleware needs to run (more info here)

  • php app/console assetic:dump --env=prod --no-debug

Generate web bundles files

  • php app/console assets:install web --env=prod

Create tables into your database

  • php app/console doctrine:schema:update --force --env=prod

Add data in the created tables

  • php app/console doctrine:fixtures:load --append --env=prod

Create the user profile to log into Myddleware. Change the values myddleware_username, myddleware_user_email, myddleware_password into your own parameters

  • php app/console fos:user:create myddleware_username myddleware_user_email myddleware_password --env=prod

Add the admin role to the user you have just created

  • php app/console fos:user:promote myddleware_username ROLE_ADMIN --env=prod

Make sure that these permissions are correctly set up :

  • The following directories have to be writable by the web user
    • myddleware/app/cache/
    • myddleware/app/logs/
  • The following files have to be writable by the web user :
    • myddleware/app/config/myddleware.yml
    • myddleware/app/config/public/parameters_public.yml
    • myddleware/app/config/public/parameters_smtp.yml

For security reasons, please delete the installation file : <path_to_myddleware>/web/installMyddleware.php

We advise you to set up your web server, you will find help here.

You can now access Myddleware with this URL :