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
After reading great @Jekis's answer, I solved the same issue for Fedora distribution (it's the same thing, just different path):
After evaluting phpinfo();
output I found out that other .ini
files are stored in: /etc/php.d
directory
In /etc/php.d
I created a new file - 40-user.ini
. I added upload_max_filesize
and other settings that I wanted to change
Then I restarted apache (httpd)
And then changes were picked up.