在Debian上安装PEAR不起作用

时间:2013-05-23 14:43:15

标签: pear

我正在尝试在命令行上安装PEAR但没有任何反应。这就是我试过的:

wget http://pear.php.net/go-pear.phar
php go-pear.phar

还尝试在suhosin.ini中启用suhosin.executor.include.whitelist = phar,但后来我的syslog中出现了下一个错误:

ALERT - script tried to disable memory_limit by setting it to a negative value -1 bytes
which is not allowed (attacker 'REMOTE_ADDR not set', file '/go-pear.phar', line 1128)

ALERT - Include filename ('phar://go-pear.phar/index.php') is an URL that is not 
allowed (attacker 'REMOTE_ADDR not set', file '/go-pear.phar', line 1236)

我发现在php.ini中禁用suhosin可能会有所帮助,但我在找到的任何php.ini文件中都找不到任何suhosin条目。

有人可以帮忙吗?

1 个答案:

答案 0 :(得分:4)

apt-get install php-pear有效。