LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 01-07-2005, 05:15 PM   #1
Lars79
Member
 
Registered: Jan 2004
Distribution: Slackware
Posts: 96

Rep: Reputation: 15
PEAR problem


Hello,

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

Code:
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:
pear search <package>
I get a message like

Code:
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 on an Apache 1.3.33 and a default PEAR configuration. The following PEAR packages are installed:
Code:
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
 
Old 01-07-2005, 08:11 PM   #2
tamoneya
Member
 
Registered: Jan 2005
Location: MA
Distribution: Ubuntu 7.10
Posts: 558

Rep: Reputation: 30
sounds to me like your program is running out of memory. Maybe you should try to make your program more efficient or try to alter the memory alotted to PEAR
 
Old 01-08-2005, 06:38 AM   #3
Lars79
Member
 
Registered: Jan 2004
Distribution: Slackware
Posts: 96

Original Poster
Rep: Reputation: 15
Thanks for your reply. But I have no idea why a default configured PEAR runs out of memory. I think it must be a configuration thing. And PEAR shouldn't need 8 MB for a simple pear search <package>.
 
Old 01-09-2005, 04:15 PM   #4
Lars79
Member
 
Registered: Jan 2004
Distribution: Slackware
Posts: 96

Original Poster
Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mandrake 10.1 Apache2 with PHp and pear problem Jediman Linux - Software 10 04-19-2005 03:35 PM
Pear PC and FC3 hlinux Fedora 0 12-26-2004 03:55 PM
php pear problem craddy Linux - Software 4 11-09-2004 08:25 PM
pear problem budyoke Linux - Software 1 07-29-2004 12:02 PM
PEAR will not install Moebius01 Mandriva 1 11-27-2003 03:07 AM


All times are GMT -5. The time now is 05:08 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration