diff --git a/PracticeSymfony.md b/PracticeSymfony.md new file mode 100644 index 00000000..78c11340 --- /dev/null +++ b/PracticeSymfony.md @@ -0,0 +1,32 @@ +# Practice Symfony + + + +## Prérequis + +### Apache + +Symfony contient des fichiers `.htaccess` avec des directives DirectoryIndex, Options -MultiViews, Rewrite*, Deny. + +La configuration Apache du VirtualHost doit donc contenir au minimum : + +~~~{.apache} +AllowOverride Limit FileInfo Indexes Options=All,MultiViews +~~~ + +### PHP + + + +Le paquet **php5-json** doit être installé. + +Il faut indiquer le paramètre `date.timezone = "Europe/Paris"` dans les fichiers de configuration PHP : + +- `/etc/php5/apache2/php.ini` +- `/etc/php5/cli/php.ini` + +Pour tester la configuration PHP, des tests peuvent être lancés ainsi : + +~~~{.bash} +$ php bin/symfony_requirements +~~~ \ No newline at end of file