Reputation: 303
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?
Upvotes: 19
Views: 83974
Reputation: 584
I had this issue in Amazon ec2 instance and I had installed wordpress. I modified upload_max_filesize directive in /etc/php.ini. Then I tried restarting the httpd service, but that did not solve my issue.
Rebooting the Amazon ec2 instance solved the issue for me.
For some reason, restarting the httpd service did not make the server pick the new values. Rebooting the ec2 instance did the trick
Upvotes: 0
Reputation: 334
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.
Upvotes: 1
Reputation: 1
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
Upvotes: 0
Reputation: 806
I use MAMP. To locate the 'php.ini' file, if you also use MAMP, the way Is as follows:
Upvotes: 2
Reputation: 2364
Open your xampp software and click on config button in front of apache option and select php.ini option
Next find this code
upload_max_filesize=2M
and replace with this code
upload_max_filesize=64M
Now restart apache and mysql and enjoy it
Upvotes: 2
Reputation: 31
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
Upvotes: 3
Reputation: 31
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 in WordPress
, Now you can see the plugin is there, which you have recently uploaded.activate
link.Upvotes: 3
Reputation: 10071
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).
The uploaded file exceeds the upload_max_filesize directive in php.ini
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
upload_max_filesize = 64M
Save the changes and refresh your website and try uploading the file again. You will now get success.
Upvotes: 13
Reputation: 417
In Wamp > PHP > php.ini file, put or edit these lines, and then restart your Wamp server.
post_max_size = 750M
upload_max_filesize = 750M
max_execution_time = 5000
max_input_time = 5000
memory_limit = 1000M
Upvotes: 9
Reputation: 1490
Locate the php.ini file in your local dir. I use Xampp. =>C:\Xampp. Now find the line where it says
upload_max_filesize = 2M
and change this to your desired value.
upload_max_filesize = 56M
Restart all your services and you should be able to upload your new files.
Upvotes: 0
Reputation: 19
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..!
Upvotes: 1
Reputation: 2168
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
Upvotes: 25