Operating system Ubuntu Linux 16.04.7
Webmin version 1.990 Usermin version 1.834
Virtualmin version 6.17-3
Nginx server version
This is not my first rodeo with this stuff, I have always solved it in the past by checking PHP.ini and Nginx Conf files. Here is my usual routine:
Site Nginx Conf(s):
client_max_body_size 200M;
}
location / {
…
client_max_body_size 200M;
}
** PHP.ini**
upload_max_filesize = 256MB
post_max_size = 256M
memory_limit = 512M
max_execution_time = 180
or in some cases:
memory_limit = 256M
upload_max_size = 64M
post_max_size = 64M
upload_max_filesize = 64M
max_execution_time = 300
max_input_time = 1000
This time, I just ran Grep to find the offending files. I got this:
root@host3:/etc/php# grep -r upload_max_filesize .
./7.3/cli/php.ini:upload_max_filesize = 2M
./7.3/cgi/php.ini:upload_max_filesize = 256M
./7.3/phpdbg/php.ini:upload_max_filesize = 2M
./7.3/fpm/php.ini:upload_max_filesize = 256M
./7.4/cli/php.ini:upload_max_filesize = 2M
./7.4/cgi/php.ini:upload_max_filesize = 256M
./7.4/cgi/php.ini.ucf-dist:upload_max_filesize = 2M
./7.4/fpm/php.ini:upload_max_filesize = 256M
./8.0/cli/php.ini:upload_max_filesize = 2M
./8.0/apache2/php.ini:upload_max_filesize = 2M
./8.0/cgi/php.ini:upload_max_filesize = 256M
./8.0/phpdbg/php.ini:upload_max_filesize = 2M
./8.0/fpm/php.ini:upload_max_filesize = 256M
I changed ALL of the listings of 2M to 256M, rebooted, but I’m still getting a WordPress upload limit of 2M! What am I missing?