Introduction
Roundcube stores temporary files within the cPanel user's home /tmp
director. By default, Roundcube's temporary files are configured to expire and be removed after 48 hours. The default expiry time of 48 hours is typically suitable. The following procedure explains how you may change this configuration if you need it.
Procedure
- Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
- Create a backup of the existing configuration.
cp -v /usr/local/cpanel/base/3rdparty/roundcube/config/config.inc.php{,.$(date +%s)}
- Open
/usr/local/cpanel/base/3rdparty/roundcube/config/config.inc.php
in your preferred text editor. - Locate the
$config['temp_dir_ttl']
line. - Replace the current value with the desired value in hours.
$config['temp_dir_ttl'] = '#h';
- Run the following command to purge temporary files past the expiry time just configured.
/usr/local/cpanel/scripts/maintenance | tee /root/cPanel-Manual-Maintenance-$(date +%s)
Comments
0 comments
Article is closed for comments.