When trying to open an attachement I get the following error in the cPanel horde webmail.
This is strange because the allocated memory according to this error is 45M and the file is 17M. Does anyone know why this happens and if it something that can be fixed within cPanel/WHM?
The php.ini limit is set to 256M
and
shows 512
Solution
If you have had this problem, then most forums will tell you to look at php.ini of httpd.conf, but that does not solve the problem in this case.
WHM -> Tweak Settings > The maximum memory a cPanel process can use before it is killed off.
Default is 256M and you can set it to a higher value. This is the solution.
Code:
Fatal error: Out of memory (allocated 46399488) (tried to allocate 17309701 bytes) in /usr/local/cpanel/base/horde/lib/Horde/MIME/Part.php on line 1157
The php.ini limit is set to 256M
and
Code:
grep -i rlimit /usr/local/apache/conf/httpd.conf
Solution
If you have had this problem, then most forums will tell you to look at php.ini of httpd.conf, but that does not solve the problem in this case.
WHM -> Tweak Settings > The maximum memory a cPanel process can use before it is killed off.
Default is 256M and you can set it to a higher value. This is the solution.
Last edited: