Wordpress Error:The uploaded file exceeds the upload_max_filesize directive in php.ini

> I am getting this error despite of trying every possible solution provided on internet. Whenever i try to install a plugin i get this error again and again This is what i have already done :-

I changed the upload_max_filesize in php.ini present in apache2 folder to 30M and pasted it in wp-admin directory

Secondly i created a .htaccess file in wp-admin directory and pasted some code I found on the internet.

Even after all this i am getting this error . Please help me out.


How to Fix The Uploaded File Exceeds the upload_max_filesize , A step-by-step guide for how to fix the "the uploaded file exceeds the upload_max_filesize directive in php.ini" error in WordPress. What is the uploaded file exceeds the upload_max_filesize directive in PHP ini error? Depending on the platform you host your website on, your WordPress may have different maximum file size limits. In most cases, it is 64 MB, but sometimes it can be higher or significantly lower.


First of all you need to verify that the php.ini that you are modifying is actually affecting the php that is running on apache (usually php runs as an apache module) so, what you need to do is change the upload_max_filesize directive and then run a php script with the phpinfo() function and check that it actually is taking the change, if it isn't check in that page where it says the php.ini script is running and verify it's the same file you're modifying.

There are circumstances where there are different php.ini files, even files that aren't even named as php.ini but that are loading the configuration of php, so it is important for you to figure out which file is actually relevant to the apache module, also you will find the need to check for this when you run php from the command line.

How to Fix the uploaded file exceeds the upload_max_filesize , Try to upload a WordPress theme or plugin, but it gave you an error: The uploaded file Duration: 2:44 Posted: Feb 18, 2017 ERROR: UPLOADED FILE EXCEEDS THE UPLOAD_MAX_FILESIZE DIRECTIVE IN PHP.INI Uploading large files, namely themes, plugins, images, videos, etc. in WordPress, can sometimes cause an error with the upload file size limits – this is caused by the default configuration in your server’s PHP settings.


I had the same problem, I tried several solutions and none worked until I edited the php.ini file in /etc/php5/apache2/php.ini and not in /etc/php5/cli/php.ini as everyone said.

Just change these lines, save and restart your Apache:

post_max_size = 100M 
upload_max_filesize = 100M 
max_execution_time = 180
max_input_time = 180  
memory_limit = 256M

Wordpress fix: The uploaded file exceeds the upload_max_filesize , Solved: The uploaded file exceeds the upload_max_filesize directive in php. ini. You may have seen this error at least once, if you have used WordPress. 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, is a common WordPress error when installing new themes, plugins, uploading new images or creating new posts. Installing WordPress is a fairly easy task and it only takes a few minutes.


Solved: The uploaded file exceeds the upload_max_filesize , Support » Fixing WordPress » The uploaded file exceeds the upload_max_filesize directive in php.ini. The uploaded file exceeds the upload_max_filesize  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.


The uploaded file exceeds the upload_max_filesize directive in php , The uploaded file exceeds the upload_max_filesize directive in PHP ini error Meals that The php.ini file is the main PHP configuration file. WordPress uses the PHP programming language, and this file  This site uses cookies for analytics, personalized content and ads. By continuing to browse this site, you agree to this use. Learn more


How to fix "the uploaded file exceeds the upload_max_filesize , How do you fix the uploaded file exceeds the upload_max_filesize directive in PHP INI? Cara cepat mengatasi the uploaded file exceeds the upload_max_filesize directive in php.ini pada Wordpress.