Introduction
At times, there are tasks within the Horde interface such as exporting emails that consume more memory than the configured default.
Increasing the memory_limit from the default value will allow for more resource-intensive requests to go through without error.
Procedure
Depending on the PHP version Horde is using, the configuration file can typically found in the below location for cPanel:
/usr/local/cpanel/3rdparty/php/*/etc/horde/php.ini
Using your preferred editor (vim/pico/nano/etc), you can open the file over the command line and locate the setting "memory_limit":
; Maximum amount of memory a script may consume (128MB)
; http://php.net/memory-limit
memory_limit = 128M
On a cPanel v90 server, this is showing to be 128 MB. The value can be adjusted in small increments (for example of 200M) until the request is fulfilled.
To check how much memory is allocated and needed for a particular request in Horde, you can refer to the cPanel error log here:
/usr/local/cpanel/logs/error_log
Once you've adjusted the memory_limit to the desired value, cpsrvd will need to be restarted to save these new changes. This can be completed using the below command:
/scripts/restartsrv_cpsrvd
Comments
0 comments
Article is closed for comments.