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

contab_1

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

contab_2

Create a database on your server then change these parameters in the file /myddleware/app/config/myddleware.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 tables created

  • 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

 

Now make sure that these permissions are correctly set up :

  • Directory myddleware/app/cache/ has to be writable by the web user
  • Directory myddleware/app/logs/ has to be writable by the web user
  • File myddleware/app/config/parameters.yml has to be writable by the web user

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

You can now access Myddleware with this URL :

http://<path_to_myddleware>/web/app.php

Categories: