Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 20
  1. #1
    Member
    Join Date
    Jun 2004
    Posts
    49

    Default Webmail error - Fatal error: Allowed memory size of 8388608 bytes exhausted (tried t

    Dear Sir,

    Today When I access to my webmail, i saw:


    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 4097 bytes) in /usr/local/cpanel/base/3rdparty/squirrelmail/functions/imap_general.php on line 92

    May I know how to fix it?

    My php.ini memory is already set to 64M

  2. #2
    Member rpmws's Avatar
    Join Date
    Aug 2001
    Location
    back woods of NC, USA
    Posts
    1,858

    Default

    bump up the memory in the whm tweaks for cpanel process see if that helps
    Just keeping my "eye" on things....
    R. Paul Mathews
    RPMWS - diehard cPanel Nutcase

  3. #3
    Member
    Join Date
    Jun 2004
    Posts
    49

    Default

    I update to 256M, but still same problem.

  4. #4
    Member rpmws's Avatar
    Join Date
    Aug 2001
    Location
    back woods of NC, USA
    Posts
    1,858

    Default

    Quote Originally Posted by Cash View Post
    I update to 256M, but still same problem.
    did you restart cpanel ?
    Just keeping my "eye" on things....
    R. Paul Mathews
    RPMWS - diehard cPanel Nutcase

  5. #5
    Member
    Join Date
    May 2007
    Posts
    5

    Default

    I have a client getting a similar error message when she tries to send an attachment using Horde.

    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 1072512 bytes) in /usr/local/cpanel/base/horde/lib/Horde/MIME/Part.php on line 1027

    Other error

    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 456453 bytes) in /usr/local/cpanel/3rdparty/lib/php/Net/SMTP.php on line 788

    One attachment was 1 meg and the other was 162kb.

    I looked under tweaks and did not see a line to increase the memory can you tell me which line I should increase.

    Just as a note...she can send attachments using squirrel mail but not Horde in Horde she gets the error messages.

    Any help is greatly appreciated.

    Tom

  6. #6
    Member rpmws's Avatar
    Join Date
    Aug 2001
    Location
    back woods of NC, USA
    Posts
    1,858

    Default

    Quote Originally Posted by tom5599 View Post
    I have a client getting a similar error message when she tries to send an attachment using Horde.

    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 1072512 bytes) in /usr/local/cpanel/base/horde/lib/Horde/MIME/Part.php on line 1027

    Other error

    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 456453 bytes) in /usr/local/cpanel/3rdparty/lib/php/Net/SMTP.php on line 788

    One attachment was 1 meg and the other was 162kb.

    I looked under tweaks and did not see a line to increase the memory can you tell me which line I should increase.

    Just as a note...she can send attachments using squirrel mail but not Horde in Horde she gets the error messages.

    Any help is greatly appreciated.

    Tom
    what memory limit do you see in:
    /usr/local/cpanel/3rdparty/etc/php.ini


    Try increasing that and then restart cpanel.
    Just keeping my "eye" on things....
    R. Paul Mathews
    RPMWS - diehard cPanel Nutcase

  7. #7
    Member
    Join Date
    May 2007
    Posts
    5

    Default

    It was showing 8M, I increased that to 32M and increase the timeout setting to 60sec from 30sec.

    All is working fine now!!

    THANK YOU VERY MUCH!!!

    Tom

  8. #8
    Member
    Join Date
    Aug 2001
    Location
    Wisconsin
    Posts
    121

    Default

    Quote Originally Posted by rpmws View Post
    what memory limit do you see in:
    /usr/local/cpanel/3rdparty/etc/php.ini


    Try increasing that and then restart cpanel.
    However, won't that be overwritten with the next cPanel update? e.g., tonight?

    Bailey
    toast and jam.

  9. #9
    Member
    Join Date
    Oct 2003
    Posts
    130

    Default

    Did you found the fix.

    It doesn't matter what memory settings we use (128M, 256M, 512M)
    the message

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 34868133 bytes) in /usr/local/cpanel/3rdparty/lib/php/Net/SMTP.php on line 824

    occurs if the attachment is bigger than about 10MB.

  10. #10
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Sep 2008
    Posts
    1

    Default

    I am bumping this because I am having the same problem. All the php.ini files I look in have the limit set to 128MB. Changing it doesn't fix anything. Anyone have a solution for this one?

  11. #11
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,718
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by lsteacker View Post
    I am bumping this because I am having the same problem. All the php.ini files I look in have the limit set to 128MB. Changing it doesn't fix anything. Anyone have a solution for this one?
    Where are you encountering this problem? The webmail interface? Somewhere in the cPanel interface? On a script you uploaded to your Apache server?

    Are you on a VPS or a dedicated server?

  12. #12
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,768
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Both the SMTP and MIME PEAR modules used by Horde have flaws that cause them to consume insane amounts of memory. The only reliable workaround found is to modify the SMTP and MIME modules, setting the memory limits directly within them.
    Kenneth
    Product Development
    cPanel, Inc.

  13. #13
    Registered User
    Join Date
    Sep 2009
    Location
    kiev
    Posts
    1

    Default solve problem

    easy way to solve thit problem is little code to you .htaccess file :
    php_value memory_limit 300M

  14. #14
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,718
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by firesprite View Post
    easy way to solve thit problem is little code to you .htaccess file :
    php_value memory_limit 300M
    Keep in mind that webmail clients are served via cpsrvd, not Apache. As a result, creating a .htaccess file would be ineffective. For webmail clients, you can edit the php.ini for that webmail client if you desire. Usually the path to a webmail application is /usr/local/cpanel/3rdparty/etc/{APPNAME}/ and inside that directory you can create a php.ini file (if one does not already exist).

  15. #15
    Member
    Join Date
    Jul 2006
    Posts
    90

    Default

    The same situation we are experiencing after downgrade from Release to Stable. There is a php.in in horde/ folder with memory_limit 256M, but does not take any effect -
    Fatal error: Out of memory (allocated 92274688) (tried to allocate 28331723 bytes) in /usr/local/cpanel/3rdparty/lib/php/Net/SMTP.php on line 836 -

    Any to suggest a possible solution [?].

    Thanks,
    Lehel

Similar Threads & Tags
Similar threads

  1. Replies: 2
    Last Post: 06-23-2011, 05:26 PM
  2. Fatal error: Out of memory
    By Kimono in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 04-07-2011, 01:36 PM
  3. memory size exhausted
    By glenn52 in forum New User Questions
    Replies: 3
    Last Post: 01-27-2011, 09:53 PM
  4. virtual memory exhausted error while upgrading apache
    By vgaspar in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 09-03-2007, 06:19 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube