Roundcube, PHP change attachment size

Hello,

I have roundcube install on my VPS with Debian 10. How or where can I change size limit upload and post size? Default size is just 2 MB.

Roundcube’s running at email.example.com. If I change php.ini “upload_max_filesize, post_max_size” at Virtualmin / Services / PHP 7.3 Configuration, nothing happens, even if I change it at parent domain of email.example.com. I even tried to change default php.ini but with no success.

And ofc I did restart apache2…even rebooted VPS.

PHP is running as FCGId, tried CGI but nothing changed.

On all my different domains I just change php values in Virtualmin / Services / PHP 7.3 Configuration nad it works, but with roundcube it doesn’t.

Thank you for your help.

Hi,

Try changing PHP values from CLI, simply like that:

virtualmin modify-php-ini --domain DOMAIN.com --ini-name post_max_size --ini-value 16M --ini-name upload_max_filesize --ini-value 8M

Hi,

thanks for answer, but it doesn’t work. Values are changed in /home/domain.com/domains/email.domain.com/etc/php7.3/php.ini, but roundcube still shows 2.0 MB.

Well, I just put phpinfo(); in roundcube index.php and it works, I see values which I set, but roundcube doesn’t allow me to send larger file than 2 MB.

I tried clear cache in browser, still same…
Another idea?

Thank you.

Up…
Any idea? Thanks.