Cant install composer?

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.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

El php.ini esta en

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


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


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! <br> <br>I ran this <br> <br>//Dont forget to run nano and where it the tutorial for composer we go here nano /etc/php5/fpm/php.ini <br>//to fix the error we must go nano /etc/php5/cli/php.ini note the cli in the path. <br> <br>nano /etc/php5/cli/php.ini <br> <br>at the end of this file, but before ; END; <br>add the following below <br> <br>suhosin.executor.include.whitelist = phar <br> <br>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. <br>