How can I increase the memory_limit for Roundcube?
Procedure
The following command will give you the link to the php.ini file and the PHP version that Roundcube is using:
ls -Flathr /usr/local/cpanel/3rdparty/etc/roundcube/php.ini
lrwxrwxrwx 1 root root 55 Mar 14 18:06 /usr/local/cpanel/3rdparty/etc/roundcube/php.ini -> /usr/local/cpanel/3rdparty/php/74/etc/roundcube/php.ini
The current default value is 512MB.
grep -Ei memory_limit /usr/local/cpanel/3rdparty/php/73/etc/roundcube/php.ini
memory_limit = 512M
Using your preferred editor (vim/pico/nano/etc), you can open the file over the command line and locate the setting “memory_limit” and change the value. The value can be adjusted in small increments (for example of 200M) until the request is fulfilled.
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
cPanel. “How to Increase the Memory_limit Directive for Roundcube?,” March 24, 2022. https://support.cpanel.net/hc/en-us/articles/4988057653399-How-To-Increase-The-memory-limit-Directive-For-Roundcube-.