Page 1 of 1

PEAR problem

Posted: Sun Jan 09, 2005 9:31 am
by Lars79
Hello,

I have a little problem with PEAR. I'm running PHP in safe mode, so I get a message like

Code: Select all

WARNING: running in safe mode requires that all files created be the same uid as the current script.  PHP reports this script is uid: 0, and current user is: root
after nearly every command. Nonetheless most stuff seems to work. But whenever I run

Code: Select all

pear search <package>
I get a message like

Code: Select all

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 3735552 bytes) in /usr/lib/php/XML/RPC.php(750) : eval()'d code on line 730
Allowed memory size of 8388608 bytes exhausted (tried to allocate 0 bytes)
Disabeling safe mode didn't change anything concerning the fatal error. The property max_execution_time is set to 30 seconds which should be enough. I have no idea what the problem is. I'm running PHP 5.0.3, Apache 1.3.33 and a default PEAR configuration on a Linux Slackware 10 box. The following PEAR packages are installed:

Code: Select all

Installed packages:
===================
Package        Version State
Archive_Tar    1.2     stable
Console_Getopt 1.2     stable
PEAR           1.3.4   stable
XML_RPC        1.1.0   stable
Maybe someone could help me with that. It would also be great if someone knew howto get PEAR working better with safe mode enabled. I noticed that there is a safe_mode_include_dir property in the php.ini file. Maybe only some directories need to be specified there...

Thanks a lot,
Lars

Posted: Mon Jan 10, 2005 8:48 am
by Lars79
Problem solved. After setting the max_execution_time to 120 seconds and the memory_limit to 15 MB in the php.ini, PEAR works fine.