To increase the file upload size limit in WordPress, you’ll need to modify certain settings in both your server configuration and your WordPress installation. Here’s a step-by-step guide:
Server Configuration:
For Apache:
- Locate your .htaccess file in the root directory of your WordPress installation.
- Add or edit the following lines:
php_value upload_max_filesize 128M
php_value post_max_size 128M
php_value memory_limit 256M
php_value max_execution_time 300
php_value max_input_time 300
For Nginx:
- Edit your site’s Nginx configuration file, typically located in /etc/nginx/sites-available/your-site
- Add or edit the following lines within the server block:
client_max_body_size 64M;