Configure Symfony2

I am trying to create a sample Symfony2 project as shown here http://symfony.com/doc/current/quick_tour/the_big_picture.html

and after accessing config.php I have the following:

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

I added the following:

suhosin.executor.include.whitelist="phar"

in php.ini, but config.php still shows the same message.

+5
source share
5 answers

1) Check that you have edited the correct php.ini, usually the PHP installation contains several php.ini (one for CGI, one for CLI, one for APACHE2). Take a look /etc/php5, for example.

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

3) : [Solved] symfony 2 : "phar" suhosin.executor.include.whitelist php.ini *.

,

sudo apt-get install php5-suhosin
+6

.

, , skonsoft , , suhosin, "phar" php.ini OR conf.d/suhosin.ini

,

, libxml2

.

libxml2.

, /vendor/symfony/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php libxml2-2.6.22. 2.8.0 - PHP , libxml2.

, -!

Debian 6

+1

, :

/etc/init.d/php-fcgi-vhost-name restart

0

suhosin php,

sudo apt-get install php5-suhosin

cli suhosin.ini, php.ini, debian, :/etc/php5/cli/conf.d/suhosin.ini

suhosin.executor.include.whitelist="phar"
0

cPanel. :

  • suhosin cPanel script/scripts/phpextensionmgr PHPSuHosin;/scripts/phpextensionmgr install PHPSuHosin

  • , -

find . -name \*.gcno -o -name \*.gcda | xargs rm -f
find . -name \*.lo -o -name \*.o | xargs rm -f
find . -name \*.la -o -name \*.a | xargs rm -f 
find . -name \*.so | xargs rm -f
find. -name .libs -a -type d | xargs rm -rf
find. -name \ *. 1 | xargs rm -f
rm -f libphp.la modules / * libs / *
SuHosin extension, version suhosin-0.9.36, activated for php version 5.4
  • Then add
     suhosin.executor.include.whitelist = "phar"
    to the file /usr/local/lib/php.ini
  • Restart apache

It must be fixed .. !!!

0
source

All Articles