I have been trying for two days to increase the max filesize for file uploads via php to 10M from the default 2M. I change the php.ini file that is referenced by phpinfo to
Maybe you find 2 directories for php.ini files.
If you search where php.ini is using cli like php --ini
maybe it show you /etc/php/7.1/cli/php.ini
, but thereis another folder to php-fpm
found in /etc/php/7.1/fpm/php.ini
and you need to create your new ini file under conf.d
folder like /etc/php/7.1/fpm/conf.d/30-user.ini
and if you need a ini file to cli command line you need to put your ini file under /etc/php/7.1/cli/conf.d/30-user.ini