No video

How to store WordPress media files to Amazon S3 bucket

  Рет қаралды 16,028

Master2Teach

Master2Teach

Күн бұрын

Today in this video, we are going to learn how to store the WordPress media files in the S3 bucket of AWS.
Login to the AWS console.
In S3, before creating an s3 bucket, navigate to block public access settings for this account. In block public access settings, click on the edit button. Here uncheck the first two checkboxes and check the last two checkboxes.
Now it's time to create the s3 bucket to store all the media files of the WordPress site. In the buckets section, create a new bucket. Give an appropriate name of the bucket. Select your current region. ACLs disable recommended, fine.
Block public access settings, checked the option same as previous. Unchecked the two options and checked the last two options.
Acknowledge public access.
Create Bucket.
Navigate to the IAM page. Before creating a new user, let’s create a separate policy for it.
Create Policy.
Open the JSON tab.
Paste the policy code.
{
"Version": "2012-10-17",
"Statement": [{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:GetObjectAcl",
"s3:GetObject",
"s3:PutBucketAcl",
"s3:ListBucket",
"s3:DeleteObject",
"s3:GetBucketAcl",
"s3:GetBucketLocation",
"s3:PutObjectAcl"
],
"Resource": [
"arn:aws:s3:::your bucket name",
"arn:aws:s3:::your bucket name/*"
]
}
]
}
Copy the bucket name, and paste it. Here as well.
Provide an appropriate name for the policy. Describe the policy so that it can help in the future to understand for what purpose this policy was created.
Create policy.
Navigate to the user's page.
Click the add users button to add a new user who can access our s3 bucket.
Provide an appropriate name for it.
In the select AWS access type, checked the access key programmatic access.
Select the attach existing policies directly option. Search for the policy which you have just created before. Here it is mine, select it.
Create user.
Copy the access key id and secret access key which we need to configure in our WordPress site to give access to our s3 bucket.
Please don’t forget to save it properly coz we can’t view it again as we close this page.
Ok, now it's time to move to the WordPress site.
Let’s install a fresh WordPress site.
Currently, I'm working on the default theme.
Navigate to the Plugin menu, and add a new plugin. Search plugin wp offload - wp offload media lite for Amazon s3.
Install it - Activate it as well.
Open the plugin setting page.
You must set your storage provider access credentials to enable bucket access.
Select Provider - we are using Amazon s3
Connection method - define access keys in the wp-config.php file.
Copy the code and navigate to the wp-config file.
Paste the code.
Add any custom values between this line and the stop editing line.
We need to replace the * with the access key id and secret access key.
Navigate back to settings, here the page will refresh automatically.
Refresh the page.
Copy the bucket name and paste it.
Save bucket settings.
Here both block all public access and object ownership are disabled. Which should be disabled and if we try to enable it, it will not be allowed to do so.
Could not change block all public access status for a bucket.
We are not storing any media files locally. So enable remove local media option as well.
In check in delivery settings. I'm using HTTPS on the site so let’s enable the force HTTPS option as well.
Save changes.
Check whether it is all fine or not by uploading images to the media.
Open the Media library and add new. Select files.
The path of the image is in the local system, not in the s3 bucket.
Delete the image and go for the solution.
Navigate to the wp offload media lite plugin setting, and check all settings. Seems all fine.
What we have to do over here is, we have to enable both - block all public access and object ownership for once and disable it again.
Update changes, - could not change it.
For that, we have to assign the current IAM user to the s3 bucket full access once.
Navigate to the IAM page on AWS.
Click on the add permission button.
Again select the same option - attach existing policies directly and search for s3.
Amazon s3 full access - checked it.
Navigate back to the offload setting. Let’s refresh once before we process ahead.
Enable both security settings.
Settings locked, requesting refresh the page.
Warnings. Disable it again.
Update bucket security.
Upload image to the media library.
Check the path of the image.
In this way, we can set up and manage to store all media files of the WordPress site in the AWS s3 bucket.
SUBSCRIBE to our KZfaq channel for more videos: www.youtube.co...
Like us on Facebook: / master2teach
For more content go to master2teach.com/

Пікірлер: 23
@felipemunoz1533
@felipemunoz1533 Жыл бұрын
this tutorial is gold! All correct. Thanks a lot
@Master2Teach
@Master2Teach Жыл бұрын
Thank you for your comment. Pls don't forget to like, share, and subscribe to the channel.
@Bromoteknada
@Bromoteknada Жыл бұрын
Great! But what if for some reason we need to change our media again from s3 to self-hosted without breaking our url's?
@amineboualaoui6590
@amineboualaoui6590 Жыл бұрын
at 03:55 you select Access Key - programmatic access ... now it doesn't show that ... what should we do instead please ?? thank you
@parfumegue5463
@parfumegue5463 Жыл бұрын
Thanks Master2Teach it's clear now to me.
@cloudexpert3418
@cloudexpert3418 Жыл бұрын
Great tutorial. Thanks alot.
@ajgotinsain27
@ajgotinsain27 6 ай бұрын
How can we replace the existing files URLs with S3 URLs ?
@buzzsubash
@buzzsubash Жыл бұрын
Great tutorial, thank you !
@mrjunaidali
@mrjunaidali Жыл бұрын
Hi, thannks for details. how about moving existing media? and also if threre is any limit?
@ovinenyalazi8104
@ovinenyalazi8104 Жыл бұрын
Awesome tutorial.
@grinfluencers
@grinfluencers Жыл бұрын
Thank you very much 🙂
@kberwager
@kberwager 14 күн бұрын
How do we include the BuddyPress directory? I see that it's separate from the Media Library.
@adrianforster4956
@adrianforster4956 Жыл бұрын
Thanks for this great tutorial. Delicious Brains havent managed to do this themselves. Much appreciated. If poss can you record another HOw to regarding the CDN set up?
@saikatkumarshil251
@saikatkumarshil251 7 ай бұрын
Hello, great video, but I am getting the error below, how can i fix this issue? Offloaded media URLs may be broken. An error was encountered while testing the domain: Received 403 from endpoint
@grinfluencers
@grinfluencers Жыл бұрын
Hi, it´s working perfect :-) ,but, the problem I have, is that I´m using BuddyBoss Them & BuddyBoss Platform Pro Plugn, and it´s still upload media from wordpress path and not, AWS path. Any idea, about how to solve it? Thank you in advance for your help!
@Noobs-play65
@Noobs-play65 Жыл бұрын
Nicely explained!! I'm planning to use this same plugin in my WordPress site I just want to know if this is a completely free plugin?
@markuspatzer8658
@markuspatzer8658 8 ай бұрын
For me it makes no sense to store wp media files in wp media and in a separate cloud. The fuller your wordpress media library gets, then slower will be your site loading. Is it not better upload your media files from your local pc direct to the s3 bucket, then copy the link to insert it in a wp page/ post?
@learnweb4free
@learnweb4free 8 ай бұрын
You dont understand wordpress then.
@northeastmastimaza
@northeastmastimaza 8 ай бұрын
Why u can't go to NASA.
@jesuarriaga2986
@jesuarriaga2986 Жыл бұрын
hello, excellent video. a query, perform all the steps, and upload files that are already hosted in the bucket, but when using them in my wordpress mp3 recorder they do not play, they appear but do not play.
@SanjayKumar-li8pc
@SanjayKumar-li8pc Жыл бұрын
hello, once i remove policy amazon s3 full access again store file on server? and again add amazons3full aceess then work fine? please help me
@webpack1705
@webpack1705 Жыл бұрын
How to configure aws cloudfront as well?
AWS S3 Tutorial For Beginners
27:18
Be A Better Dev
Рет қаралды 232 М.
Upload Images Directly to S3 from Front End
18:28
Sam Meech-Ward
Рет қаралды 122 М.
Lehanga 🤣 #comedy #funny
00:31
Micky Makeover
Рет қаралды 30 МЛН
Son ❤️ #shorts by Leisi Show
00:41
Leisi Show
Рет қаралды 10 МЛН
Running With Bigger And Bigger Feastables
00:17
MrBeast
Рет қаралды 135 МЛН
Smart Sigma Kid #funny #sigma #comedy
00:40
CRAZY GREAPA
Рет қаралды 39 МЛН
How to host Wordpress Images on Amazon S3
16:02
Victoriano de Jesus
Рет қаралды 10 М.
How To Deliver Digital Products|Using Amazon S3(FREE)
7:15
Rashid Reviews
Рет қаралды 326
Configure AWS S3 with WordPress using Media Cloud Plugin
26:01
Build with Me: Launch a website on Amazon S3 | AWS Project
8:04
Tech With Lucy
Рет қаралды 117 М.
Tutorial: How to upload files into a S3 Bucket using a REST API via API Gateway
12:34
Set up a CloudFront CDN for an S3 Bucket
11:49
Sam Meech-Ward
Рет қаралды 65 М.
Lehanga 🤣 #comedy #funny
00:31
Micky Makeover
Рет қаралды 30 МЛН