[SOLVED] PEAR problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Lars79
Forum Newbie
Posts: 12
Joined: Sat Nov 27, 2004 1:57 pm

PEAR problem

Post 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
Lars79
Forum Newbie
Posts: 12
Joined: Sat Nov 27, 2004 1:57 pm

Post 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.
Post Reply