When I tried to upload a plugin for my WordPress template in wamp 2.0 I got an error:
The uploaded file exceeds the upload_max_filesize directive in php.ini
How to fix this error?
When I tried to upload a plugin for my WordPress template in wamp 2.0 I got an error:
The uploaded file exceeds the upload_max_filesize directive in php.ini
How to fix this error?
Comments are closed.
Seeing as though you’ve mentioned WAMP, I’m going to assume you can edit the php.ini file?
If you left click on the WAMP icon in the status bar, select the PHP menu and then click on the php.ini file in that menu. Just open it in Notepad is fine.
Then in Notepad, do a search (CTRL+F) for “upload_max_filesize”, and then you can change the value that is set there.
I don’t remember what the default is, but for mine, I have it set to “200M” (without the quotes). This means 200mb.
Save the file, close it, and then restart WAMP.
You should then be right to upload your plugin
We have seen this error at least once if we have used WordPress.When installing a theme, plugin or uploading an image or file, It has nothing to do with the theme or plugin. The issue is with our server settings which limit the maximum size for uploaded files.
Itâs a common error and it can be easily fixed. This error message is an indication of that the file you are trying to upload is larger than your web host allows (WordPress default file upload size is 2 MB).
Solution:
A solution is easy, need to increase the file size upload limit.
If using WordPress on a local machine using XAMPP, we will find the php.ini in the following locations.
Windows: C:/xampp/php/php.ini
Open the php.ini file. Find these lines in the php.ini file and replace it following numbers
Save the changes and refresh your website and try uploading the file again. You will now get success.
In Wamp > PHP > php.ini file, put or edit these lines, and then restart your Wamp server.
A Solution is easy, you just want to add plugin in your
WordPress
..zip
file of plugin.Extract
the.zip
file.../wp-content/plugins/
location.Installed Plugins
page inWordPress
, Now you can see the plugin is there, which you have recently uploaded.activate
link.This error is because your upload_max_filesize variable in php.ini file is adjusted to 2Mb.. change it to 64Mb!!
This video tutorial will help you fixing your error in 60 seconds!! Hope it helps
Open your xampp software and click on config button in front of apache option and select php.ini option
Next find this code
and replace with this code
Now restart apache and mysql and enjoy it
I use MAMP. To locate the ‘php.ini’ file, if you also use MAMP, the way Is as follows:
(memory_limit = 64M, upload_max_filesize = 128M, post_max_size = 512M)
Then you are good to go for uploading big files into your local server.
Find this line in the php.ini file
upload_max_filesize = 2M
and replace it with a higher value (e.g.upload_max_filesize = 64M
)And restart wamp..!
If you’re using WAMP 2 you should update to Release 3.2.3.x with the GUI you can set upload_max_filesize to 64MB recommended to do so follow the instructions.
Locate the php.ini file in your local dir. I use Xampp. =>C:Xampp. Now find the line where it says
and change this to your desired value.
Restart all your services and you should be able to upload your new files.
Windows: C:/xampp/htdocs/wordpress_project/.htaccess
php_value upload_max_filesize 1000M
php_value post_max_size 2000M
php_value memory_limit 3000M
php_value max_execution_time 180
php_value max_input_time 180
// in end tag of wordpress