Hi team! I already searched the forum, because I have seen, this is an issue, which was posted quite often. But in my case I tried everything which was suggested in the other postings: set the post_max_size and upload_max_filesize to higher values in all php.inis of all php versions installed (yes, also in fpm and apache2 folders) and also the max_message_size parameter in roundcube defaults.inc.php is set to an according value. And yes, I, of course, restarted all services. But still the roundcube frontend won't let me add a file attachment larger than 5M. What may I have overlooked? Thx for your valued help in advance. Best, Hannes
You must increase the PHP file upload limit. On older installs, its the apache2 php.ini, on recent installs its the php-fpm upload file limit. Afterwards, apache and php-fpm process must be restarted.
Yes, I see, but where do I find those php.inis? There are a lot of them in various locations. I already changed php.ini in the /etc/php/"phpversion"/apache2 and n the /etc/php/"phpversion"/fpm folders, but with no effect. And, of course, I restarted the php-fpm process afterwards.
You can try to put a info.php filewith phpinfo() function in the roundcube folder, cal it in a browser, to see the exact path of the php.ini that is used. The folder to put the info.php file is likely /var/lib/roundcube/
Good idea and (like I suspected) it produced the php.ini of the standard php version I set and there the respective values have enough value: memory_limit = 1024M post_max_size = 512M upload_max_filesize = 256M
Maybe you did not restart the right php-fpm dameon, or did not restart apache? Does the phpinfo output show the values that were changed? If nothing else helps, reboot the system if possible.
Ah, but when I check the phpinfo page, there is a "Local" Value and a "Master" Value. The master value is set to the above values but the local value is the one showing the low values, which need to be changed.
Hah! I found it! "Local" value, that was the clue. It was a value directly set in "/etc/roundcube/htaccess", which overrode the master value. Thx for the clue with the phpinfo(). That led me to the right track! Thank you, Till!