roundcube .htaccess upload_max_filesize ignored

I'm trying to increase the maximum upload size in Roundcube, and changing the value in roundcube/.htaccess doesn't do anything (still says max=2MB). I've changed /etc/php5/apache2/php.ini as well, but Roundcube doesn't even get the default value in the .htaccess file (which is 5MB). It always displays "Maximum file size is 2.0MB".

Where does one change the upload_max_filesize so that it's actually recognized by Roundcube?

Virtualmin 4.03.gpl

Status: 
Active

Comments

Howdy -- If your PHP Execution Mode is set to FCGID (the default), or CGI, you would want to set the upload_max_filesize in $HOME/etc/php.ini, rather than in the .htaccess file.

If it's set to mod_php, then you could use the .htaccess file, or /etc/php5/apache2/php.ini.

Aha! Thanks so much Andrey.

Quick additional question -- is there a template for $HOME/etc/php.ini? I see I can edit /etc/php5/[apache2,cli,cgi/php.ini, but are any of those used as the template for $HOME/etc/php.ini?

You can set the php.ini template to be used by going to System Settings -> Server Templates -> Default -> Apache Website, and there you can set "Template PHP 5 configuration file". All new Virtual Servers would use the template you specify there.

On Ubuntu/Debian, I believe it uses the one in /etc/php5/cgi/ by default.

If you have any other questions, since you're using Virtualmin GPL, you'd want to ask those in the Forums. We monitor those, along with lots of wonderful folks in the community. Thanks!

Thanks so much again, Andrey.