Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WordPress max upload size error on XAMPP

When I try to upload a theme that is roughly 2.3MB when zipped, I get this error message:

The uploaded file exceeds the upload_max_filesize directive in php.ini.

In order to remedy this, I have modified the php.ini file in the wp-admin folder to specify:

upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300

Yet, it still does not work. I have tried restarting my XAMPP server and clearing my cache but it still gives me the same error message. I have also tried placing a file called "php5.ini" with the same contents as the "php.ini" file in the same wp-admin folder--still nothing.

like image 796
Matt Avatar asked Jan 05 '23 07:01

Matt


1 Answers

I have modified the php.ini file in the wp-admin folder

This does not sound right. The parameters your setting are all fine, but if you're using Windows, the location of the php.ini file should be:

xampp\php\php.ini

On Mac, it should be:

private/etc/php.ini

Just make sure you edit the php.ini file at the right location, then save and restart the httpd service (or reboot) when done and you should be fine.

like image 168
Open Source Training Rajkot Avatar answered Jan 14 '23 15:01

Open Source Training Rajkot