我正在尝试在命令行上安装 PEAR,但没有任何反应。这是我尝试过的:
wget http://pear.php.net/go-pear.phar
php go-pear.phar
还尝试suhosin.executor.include.whitelist = phar
在 suhosin.ini 中启用,但随后我的系统日志中出现下一个错误:
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-entry。
有人可以帮忙吗?