I've been trying for hours and googling everywhere to no avail to get Pear installed on a SUSE linux server, I'm stuck at the error:
我一直在尝试几个小时,谷歌搜索到无法在SUSE Linux服务器上安装Pear,我坚持错误:
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 '/usr/bin/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 '/usr/bin/go-pear.phar', line 1236)
ALERT - 脚本试图通过将其设置为负值-1字节来禁用memory_limit,这是不允许的(攻击者'REMOTE_ADDR未设置',文件'/usr/bin/go-pear.phar',第1128行)ALERT - 包含文件名('phar://go-pear.phar/index.php')是一个不允许的URL(攻击者'REMOTE_ADDR未设置',文件'/usr/bin/go-pear.phar',第1236行)
I've been installing it with the commands:.
我一直用命令安装它:
wget http://pear.php.net/go-pear.phar
php go-pear.phar
wget http://pear.php.net/go-pear.phar php go-pear.phar
Any suggestions? Thanks!
有什么建议?谢谢!
2 个解决方案
#1
1
That error is coming from suhosin. You could temporarily disable it in php.ini
.
这个错误来自suhosin。您可以在php.ini中暂时禁用它。
#2
2
I found php -n go-pear.phar
also works w/o requiring root for editing the php.ini
我发现php -n go-pear.phar也适用于需要root来编辑php.ini
#1
1
That error is coming from suhosin. You could temporarily disable it in php.ini
.
这个错误来自suhosin。您可以在php.ini中暂时禁用它。
#2
2
I found php -n go-pear.phar
also works w/o requiring root for editing the php.ini
我发现php -n go-pear.phar也适用于需要root来编辑php.ini