* Installation: --------------- * Symfony: We suppose the Symfony framework is already installed with the composer. $ git clone https://git.piment-noir.org/Project_proches_de_moi-server.git /path/to/apache_document_root $ cd /path/to/apache_document_root $ composer install $ cp .env.dist .env $ vi .env edit the line DATABASE_URL=mysql://db_user:db_password@127.0.0.1:3306/db_name to make it match your database installation $ php/console bin/console doctrine:database:create * Apache: Virtual host configuration: ServerName domain.tld DocumentRoot /path/to/apache_document_root/public AllowOverride None Order Allow,Deny Allow from All Require all granted Options -MultiViews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php [QSA,L] # uncomment the following lines if you install assets as symlinks # or run into problems when compiling LESS/Sass/CoffeeScript assets # # Options FollowSymlinks # # optionally disable the RewriteEngine for the asset directories # which will allow apache to simply reply with a 404 when files are # not found instead of passing the request into the full symfony stack RewriteEngine Off ErrorLog ${APACHE_LOG_DIR}/domain.tld_error.log CustomLog ${APACHE_LOG_DIR}/domain.tld_access.log combined # optionally set the value of the environment variables used in the application #SetEnv APP_ENV prod #SetEnv APP_SECRET #SetEnv DATABASE_URL "mysql://db_user:db_pass@host:3306/db_name" * REST resources: Open the tests/curl.txt file for an overview.