Installation, Configuration, and Usage Copyright Free Lunch Labs www.freelunchlabs.com
Installation BEFORE INSTALLING THIS EXTENSION CREATE OF BACKUP OF YOUR MAGENTO INSTALLATION AND ALL ASSOCISTED FILES AND DATABASES. BEFORE YOU INSTALL THIS ON YOUR LIVE MAGENTO STORE - WE RECOMMENDED THAT YOU INSTALL THIS EXTENSION ON A TEST VERSION OF YOUR MAGENTO STORE TO MAKE SURE IT DOES NOT CONFLICT WITH YOUR CURRENT CONFIGURATION. 1. Log on to www.freelunchlabs.com and download the extension from the My Downloadable Products under My Account. 2. Download the Zip File and extract the contents.
3. Upload the app and lib folders in the downloaded extension to your Magento base directory. 4. Log into your Magneto Administration Panel: 1. Navigate to: System > Cache Management 2. If Compilation is enabled, re- run compilation process. 3. Flush Magento Cache. 4. Flush Cache Storage. 5. Log out of your Magneto Administration Panel and immediately log back in. If you see a 404 Page Not Found when you try to access the configuration you most likely missed this step. 6. Installation is complete!
Configuration 1. Navigate to: System > Configuration > Cloud Front CDN Configuration
2. Set the following form Fields: Enable CloudFront CDN: AWS Access Key ID: Your Amazon Web Services Access Key ID AWS Secret Access Key: Your Amazon Web Services Secret Access Key 3. Click Create New Distribution. 4. Click Save Config. 5. You will most likely get this message when you initial save the config. Your Cloud Front distribution is not enabled and deployed yet. Please wait 15 minutes and then try this action again. Simply wait about 15 minutes and try saving the config again. The message will eventually go away. 6. Configuration is complete!
Extra Configuration Details Field Options Description Recommeded Value Enable CloudFront CDN AWS Access Key ID AWS Secret Access Key Status of this Magento Extension. Your Amazon Web Services Access Key. Your Amazon Web Services Secret Access Key. CloudFront Distribution ID The Distribution ID is how CloudFront identifies your Distribution. If you don't have one, click the "Create New Distribution" button. You can also enter your own Distribution ID if you already have one configured. Use Create New Distribution Source URL The URL where CloudFront will look to find your file. In almost all cases, this will be you Unsecure Base URL. {{unsecure_base_url}} Enable Quick CDN Refresh Support Highly recommended. Gives you the ability to instantaneously refresh the files stored on the CDN. Requires Apache mod_rewrite. Refresh Config Cache Cache on CDN Refresh. Automatically clears the Config Cache when content on the CDN is refreshed. If set to "no", you might have to manually clear the config cache after a CDN refresh. Enable CDN for Media If set to "" this will add all of your media files to the CDN. This includes files from the CMS and Catalog. Media Path The path to your media directory relative to your Source URL. In almost all cases, this will be: media/ media/ Auto Refresh Media If set to "" this will automatically refresh the Media Files on the CDN when you upload new Product images. Requires "Quick CDN Refresh Support" to be enabled. No Enable CDN for Skin If set to "" this will add all of your skin files to the CDN. This includes files used in your theme, such as CSS, Logos, and Background Images. Skin Path The path to your skin directory relative to your Source URL. In most cases, this will be: skin/ skin/ Enabled CDN for JavaScript If set to "" this will add all of your JavaScript files to the CDN. This includes all the files within the root "js" directory. Javascript Path The path to your Javascript directory relative to your Source URL. In most cases, this will be: js/ js/
Usage Once the extension is installed and configured you can manage the files by navigating to: Magento Admin > System > CDN Management Once there, you can refresh the contents of the CDN. You can either refresh the whole CDN or only the Media, Skin, or Javascript Section.