Control Web Panel
WebPanel => E-Mail => Topic started by: lhpsobral on April 29, 2025, 01:13:17 PM
-
Hello,
I am experiencing an issue with file uploads through Roundcube.
When I log in with the root account and use the URL https://server.host.online/roundcube, I can upload large attachments (over 400KB) without any problem.
However, when regular email users log in through https://mail.website.com.br, they cannot upload attachments larger than approximately 400KB. The upload fails immediately.
Both domains (server.host.online and mail.website.com.br) resolve to the same IP address. No external proxy (such as Cloudflare) is used.
The PHP configuration (upload_max_filesize, post_max_size) and Postfix (message_size_limit) are properly set to allow large files.
Nginx configuration also has client_max_body_size correctly configured for both HTTP and HTTPS.
Roundcube configuration (config.inc.php) does not have any limits set for upload size.
Thank you very much for your help!
-
I did a test using the app on my cell phone and the attachment was sent. The problem must be with Roundcube....
-
Are you editing the php parameters in /usr/local/cwp/php71/php.ini ?
-
Yes.
yes, besides that now php is gone and everything is working I don't understand.
https://ibb.co/5X6bs60m
-
Your picture should indicate which version is selected for the main system PHP version using the PHP Switcher (or forced version). However, CWP uses its own dedicated version of PHP (/usr/local/cwp/php71) that can run undisturbed -- it is actually PHP 7.2 even though it is labeled as 7.1.
After editing PHP parameters that affect CWP Services (including Roundcube), restart CWP services:
service cwp-phpfpm restart
service cwpsrv restart
-
I installed them manually lol. It solved the problem, but the PHP selector doesn't work now. But I have a client running woocommerce with and it requires PHP 8. Very confusing lol :'( :'(
-
On my systems, I typically have 8.2 as the system PHP version (for CLI), There's nothing you can do about CWP using its internal PHP 7.2 version. After that, I use PHP-FPM as it is more performant and allows granular selection per-site. For example on one server, I have one customer using PHP 5.4 for a legacy site, several WordPress sites that need 7.4 for full extension compatibility, other WordPress sites running 8.1 (for the best mix of compatibility/modern features/security), and one Drupal site running 8.2. Each version has its own php.ini for customization.
-
not working.. noww.. nginx[131056]: nginx: [emerg] bind() to 192.168.0.159:80 failed (98: Address already in use) :X
-
WARNING! You are not running CWP Apache and this could cause that your domains do not work!
-
Could you please advise of the following:
What 'errors' and/or 'messages' are being displayed in the logs?
What distro are you are you running CWP on?
CWP Free or CWPpro?
Public or NAT?
--
We are running CWP on AL9, using Thunderbird mail client without problems.
-
Thank you all, but I installed wp and everything is fine now. There must have been some error in the installation. I use cwp pro