LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-07-2007, 12:18 AM   #1
naiknitin2011
LQ Newbie
 
Registered: Apr 2007
Posts: 7

Rep: Reputation: 0
Help Me.


Hi,
I am new member of linuxquestions although i am continious reader of this site. I am comparatively new to the linux. By the way by reading some books and Q and A's of this site i have successfully developed a web and mail server but in mail server the mails can be accessed or send through outlook on client machine but when I tried to access the same by using say www.abc.com/webmail it will give following error.

Fatal error: Allowed memory size of 9437216 bytes exhausted at (null):0 (tried to allocate 4097 bytes) in /usr/share/squirrelmail/functions/imap_general.php on line 47

in imap_general.php on corrosponding line squimap_fgets function present

function squimap_fgets($imap_stream) {
$read= '';
$buffer=4096;
$results = '';
while(strpos($read,"\n")==false) {
if(!($read=fgets($imap_stream,$buffer))) {
break;
}
$results=$read;
}
return $results;
}


Kindly help me in this case


naiknitin_2011@yahoo.com
 
Old 04-07-2007, 02:16 AM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
1. Please use better titles than "Help me." Your title conveys no information at all about the question you are asking and many LQ readers will ignore your thread for that reason.

2. The problem is that the PHP script is exceeding the allowed amount of memory. PHP limits the amount of memory a script can use to prevent buggy scripts and/or malicious types from exhausting all the memory on the system. This is set by the "memory_limit" directive in php.ini (php.ini is usually in /etc but it various by distro -- try "locate php.ini" if you can't find it). It looks like it's set at about 9 MB now so you can probably bump it up a bit pretty safely. Once you edit the file, as a general rule you must restart Apache tro get the change to take effect.
 
Old 04-07-2007, 06:50 AM   #3
naiknitin2011
LQ Newbie
 
Registered: Apr 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Still same problem is there
 
Old 04-07-2007, 08:01 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Quote:
Originally Posted by naiknitin2011
Still same problem is there
what does that mean??? did you pay attention to the advice given to you? you may benefit from reading this... http://www.catb.org/~esr/faqs/smart-questions.html
 
Old 04-27-2007, 05:39 AM   #5
naiknitin2011
LQ Newbie
 
Registered: Apr 2007
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by acid_kewpie
what does that mean??? did you pay attention to the advice given to you? you may benefit from reading this... http://www.catb.org/~esr/faqs/smart-questions.html

Actually is it necessary to give some additional permissions to directories where mails are stored.
In php.ini file memory_limit is set to 2M
 
  


Reply



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



LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:49 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration