Answer the question
In order to leave comments, you need to log in
How to store files in uploads on a separate cloud storage?
The point is simple. There is WordPress, there is VPS. I want to make the project mobile and resistant to loads.
In most web projects, the most weight comes from multimedia content.
If this media is stored separately from the wordpress hosting, for example, in some kind of cloud storage, and given to the address (for example) media.mysite.com , then it will be fine.
All sorts of CDNs have a similar function - but only caching occurs there.
I need all files, pictures, videos, media to be uploaded immediately to cloud storage and not saved on hosting with WordPress.
How can this be implemented? To be elegant, so that WordPress does not swear, and everything would be fine.
The idea is to free the WordPress server from the load. And make the project mobile so that you can quickly move to another hosting (since all media is stored separately on a cloud server)
I found selectel.ru/services/cloud-storage and a plugin for it https://wordpress.org/plugins/ selectel-storage-upload/ , and in theory it should work exactly as it should. But in reality, the implementation is crooked and buggy. This blindage.org/?p=4620 doesn't work well either.
PS - article revealing the topic obzor.ly/2012/06/future-site-and-future-hosting
Answer the question
In order to leave comments, you need to log in
Well, so that it is not saved at all - I'm not sure what will happen.
https://wordpress.org/plugins/amazon-s3-and-cloudfront/ - in theory, this plugin should be able to do this, but I have not tested it.
In fact, if you replace apache2 with nginx, configure it correctly, and set the image output to the desired size in the theme (and not “compress” it via css), then you are unlikely to notice the load on WP in comparison with remote hosting.
If the project is really large, there are a lot of images and users, then I would look towards not VPS, but VDS. The site lives on one server, the second gives all the statics, and the uploads folder is connected by a symlink. But this is also a bit wrong, since problems are not solved - to increase performance without upgrading the server.
I still recommend setting up nginx & php5-fpm to work correctly with wordpress.
In general, the idea is interesting, if there is nothing like it, maybe I’ll write it somehow in my free time - it should take off :)
A solution was found after a few years). Haven't tried it myself but others have.
onwp.ru/question/kak-sdelat-tak-chto-by-izobrazhen...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question