Viewing 2 replies - 1 through 2 (of 2 total)
  • See the note about:’This path can not be absolute. It is always relative to ABSPATH, therefore does not require a leading slash.” If I understand this correctly, this means that the upload folder needs to be on the same server as all the sites using it (or perhaps a symbolic link? not sure if that would work) and all the sites need to be under the same domain.

    I could be wrong though – I haven’t used this feature before…

    Thread Starter mfioretti

    (@mfioretti)

    Hi Bemdesign

    Yes, of course the upload server “needs to be on the same server as all the sites using it”. In fact, I explicitly wrote “same server” myself. That is not in doubt.

    The question is, considering as example only 3 independent installations of wordpress on the SAME server, all installed under /var/www/html, each connected to a DIFFERENT domain name (*):

    /var/www/html/blog-1/ (domain: example.com)
    /var/www/html/blog-2/ (domain: another.example.com)
    /var/www/html/blog-3/ (domain: example.com/anotherblog)

    can I set the UPLOADS variable in ALL those 3 blogs to “../blog-uploads”

    that is make all blogs use as media library the same server folder “/var/www/html/blog-uploads”???

    I do NOT mind if the users of one blog see ALL the files uploaded by the users of the other blogs! Some of those users are the same person, in practice, and many of those files would be the same anyway.

    I only wonder a) if this would work with a relative path that goes outside the root folder of each single blog and b) if this would cause problems like database corruption, caching on each blog not working correctly, etc..

    Point a) I can test myself very easily, but is useless to do if it creates problem b) later, that is why I am asking

    (*) but again, please see the original post at https://www.ads-software.com/support/topic/best-server-andor-cache-setup-for-performance-of-multiple-related-blogs for more details! and possibly give advice there too, thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘sharing uploads folder among different blogs?’ is closed to new replies.