Hello Everyone,
In this blog, we will learn how to install S3 Storage in Magento 2.
This extension allows the store owner to transfer their Magento store media storage from local or hosted storage to Amazon S3 storage and upload it to s3 storage and also fetch all store media including all catalogue media from Amazon S3 Storage.
Don’t waste your time, let us guide you straight away. Follow the easy steps below to install and configure an S3 Storage extension.
Why Is Magecurious S3 Storage?
- Enable or disable it from Magento admin.
- Easy UI To Use: Amazon S3 With Your Store
- Upload all Store Media To Amazon S3
- Fetch all Store Media From Amazon S3.
- Downloadable Product Link Upload and Fetch From Amazon S3
- Upload Catalalog Images And Files To Amazon S3 Storage
- Downloadable Product Link Encryption
- Direct Saved Category and Product Image for S3 Storage
- Export Already Existing Media From Local Storage To S3 Storage
- Compatible With 2.0.x, 2.1.x, 2.2.x, 2.3.x, 2.4.x
Steps to Install S3 Storage in Magento 2.
STEP 1: Extract the downloaded extension package from your Magento root folder using FTP (File Transfer Protocol) Tools. For verification of the root folder, you can see some folders inside the Magento root folder like app, bin, lib, PHP server vendors, etc.
STEP 2: Next Need to run some Magento commands to install the extension in your system, so connect with your server via SSH, go to the Magento root folder (e.g: cd /var/www/html/magentp243), and run the below commands one by one.
- php bin/magento setup: upgrade
- php bin/magento setup:static-content:deploy-f
- php bin/magento indexer: reindex
- php bin/magento cache: clean
- php bin/magento cache: flush
- chmod-R 777 var/ pub/ generated/
STEP 3: If all your commands run successfully, then log in to your system Admin Panel and go to Store > Configuration, if you see a new Tab on the left sidebar with the MageCurious Logo it means the extension was installed successfully.
Steps to connect S3 Storage to Magento 2.
STEP 1:- To Configure Extension, go to Stores > Configuration > MageCurious Tab > S3 Storage.
STEP 2:- In General Configuration:
- Enable S3 Storage: Enable/Disable the s3 storage extension from here.
- Access Key: Enter the access key to put and get media from the S3 Storage space.
- Secret Key: Enter the secret key to put and get media from the S3 Storage space.
- How to Get an Access Key and Secret
- Key log in to S3 Console -> Account Section -> My Security Credentials.
- Bucket: Enter the s3 bucket name to put and get media from the S3 Storage space.
- Region: Select your S3 Storage region from the given drop-down.
- Request Timeout: Set Request Timeout and this field will set the downloadable product link URL expiration time. Eg if you set 1000 then the downloadable product link URL will expire after 1000 seconds. You need to generate the URL again from the My Account Section.
- Enable Custom Endpoint: Set it to yes if you want to add or use a custom endpoint URL for your s3 storage e.g: if you are using Digital Ocean Compatibility with S3 then you can set it to yes and add a custom endpoint below.
- Custom Endpoint: Set up your custom endpoint URL for s3 storage access here. This will only be enabled if you choose Enable Custom Endpoint To Yes.
- Export Local Media to S3: Click here to export all your local media including images, pdf files etc. For S3 Storage.
- Make sure you have disabled the s3 storage extension before exporting media from local storage.
Extension Features:
S3 Storage URL on Admin Product List Page
S3 Storage URL on the Frontend Product List Page.
S3 Storage URL on the admin downloadable product edit page.
S3 Storage Url in Frontend My Downloadable Product Section.
Final Thought
This is the easiest way we can tell you in this blog. This is how you can install S3 Storage in Magento 2. Hope you liked the blog.
So quickly go to the comment box and tell me how you like this blog.
Stay tuned to our site to get new updates on Magento.
Thanks for reading and visiting our site.
