How to increase the upload_max_filesize in WordPress

Sponsors

The default upload file size is in php settings is 2 MB and for wordpress also default upload size is 2 MB.
When we try to upload big size image or media files in wordpress we got the following error

The uploaded file exceeds the upload_max_filesize directive in php.ini
For fixing the issue use following steps
Use the php.ini file from root folder.

1. Find this line in the php.ini file in your php installtion upload_max_filesize = 2MB and replace it with a higher value (e.g. upload_max_filesize = 64MB)
2. Search for this line in your php.ini file post_max_size and increase it.

If you don’t have a php.ini file in your directory,
you can usually generate one from the control panels of your host. or create the file and put following values in that
memory_limit = 32M
upload_max_filesize = 100M
upload_max_filesize = 100M
post_max_size = 100M

This file is copied into your wp-admin folder, the problem should be solved.

Incoming search terms:

You may like following Articles!

2 thoughts on “How to increase the upload_max_filesize in WordPress

  1. Pingback: wp-popular.com » Blog Archive » How to increase the upload_max_filesize in WordPress | Developer Code book

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>