Select Page

Boost WordPress Audio w/ Amazon S3

The Simple Storage Service (S3) from Amazon is an easy way to serve information. Its high availability and low cost make it a no-brainer when it comes to hosting. Recently, a friend moved his website (the Astropope) from my server to that of a hosting company (for which he presently works). Along with his account comes 3 GB of storage, except he currently uses about 5 GB. To help with the transition, we decided to move the majority of content over to S3. In order to do this, we got an account, uploaded everything, made a DNS record, and then ever-so-slightly modified a WordPress plugin. The steps we took are detailed for your convenience: 1. Sign up for an S3 account. 2. Download, install & configure the S3Fox plugin for Firefox. 3. Amazon uses a bucket as a means for organizing information. You may refer to a bucket as a unique, top-level directory. Many directories may exist within a bucket, but the most absolute of those contained within is a ‘bucket’. Create a bucket named s3.[yourdomain].com. In that bucket, make an audio directory. So now we have something along the lines of s3.[yourdomain].com/audio. 4. Using S3Fox, upload your mp3 files to the newly created audio directory within the bucket. 5. Right-click the audio directory and specify an ACL with read access for public requests. Note: Without specifying an ACL w/ public read access, it won’t work. 6. Within WordPress, install the Audio Player plugin. 7. Once installed, modify the plugin as such: edit audio-player.php Under // Options Default add: add_option(‘s3_url’, ”, “Amazon S3 URL”, true); Under // Global variables...