nowzoo / wp-s3
Stores WordPress uploads on Amazon S3. Optionally allows you to use a Cloudfront distribution.
v0.3
2015-04-08 13:55 UTC
Requires
- aws/aws-sdk-php: 2.7.26
- monolog/monolog: 1.13.1
- nowzoo/wp-utils: dev-master
This package is not auto-updated.
Last update: 2025-05-10 20:52:40 UTC
README
Stores WordPress uploads in an Amazon S3 bucket. Optionally, enables the use of a Cloudfront distribution.
##Features
- Works on both network and single WordPress installations. The bucket directly mirrors the
wp-content/uploads
directory. - Syncs files immediately on upload, edit and delete.
- Can sync all a site's uploads at once -- useful if you are importing a site.
Installation
$ composer require nowzoo/wp-s3
Instantiate the admin panels by including this code somewhere (e.g in wp-content/mu-plugins/index.php
):
<?php
NowZoo\WPS3\Plugin::inst();
Setup
- You need an Amazon S3 account.
- Create an S3 bucket for your WordPress installation. Networked installations only need one bucket.
- Recommended: Create a dedicated IAM user for the bucket, and attach a policy to the bucket that allows that user to upload and delete objects. Instructions for bucket policies.
- Enter the AWS user credentials, bucket name and, optionally, a Cloudfront distribution domain...
- Network installs: /wp-admin/network/settings.php?page=nowzoo-aws-s3
- Single installs: /wp-admin/settings.php?page=nowzoo-aws-s3