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.