Wordpress media library http errors...

I’m running Wordpress 3.8 on Ubuntu 12.10 and everything is running smoothly except for the Media Gallery function. Image uploads keep falling over despite having set the upload limit to 30Mb and changed permission on the 'Uploads" folder. Does anyone have a fix for this issue? Cheers.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

have checked dir permissions to be 755 even tried 777. When a user tries to upload his avatar from the frontend (eg in WP or in buddypress) or i try via backend i get HTTP error still - strangest part is if i look in FTP the file was actually uploaded - but in WP or BP it is reporting error and does not like always then take you to the Crop Image step

or all those who experience the http error problem, I would like to share how I figured it out. I realized that I was actually able to upload images with small size - 1kb, 30kb, etc. Larger files like 300 kb or 2 mb gave me an HTTP error in the admin media section.

So, there are several things that I did, as following:

Increased max_execution_time = from default to 5000; Increased upload_maxfile_size = from default to 200M; I have applied the two steps above in these files:

/etc/php5/apache2/php.ini /etc/php5/cgi/php.ini

After that, ssh login via root account to my droplet and restarted apache via:

service apache2 restart

After that I saw that in my wordpress admin section the limits have been rised up. Unfotunately, I couldn’t upload larger images - 1mb in size, for example.

Then, I found this file:

/etc/apache2/mods-available/fcgid.load and saw that it contained this line:

LoadModule fcgid_module /usr/lib/apache2/modules/

I have changed the content of this file to:

<IfModule fcgid_module>
FcgidMaxRequestLen 204800000

Restarted apache as written above.
Now, I was able to upload larger files.

Were you able to figure this out? I’m having the same problem on a lemp server. Usually if I retry, the upload works, but it is annoying to have this many errors, and my media library is cluttered with duplicates.