Cant install composer?

Posted January 12, 2014 14.7k views
I get this error. Some settings on your machine make Composer unable to work properly. Make sure that you fix the issues listed below and run this script again: The suhosin.executor.include.whitelist setting is incorrect. Add the following to the end of your `php.ini` or suhosin.ini (Example path [for Debian]: /etc/php5/cli/conf.d/suhosin.ini): suhosin.executor.include.whitelist = phar The php.ini used by your command-line PHP is: /etc/php5/cli/php.ini If you can not modify the ini file, you can also run `php -d option=value` to modify ini values on the fly. You can use -d multiple times. I tried modifying the php.ini file to no success.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
3 answers
Okay I got it whew, unfortunately I had to be the one to face this issue, it would have been cool if it were more common so the tutorial on installing composer covered it. Incase someone else comes across this the error explanation does fix it follow it!

I ran this

//Dont forget to run nano and where it the tutorial for composer we go here nano /etc/php5/fpm/php.ini
//to fix the error we must go nano /etc/php5/cli/php.ini note the cli in the path.

nano /etc/php5/cli/php.ini

at the end of this file, but before ; END;
add the following below

suhosin.executor.include.whitelist = phar

Notes: I am using puTTY and when editing files ^ means ctrl, so scrolling down to the bottom is faster using ctrl + V. Saving is ctrl + X then hit y for yes, then enter.
  • Hi,

    I updated php.ini for suhosin.executor.include.whitelist = phar and i can see the phar value in phpinfo as well,

    But still i see same error. I killed all php processes as well. Please guide. Thanks


I am facing some prob to install prestashop

Add “phar” to suhosin.executor.include.whitelist in php.ini*.

I am using Sentora panel I also change it in php.ini but found same prob.

please help me


El php.ini esta en

CentOS: /etc/php.ini
Ubuntu: /etc/php5/apache2/php.ini