Sometimes when you need to install PEAR, you do not want to do it globally, an easy way to do this is what I show below.
How do I do?
To carry out the task we need the file phar that contains the PEAR package manager. You can download with wget, just have to open a terminal and run the following command.
wget http://pear.php.net/go-pear.phar
If you execute the command
$ php go-pear.phar
Really nothing happens, only when you look in /var/log/syslog you can see what really happens, Suhosin indicating the error occurred.
Why?
By default the version of PHP that has Debian provides built the Suhosin patch which adds security to the interpreter, but results in slight discomfort for developers.
How I can fix?
Really is very easy, we just have to tell the PHP interpreter to ignore the directive only for this run and run the phar indicated:
$ php -d suhosin.executor.include.whitelist="phar" go-pear.phar
And that’s it, easy right?
I hope it’s useful for you
Best Regards!!