Question

Need help: I can't add media (images etc) to my site through Wordpress site dashboard

Every time I do that, it cause the site to go down just like in this video I recorded: http://goo.gl/pFd1yn

The problem is after about 2 minutes, the site is up again, but you can’t upload media to your site, because that would cause it to go down again.

Can someone take a look at it and tell me how to fix it?

Thanks.


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.

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:

<IfModule fcgid_module>
FcgidMaxRequestLen 204800000
</IfModule>```

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

That’s happening because a conflict between user/group permission. <br>All you need to do is to connect via SSH to your Droplet and run this <br> <br>gpasswd -a ftpuser www-data (this adds ftpuser to www-data group) <br>chown www-data:ftpgroup -R your-directory (this gives owner to www-data with ftpgroup) <br> <br>This way both can share the same write permission without colliding each other.

nah… Didn’t work…