Open zoof opened 6 years ago
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?)
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)
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?
I also have two php-fpm processes running. The output of "ps aux | grep php" looks exactly like the one from @zoof.
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?