A simple VDM clone :)
- PHP, FPM suggested
- Apache or NGinx
- MySQL/MariaDB
Symfony app is supposed to be clone in /var/www/<sf_app>
Ensure php-fpm package is installed. Use either a TCP/IP socket or UNIX socket (listen key in default pool www.conf), this will impact web server configuration. Note that conf with Apache is way simpler with TCP/IP socket.
Enable module proxy_fastcgi (to communicate with PHP-FPM). Ensure module rewrite is enabled (to get clean URLs).
Refer to http://symfony.com/doc/current/cookbook/configuration/web_server_configuration.html#nginx
Change rights: https://symfony.com/doc/current/book/installation.html#book-installation-permissions
Install vendors:
$ composer install
Adjust DB settings accordingly.
Create DB + schema:
$ ./bin/console doctrine:database:create
$ ./bin/console doctrine:schema:update --force
Load fixtures (init data in DB) :
$ ./bin/console doctrine:fixtures:load
There are admin/password and user/password users ready to use. To create new users:
$ ./bin/console app:add-user
Application is provided in both FR et EN. Translation messages are provided, default locale must be specified in config.yml
BUT
Make sure that the correct validation regexp is consistent in services.yml
That's to say, with fr locale, anecdote description must end with "bref, ... tout donné !"