Solved: The uploaded file exceeds the upload_max_filesize directive in php.ini - Your Solution World

featured-slider

ads

Hot

Post Top Ad

Your Ad Spot

Tuesday, 6 June 2017

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

In this post I have shared the solution of error "The uploaded file exceeds the upload_max_filesize directive in php.ini" during uploading of new theme or any other media.

Solution No -1 :

Go to your WordPress web directory and open WP-admin folder.Search php.ini file in that folder.If it does not exist then create file with same name or edit the existing php.ini with following code.

upload_max_filesize = 64M
post_max_size = 64M
memory_limit = 400M
file_uploads = On
max_execution_time = 180

Save the file and refresh your browser

If the above php.ini does not work for you then follow the below steps.

Solution-2:

Open .htaccess from main folder of your website and put the following code at the bottom of file

php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value memory_limit 400M
php_value max_execution_time 180
php_value max_input_time 180

Save and referesh the browser

No comments:

Post a Comment

Post Top Ad

Your Ad Spot