Question
Wordpress media library http errors...
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.
×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.
×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/modfcgid.so
I have changed the content of this file to:
LoadModule fcgid_module /usr/lib/apache2/modules/modfcgid.so
<IfModule fcgid_module>
FcgidMaxRequestLen 204800000
</IfModule>
Restarted apache as written above.
Now, I was able to upload larger files.
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