I have configured the upload_max_filesize
directive to 64 MB in my localhost php.ini
and have my Apache restarted.
But why the Media section in my WordPress still showing 2 MB below?
Maximum upload file size: 2 MB.
So any file is more than 2 MB, I get this error below:
The uploaded file exceeds the upload_max_filesize directive in php.ini.
Any ideas what else I have to configure?
EDIT 1:
I also have set post_max_size = 64M
to match upload_max_filesize = 64M
in php.ini
and have my Apache restarted.
EDIT 2:
Found the problem. I am running on a PHP Development Server. And probably because of this, WordPress cannot read my php.ini
. It is fine on my production server.
So that's no why to increase the upload_max_filesize
on a PHP Development Server then?