Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uploads limited to 2M #1365

Open
zoof opened this issue Mar 17, 2018 · 4 comments
Open

Uploads limited to 2M #1365

zoof opened this issue Mar 17, 2018 · 4 comments

Comments

@zoof
Copy link

zoof commented Mar 17, 2018

When trying to upload an attachment, I'm getting "The uploaded file exceeds the maximum size of 2.0 MB." Not sure where the problem is, "/etc/php5/cli/php.ini" has "upload_max_filesize = 2M", "/etc/php5/fpm/php.ini" has "upload_max_filesize=16G". Upping the former does not fix it. In looking at running processes, there seem to be two php-fpm processes running, one with "/etc/php5/fpm/php-fpm.conf" and the other with "/etc/php/7.0/fpm/php-fpm.conf". Do all the php5 remnants need to be purged?

@JoshData
Copy link
Member

I believe php5 is required to upgrade old systems. But only one php-fpm process should be running. Does rebooting help? (I assume you're doing this from Roundcube webmail, right?)

@zoof
Copy link
Author

zoof commented Mar 17, 2018

I'm not sure why rebooting will help but I did it. It's still showing a php5 fpm and a php7 fpm:

$ ps aux|grep php
root      1826  0.0  0.7 356868 15092 ?        Ss   Feb13   1:31 php-fpm: master process (/etc/php5/fpm/php-fpm.conf)                    
www-data  1849  0.0  0.2 356868  4564 ?        S    Feb13   0:00 php-fpm: pool www                                                       

www-data  1850  0.0  0.2 356868  4572 ?        S    Feb13   0:00 php-fpm: pool www                                                       

root     18988  0.0  1.6 369104 34028 ?        Ss   03:01   0:02 php-fpm: master process (/etc/php/7.0/fpm/php-fpm.conf)

@zoof
Copy link
Author

zoof commented Mar 17, 2018

I noticed that both /etc/php/7.0/cli/php.ini and /etc/php/7.0/fpm/php.ini had "upload_max_filesize=2M". Changed them both to 128M although I assume only the latter is necessary and restarted php7.0-fpm and uploads >2M now work. For completeness, I stopped the php5-fpm process. What is the best way to disable php5-fpm?

@kstrel
Copy link

kstrel commented Mar 20, 2018

I also have two php-fpm processes running. The output of "ps aux | grep php" looks exactly like the one from @zoof.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants