http error wordpress pdf, png, jpg, upload

WordPress HTTP Error on image, jpg, png, pdf uploads

Does the above error look familiar? It probably doesn’t happen on file uploads less than 128kb right?

If you have searched around and can’t find the answer, read on.

If you are running Apache, and have Set PHP to run as FastCGI, this is probably your solution. The information below is specifically for Centos Plesk users. FcgidMaxRequestLen –>This is your problem. Before updating to the newest version, it was defaulted to 1gb. Now it is 128kb.

Quick fix if you are command line savy:

  1. SSH into your server
  2. Use your preferred editor (nano or vi) to edit the following file
    /etc/httpd/conf.d/fcgid.conf
  3. Paste the following just before the final closing </IfModule> tag
    FcgidMaxRequestLen 1073741824
  4. Don’t forget to restart apache for the change to take effect
  5. /etc/init.d/httpd restart

You should now have no issues with new uploads in WordPress.

{o}
Otreva is a custom software product development company focusing on user experience, responsive web development, & mobile application development.

Interested in seeing what it costs to build an app?

Start Quote See Stats
224 Wyoming Ave. #100
Scranton, PA 18503

You've found the secret footer!

Tweets about @Otreva

Or check us out on:

Shopify Experts
Awwwards