Bobcares

Expire Time for Roundcube Temporary Files – How can we alter?

PDF Header PDF Footer

Need to alter the expire time for Roundcube temporary files? We can help you.

Here at Bobcares, we often receive requests to fix Roundcube issues as a part of our Server Management Services.

Today, let us see how our techs perform this task.

 

Expire Time for Roundcube Temporary Files

In this article, let us discuss how the Expire Time of Roundcube temporary files work and how we can change this time duration.

Roundcube stores temporary files within the cPanel user’s home directory by default.

Most often, it looks like this:

/home/cpanelusername/tmp

By default, these files are configured to expire and remove after 48 hours.

It runs the, /usr/local/cpanel/scripts/upcp script via the root user’s crontab every night.

In addition to installing updates, the upcp script also runs the maintenance script. This script cleans the expired files:

/usr/local/cpanel/scripts/maintenance

This default expiry time of 48 hours is typically suitable. However, if necessary we can alter this configuration.

To do so, our Support Techs recommend following the steps below:

1. Initially, we log in to the server via SSH or Terminal as the root user.

2. Then to create a backup of the existing configuration we run the command below:

cp -v /usr/local/cpanel/base/3rdparty/roundcube/config/config.inc.php{,$(date +.%Y-%b-%d-%H-%M-%S)}

3. After that, with any text editor, we open /usr/local/cpanel/base/3rdparty/roundcube/config/config.inc.php.

4. In these, we need to locate the following line:

$config['temp_dir_ttl'] = '48h';

5. Eventually, we need to update it to a time period that we prefer.

6. Suppose there are Roundcube temporary files that are past the expiry time that we have just configured. In that case, we need to manually run the maintenance script to remove them:

/usr/local/cpanel/scripts/maintenance | tee /root/cPanel-Manual-Maintenance-$(date +.%Y-%b-%d-%H-%M-%S)

[Stuck in between? We’d be happy to help you out]

 

Conclusion

To conclude, we saw how our Support Techs alter the Expire Time configurations for our customers.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

server management

Spend time on your business, not on your servers.

TALK TO US

Or click here to learn more.

GET UP TO 25% OFF

cPanel Support

Spend time on your business, not on your servers.

Managing a server is time consuming. Whether you are an expert or a newbie, that is time you could use to focus on your product or service. Leave your server management & end-user tech support to us, and use that time to focus on the growth and success of your business.

TALK TO US Or click here to learn more.

Speed issues driving customers away?
We’ve got your back!