LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Help Me. (https://www.linuxquestions.org/questions/linux-server-73/help-me-543961/)

naiknitin2011 04-07-2007 12:18 AM

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

btmiller 04-07-2007 02:16 AM

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.

naiknitin2011 04-07-2007 06:50 AM

Still same problem is there

acid_kewpie 04-07-2007 08:01 AM

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

naiknitin2011 04-27-2007 05:39 AM

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


All times are GMT -5. The time now is 07:24 AM.