WordPress.org

Ready to get started?Download WordPress

Forums

Amazon S3 for WordPress with CloudFront
Will this plugin work in a load balanced Multi sit (2 posts)

  1. jimjam_app
    Member
    Posted 1 year ago #

    Hi,

    I had this plugin working fine on WordPress 3.3.1 multi site in a single server test environment, but when I moved it across to my production environment I started having problems. I am load balancing wordpress across two Linux servers but with one MySQL database server.

    I network activated the plugin, then configured it site by site with my Amazon S3 details, but it seemed to work only intermittantly. By taking the servers out of the load balancing I have found that it works fine on all of my sites on one of the servers, but on the second it works for the main site but none of the sub sites.

    If I upload onto this server through wordpress, at first glance it looks ok, the upload gets to 100% etc. but the files aren't getting pushed out into S3, you can't preview the images and the file location url it generates is pointing to the uploads directory for the site on my wordpress server (not my s3 bucket even though the plugin looks to be configured ok), but if you try to open the URL it returns a 404 error and the file doesn't open. So the file isn't on S3 or in my uploads/blogs.dir folder.

    On the server log i can see an upload error: 'failed to open stream: Permission denied in /var/www/html/wp-admin/includes/file.php on line 348' but the permissons for my uploads and blogs.dir folders are correct for allowing uploads and uploads all worked fine before I activated the plugin!

    The worst thing is if I deactivate the plugin WordPress won't return to its default behaviour of uploading just to the uploads/blogs.dir directories on the wordpress server. Uploads continue not to work even with the plgin turned off.

    Does this plugin write to any files on the wordpress server, such as .htaccess that would need to be replicated on both of my load balanced servers? Although the .htaccess files on both servers do look identical!

    I would appreciate any help.

    http://wordpress.org/extend/plugins/tantan-s3-cloudfront/

  2. ds123
    Member
    Posted 1 year ago #

    i'm trying to get this working also ...this plugin by chance yesterday after trying to find something for months http://wordpress.org/extend/plugins/wpro/ was my hope but now its not changing any of the existing links to point to s3 .... any one have this multi server load balanced cdn issue solved? the wpro main thing it does right forces uploads to s3 not allowing them to be written to whatever current server the user is on you can actually see the uploads in the admin too

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic