2016-10-22 11:53:30 +02:00
|
|
|
# Practice Symfony
|
|
|
|
|
|
|
|
<http://symfony.com/>
|
|
|
|
|
|
|
|
## 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
|
|
|
|
|
|
|
|
<http://symfony.com/doc/current/reference/requirements.html>
|
|
|
|
|
|
|
|
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 :
|
|
|
|
|
2016-12-29 15:26:14 +01:00
|
|
|
~~~
|
2016-10-22 11:53:30 +02:00
|
|
|
$ php bin/symfony_requirements
|
2016-12-29 15:26:14 +01:00
|
|
|
~~~
|