How To Increase The memory_limit Directive For Roundcube? Print

  • 0

Introduction

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

 


Was this answer helpful?

« Back