Cookies Psst! Do you accept cookies?

We use cookies to enhance and personalise your experience.
Please accept our cookies. Checkout our Cookie Policy for more information.

The uploaded file exceeds the upload_max_filesize directive in pnp.ini (wordpress)

My Problem

I want to upload files in WordPress with large file size, but have error "The uploaded file exceeds the upload_max_filesize directive in pnp.ini"

upload_max_filesize

My Solution

Go to wordpress directory. for e.g:

cd /var/www/html/wordpress

Open file .htaccess

nano .htaccess

Add the following line at the bottom of the file:

php_value upload_max_filesize 256M

Then Save the changes.

That’s it! Increasing the upload_max_filesize value should automatically fix the error.

if not work, try to restart your web server (e.g. apache/nginx)

Reference

It seems like this feed has limited content. Do you want to fetch full content?

Fetch

Unfortunately, we're not able to fetch full content in this moment,
Do you want to check full content in the source blog?

View source 🔗

Last Stories

What's your thoughts?

Please Register or Login to your account to be able to submit your comment.