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 |
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. |
Still same problem is there
|
Quote:
|
Quote:
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. |