symfonyphpsuhosinphar

Symfony2 set up


I'm trying to set up sample Symfony2 project as shown here http://symfony.com/doc/current/quick_tour/the_big_picture.html

and after accessing config.php I have this:

Major problems have been detected and must be fixed before continuing:
Add "phar" to suhosin.executor.include.whitelist in php.ini*.

I added this:

suhosin.executor.include.whitelist="phar"

into php.ini, but config.php still show the same message.


Solution

  • 1) Check that you edited the correct php.ini, usually a PHP installation has several php.ini (one for CGI, one for CLI, one for APACHE2). Have a look in /etc/php5 for instance.

    2) Check in phpinfo() that the parameter is taken in account.

    3) Refer to this blog post: [Solved] symfony 2 Major problems Major problems have been detected and must be fixed before continuing: Add “phar” to suhosin.executor.include.whitelist in php.ini*.

    The post suggests ensuring suhosin is installed with

    sudo apt-get install php5-suhosin