phpconfig

By default, WordPress uses your server’s PHP configuration for max upload file size. So to change the max upload file size for your WordPress site, you will need to change this on your PHP configuration.

The options control this are post_max_size and upload_max_filesize. You will need to have root access to your server (via SSH or cPanel/Plesk) if you have a VPS or dedicated server. Find where your php.ini file is (normall in /etc/php.ini if you are using Cent/RHEL/Fedora or in /etc/php/[version]/apache2/php.ini if you are using Debian/Ubuntu). Then find where the options are and change them (where 10M is 10 Megabytes)

upload_max_filesize = 10M
post_max_size = 10M

You will need to restart your server so the changes take effect.

If you are using Apache server, there is another setting called LimitRequestBody in Apache config file (normally at /etc/httpd/conf/httpd. conf). Find this option and put value in number of bytes (ex. 5242880 bytes = 5M)

LimitRequestBody 5242880

If you are using Nginx, there is another setting called client_max_body_size in Ngĩn config file (normally at /etc/nginx/nginx.conf). Find this option and change the value (ex. 100M = 100 Megabytes)

http {

client_max_body_size 100M;
}

And yes, don’t forget to restart your Apache of Nginx server to apply the changes

				

SHARE THIS POST

Leave a Reply

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

*

14 − 12 =