Cant install composer?

January 12, 2014 9.1k 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.
1 Answer
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.
Have another answer? Share your knowledge.