How To Increase WordPress Upload Size
This article is for Dedicated Servers only running Windows. If you are in a Shared or Linux Environment, please contact Support for assistance.
The default maximum upload size for a WordPress site in our environment is 8MB. Sometimes, however, it is necessary to increase this limit, especially if you intend on uploading larger files over time. If you have a large batch of files you wish to upload at once, it is recommended to use FTP as it will be quicker. If you only need to upload a single file then increasing the limit will be needed.
To increase your WordPress upload limit:
-
First navigate to your php.ini file. This file will be located at the following path:
'C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP##' where ## denotes your PHP version.
For example, if you're using PHP 5.4 you will find the php.ini file in
'C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP54'
-
Once your php.ini file is open, search for the following attributes and edit their values to set the new upload size. It should be noted these values are in MB;
- upload_max_size
- post_max_size
Then search for max_execution_time. This attribute is measured in seconds and is used to determine the maximum amount of time PHP will spend uploading the file, among other things. It's common to say for every 64MB uploaded to allow for roughly 300 seconds.
-
Once everything is set, save the file then recycle your domains application pool through IIS to ensure the new values are used.
PHP 7.1
To increase your WordPress upload limit:
-
First navigate to your php.ini file. This file will be located at the following path: 'C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP71'
-
Once your php.ini file is open, search for the following attributes and edit their values to set the new upload size. It should be noted these values are in MB;
Example:
upload_max_filesize = 64M
post_max_size = 64M
memory_limit = 400M
Then search for max_execution_time. This attribute is measured in seconds and is used to determine the maximum amount of time PHP will spend uploading the file, among other things. It's common to say for every 64MB uploaded to allow for roughly 300 seconds.
-
Once everything is set, save the file then recycle your domains application pool through IIS to ensure the new values are used.
**You can find your PHP version in Control Suite by clicking on the domain name. The PHP version is located on the far-right panel.
Article ID: 2318, Created: December 29, 2015 at 9:38 PM, Modified: January 18, 2018 at 11:01 AM