admin管理员组文章数量:1122846
Brand new site. Not MU. No matter what I do, I cannot get a file uploaded that exceeds 2MB. I'm running a localhost server with WordPress 4.3.1
I've modified both relevant settings in the the site's php.ini
as:
upload_max_filesize = 64M
post_max_size = 64M
However, I'm still getting the message when trying to upload a plugin that's 2.5M
The uploaded file exceeds the upload_max_filesize directive in php.ini.
Also, when I go to "Media > Add New", I get the message:
Maximum upload file size: 2 MB.
My htaccess file is the default and has no mention of max upload size.
What gives? Is it a requirement to restart anything after modifying the site's php.ini? If so, I could not find a restart command on my phpmyadmin panel.
Brand new site. Not MU. No matter what I do, I cannot get a file uploaded that exceeds 2MB. I'm running a localhost server with WordPress 4.3.1
I've modified both relevant settings in the the site's php.ini
as:
upload_max_filesize = 64M
post_max_size = 64M
However, I'm still getting the message when trying to upload a plugin that's 2.5M
The uploaded file exceeds the upload_max_filesize directive in php.ini.
Also, when I go to "Media > Add New", I get the message:
Maximum upload file size: 2 MB.
My htaccess file is the default and has no mention of max upload size.
What gives? Is it a requirement to restart anything after modifying the site's php.ini? If so, I could not find a restart command on my phpmyadmin panel.
Share Improve this question edited Dec 19, 2016 at 17:00 cjbj 15k16 gold badges42 silver badges89 bronze badges asked Dec 19, 2016 at 16:42 Scott BScott B 5,69614 gold badges94 silver badges148 bronze badges 6- Do you have something related to upload_max_filesize in wp-config.php ? – Benoti Commented Dec 19, 2016 at 16:45
- Are you sure you set the correct php.ini? You may have set that for PHP running as CLI. Also why 4.3.1? The latest version is 4.7, you should update for security fixes – Tom J Nowell ♦ Commented Dec 19, 2016 at 17:19
- @Benoti nothing in wp-config about that – Scott B Commented Dec 19, 2016 at 17:56
- @Tom - I'm regression testing an issue – Scott B Commented Dec 19, 2016 at 17:56
- @Benoti I'd be happy to place something there but my sense is its overridden by some unseen global that I can't find. – Scott B Commented Dec 19, 2016 at 18:18
3 Answers
Reset to default 0Most likely, there are two php.ini
files, one for the local server and one for the site. You can change the site's upload_max_filesize
to whatever you want, if the server's php-settings say it's 2 MB, that's it.
So, find the php.ini
file of your server install and change the value. Then reboot.
Check to see if anything is hooked to the upload_size_limit
filter.
This can be a hard one to track down. (I once used a plugin that set it to 1MB for reasons I never figured out. It took a long time to find the issue.)
The first things to check is PHP.ini file.
The values of upload_max_filesize
, memory_limit
and post_max_size
in the php.ini configuration file exactly.
All of these three settings limit the maximum size of data that can be submitted and handled by PHP.
Typically post_max_size
and memory_limit
need to be larger than upload_max_filesize
本文标签: wp adminOSX El Capitan local install Maximum upload file size 2 MB But phpini set to 64M
版权声明:本文标题:wp admin - OSX El Capitan local install Maximum upload file size: 2 MB But php.ini set to 64M 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736285811a1927534.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论