Тёмный

AWS Tutorial: How to Host a Website on AWS EC2 Instance 

CAD Define
Подписаться 6 тыс.
Просмотров 238 тыс.
50% 1

How to Host a WordPress site on AWS: Instance: www.udemy.com/course/how-to-b...
I have updated this video and you can find the updated version here: • Website Hosting Made E...
AWS Channel: / @aosnote
This tutorial will show you how to host a website on AWS EC2 instance and how to transfer files from S3 to an EC2 instance.
To host your Website on AWS EC2.
First zip the folder for the web files.
Next log into the management console and select S3 under service.
Create a bucket and upload that zip folder into that bucket.
Next, make that bucket and the object in the bucket public.
Launch an EC2 instance with SSH access
Copy the instance’s public ip address and SSH into your EC2 instance
Run the following commands in your terminal
sudo su
yum update -y
yum install httpd -y
chkconfig httpd on
cd /var/www/html
wget (S3 object URL)
unzip (folder full name including extension)
mv (sub folder full name )/* .
service httpd start
Last copy your instance public ip and paste it in the web browser.
#AWS #EC2 #AWSS3

Опубликовано:

 

30 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 240   
@worldimmigrationandeducati4901
@worldimmigrationandeducati4901 3 года назад
Brother if you really want to teach us. please upload proper video with every thing like from where we can download putty software how you down load ec2key many more
@CADDefine
@CADDefine 3 года назад
Hello, Thank you for the feedback. I have recreated this tutorial here with all the steps: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-dhRwKPrum44.html&t. Thanks.
@swagz6440
@swagz6440 3 года назад
@Shepherd Watson fuck off
@rafaeljm3204
@rafaeljm3204 3 года назад
what an asshole. just google "putty download" man, not hard.
@worldimmigrationandeducati4901
@worldimmigrationandeducati4901 3 года назад
@@rafaeljm3204 i used that one as well brother and already google it.
@osemenkhiangodstime8456
@osemenkhiangodstime8456 2 года назад
You don't know how to download putty? U don't have business here bro
@mattst.hilaire9101
@mattst.hilaire9101 3 года назад
You managed to do in 13 minutes what AWS tutorials and hours of Google searches couldn't. Keep up the great work and rock on.
@Intu11110
@Intu11110 2 года назад
Finally a quick and simple demo! Thank you sir.
@austinperrine23
@austinperrine23 Год назад
I feel like I owe it to admit that this may be within my top 3 most important youtube videos in my life haha! Every time I update my EC2 instance, I watch a part of this video if I forget. My life would be forfeit without your help.
@Ebocraze
@Ebocraze 3 года назад
Found it extremely intuitive and helpful. I am a Windows ASP programmer but I am tempted to move over to Linux. If I do, all credit to you Sir.
@CADDefine
@CADDefine 3 года назад
Thank you for the feedback sir. I appreciate it.
@joseluislopezbellido961
@joseluislopezbellido961 3 года назад
This is an excellent step by step explanation of everything that usually we have to do in order to deploy a websever. The only thing that i would suggest is that, since we are using an EC2 instance, we could automate every single step providing a shellscript in the "user config" EC2 configuration step. It would be really useful when deploying a more resource demanding version of the website and using auto scaling!
@CADDefine
@CADDefine 3 года назад
Thank Jose, and you are right. This video was intended to give a beginner a high-level overview of the process. I am currently working on the videos that show the steps you have mentioned.
@CADDefine
@CADDefine 3 года назад
You can watch the full project here: ru-vid.com/group/PL184oVW5ERMAZ99fMM8vBso6JwqAbezBq
@CoffeeDuoes
@CoffeeDuoes 2 года назад
DUDE even though this video was a year old.. still helped me out .. Can't express how much this video has helped me. I brand-spanking new to AWS and you explain everything to easily. Do you have a video explaining how to push edits ? and does this Apache environment support files like php ?
@chigozie_jesse
@chigozie_jesse 4 года назад
This was just what i needed. Thanks
@PS-vc6ef
@PS-vc6ef 4 года назад
This is excellent! Thank you for the video and please keep them coming!
@CADDefine
@CADDefine 4 года назад
ru-vid.com/show-UCxm6ZcNMXMrckKRJPXlDu_w?view_as=subscriber
@tanclementi
@tanclementi Год назад
Thanks for the very detailed and clear step-by-step guide!
@sajadkaruthedath103
@sajadkaruthedath103 4 года назад
Nice and simple explanation!. very helpful. Thank you :)
@CADDefine
@CADDefine 4 года назад
You can watch the full project here: ru-vid.com/group/PL184oVW5ERMAZ99fMM8vBso6JwqAbezBq I have created another video explaining the entire process including putty configuration, keypair, IAM role, and security groups on windows: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-dhRwKPrum44.html
@kanchanpathak9752
@kanchanpathak9752 2 года назад
This is an amazing tutorial! Damn every beginner should find this video :")
@aayugawde18
@aayugawde18 3 года назад
Thank You So Much,it helped me to understand EC2 better
@kavita_rasoi
@kavita_rasoi 3 года назад
Thank you so much for this video you make the web hosting really easy i'm glad thank you very much. Please make more videos on AWS
@thespianoflife
@thespianoflife 2 года назад
Excellent video.This was just what i needed.
@adeshrajput9300
@adeshrajput9300 4 года назад
This is excellent,very helpful !
@kahegames
@kahegames 2 года назад
EXCELLENT TUTORIAL, JUST SAVED MY ASS FOR A FINAL PROJECT
@ahmadziyad8709
@ahmadziyad8709 2 года назад
nice work, step by step explained.
@abhishek_m89
@abhishek_m89 3 года назад
Awsome Explaining man. Kudos to you. 🥂
@hansangjung6063
@hansangjung6063 3 года назад
Thank you. It's just what I have wanted.
@noeldolan518
@noeldolan518 3 года назад
Great video, nice clear step by step approach. :)
@CADDefine
@CADDefine 3 года назад
Glad it was helpful!
@SuryaPrakashbabul
@SuryaPrakashbabul 3 года назад
Nicely explanined. Thank you so much,
@timeowilliams4620
@timeowilliams4620 3 года назад
Excellent job with this video man!!! Explained really well and great for beginners. Thank you!
@CADDefine
@CADDefine 3 года назад
You're very welcome!
@losdaniellos3764
@losdaniellos3764 3 года назад
this tutorial is perfect !
@ArsenGTS
@ArsenGTS 2 года назад
Good job, my friend!
@raviteja8674
@raviteja8674 2 года назад
Great job bro. Thank you.
@samysimon2062
@samysimon2062 4 года назад
Thanks, very helpful !
@CADDefine
@CADDefine 4 года назад
You're welcome!
@nandant.8842
@nandant.8842 2 года назад
Amazing video!!
@leokulp1804
@leokulp1804 2 года назад
Thanks, this was great!
@sureshk763
@sureshk763 4 года назад
Thanks for the video. Very helpful, Could you please upload more video's on AWS
@CADDefine
@CADDefine 3 года назад
Sure thing! I have uploaded them here: ru-vid.com/show-UCxm6ZcNMXMrckKRJPXlDu_w
@ankitaburman5406
@ankitaburman5406 2 года назад
Thank you so much for this sir.
@huxley8930
@huxley8930 4 года назад
Great Video my Naija bro
@CADDefine
@CADDefine 4 года назад
Lol, Thank you brother, your feedback is appreciated
@erczy
@erczy Год назад
Thank you for this super video❤
@MsGrandGaming
@MsGrandGaming 3 года назад
Great Video! Really helped
@CADDefine
@CADDefine 3 года назад
Glad it helped!
@sathianarayanans9072
@sathianarayanans9072 2 года назад
simple and neat great!!!
@halimataminu1423
@halimataminu1423 Год назад
Just what I needed
@vinaysk03
@vinaysk03 2 года назад
great work thank you easy...one question, do i need to repeat all steps if i make changes in my webpage?
@yuvadarpan3126
@yuvadarpan3126 4 года назад
Thanks man. Helped!
@CADDefine
@CADDefine 4 года назад
Glad it helped!
@carterash2588
@carterash2588 2 года назад
Great video, thanks.
@dblkickflip720
@dblkickflip720 4 года назад
you are a life saver
@jeandedji6153
@jeandedji6153 3 года назад
Hello Sir please do I have to use /var/www/html for react to?
@sylviadasilva2557
@sylviadasilva2557 2 года назад
Perfekt, really good Job ⭐️⭐️⭐️⭐️⭐️
@tirthshah2832
@tirthshah2832 4 года назад
Thank you so much!! It works!!!!
@CADDefine
@CADDefine 4 года назад
You're welcome!
@GotchiBulls
@GotchiBulls Год назад
Thank you fren! ♥️♥️♥️
@jamesbienaime8790
@jamesbienaime8790 4 года назад
awesome bro
@skrezwan12
@skrezwan12 2 года назад
wow.. your website was so interesting..
@neenaprasanna
@neenaprasanna 3 года назад
Tx lots..it helped me lot
@saicharan4649
@saicharan4649 2 года назад
After moving my content to /var/www/html/ directory and browsing the public IP of the instance I am getting a test page display rather than showing website content. Could you tell me why is it displaying the test page?
@abed-amazuchioma4767
@abed-amazuchioma4767 2 года назад
Please were you able to figure this out because I am having the same problem
@lokeshkarnam6521
@lokeshkarnam6521 4 года назад
Thanks for video
@dariusngoyo2954
@dariusngoyo2954 Год назад
Nice video, thanks
@akshayingole3110
@akshayingole3110 2 года назад
great man !
@mohammedjuma9173
@mohammedjuma9173 3 года назад
Great video except you missed to explain how to change the .pem file to .ppk "the private key" to access the AWS instance!
@scotishdude
@scotishdude Год назад
GANGSTA! TY you legend!
@avinashpowar8768
@avinashpowar8768 2 года назад
very informative for intermediate students
@avinashpowar8768
@avinashpowar8768 2 года назад
great work
@manankh4366
@manankh4366 3 года назад
Thank you very much!
@kawaljeetsingh8882
@kawaljeetsingh8882 3 года назад
Excellent bro thanx for upload great video
@CADDefine
@CADDefine 3 года назад
Thank you kawaljeet and I appreciate your feedback. You can also watch the full project here: ru-vid.com/group/PL184oVW5ERMAZ99fMM8vBso6JwqAbezBq
@soujatyabhattacharya1530
@soujatyabhattacharya1530 2 года назад
Thank You Bro ☺️☺️
@sharayuyadav9511
@sharayuyadav9511 3 года назад
Very useful !!!
@CADDefine
@CADDefine 3 года назад
Glad it was helpful!
@ankitalohia2371
@ankitalohia2371 2 года назад
thank your for a great tutorial, How to fix the issue of changing Public IP. when I restart my ec2 instance, while testing. it changed the IP and the website vanished. do i have to do it every time I stop and start my ec2 instance
@parthasaradhi2061
@parthasaradhi2061 2 года назад
Thak you so...... Much bro... 😍😍😍😘😘
@VolkovMikhailv01234
@VolkovMikhailv01234 2 года назад
It's better to buy a host on G-core labs servers. Less headache with installation, better price than Amazon, but the quality is not worse. We have been working with them for a year now and are wildly happy that we switched to them from AWS.
@athreyapentester5442
@athreyapentester5442 3 года назад
Thank you man....Good :)
@hariprasatharunnaachalam
@hariprasatharunnaachalam 3 года назад
Bro really these video hepls for us.
@ninaddivekar9727
@ninaddivekar9727 3 года назад
great video thanksss
@rufuswade-usa-7120
@rufuswade-usa-7120 4 года назад
Excellent
@CADDefine
@CADDefine 4 года назад
Thank you! Cheers!
@robertclithero1486
@robertclithero1486 2 года назад
Excellent tutorial! How do you apply your public IP address to a domain?
@sanjayattili2095
@sanjayattili2095 3 года назад
Thank you so much
@daviddonadze221
@daviddonadze221 2 года назад
Million Thanks
@DaNuker
@DaNuker 3 года назад
can i put these commands inside provisioner remote exec within ec2 resource, when making a terraform template?
@isurubandara8987
@isurubandara8987 2 года назад
nice one thanks
@souledone5721
@souledone5721 3 года назад
Can we also create a dynamic sever by installing php in the EC2 instance?
@moeenulislam4189
@moeenulislam4189 2 года назад
First of all thankyou ver much for this great video, it was really helpful though I am facing one problem, my public ec2 ip isn't loading the website
@CADDefine
@CADDefine 2 года назад
Hello, You are welcome. I have updated this tutorial and you can watch it here. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-xGIIUWX3nxw.html&t
@ProkenKey
@ProkenKey 4 года назад
THANK YOU!
@CADDefine
@CADDefine 4 года назад
You're welcome!
@dsreddy1530
@dsreddy1530 3 года назад
excellent
@shotsbydeepanjan26
@shotsbydeepanjan26 2 года назад
How to make the website "secure" brother? And how to add dns; cause IP address can't be memorized easily? Great video btw🔥
@vaticinus
@vaticinus 3 года назад
*Problems* 1. the sample website you use is not the same any more at the source you mentioned. 2. the pair key generated for you by AWS is not compatible with Putty. 3. When I went to the s3 bucket to copy and paste the URL. the url was s3.... not https..... as expected I got an error message. This is where I was unbale to find a solution on my own.
@sritamdas9366
@sritamdas9366 4 года назад
Thanks a lot
@somesh6090
@somesh6090 2 года назад
I tried this got error 403: forbidden while placing wget command The data not downloading through wget command from s3 bucket
@ozgeakat4457
@ozgeakat4457 2 года назад
ACL settings must be public İ mean object READ, object ACL read for everyone, auth.users group
@TheDukeOfZill
@TheDukeOfZill 2 года назад
i want to dump asmallorange and go with this. my domains are on orange, will keep them there, but wanna know how to make the domains connect to the amazon website. also does it have to be a zip? if i want to update one of the pages on the site, do i have to reupload the entire zip again?
@johnoffiong359
@johnoffiong359 3 года назад
I have an issue please, where did you get those index, css, js files from? Please help.
@jepoydeleon1221
@jepoydeleon1221 2 года назад
Hi, I like your tutorial. Question how can you make your site secure?
@brittnieamanda6836
@brittnieamanda6836 Год назад
Hello. Could you put the link to the codepen website that you used to get the website template?
@victorpinasarnault9135
@victorpinasarnault9135 3 года назад
Very nice! But you are a CAD channel?
@CADDefine
@CADDefine 3 года назад
Thanks Victor. I have moved all the AWS tutorials here: ru-vid.com/show-UCxm6ZcNMXMrckKRJPXlDu_w
@ilan_mittelman
@ilan_mittelman 2 года назад
legend
@aditikhanivadekar3825
@aditikhanivadekar3825 2 года назад
Can you make a video on hosting a web application on AWS? It will be very helpful
@tehseenullah215
@tehseenullah215 3 года назад
sir is this same method for uploading adonis.js website which have a mysql database on cpanel?
@bilinsao8730
@bilinsao8730 3 года назад
hello,about AWS Wavelength servers Will you create it?I look it for 2 days but still dont have any result
@vallabhjoshi348
@vallabhjoshi348 3 года назад
How you downloaded your key pair ? Can you tell me please?
@bhushanmahajan9107
@bhushanmahajan9107 3 года назад
thanku dost
@user-se2qs5lc3w
@user-se2qs5lc3w 4 года назад
Thanks, this is excellent! Will it cost a fee to create a bucket ?
@CADDefine
@CADDefine 4 года назад
Thank you. it is free to create a bucket but you get charge for storage and transfers. But the files we are transferring are so small that you wont have a fee.
@nitishprajapati8546
@nitishprajapati8546 3 года назад
@@CADDefine Sir, if I have stopped my EC2 instance, then will i still get charged if I terminate it but not delete it? I have 2 buckets, so will I get charged even if I'm not doing anything with my bucket? And by "transfers" what do you mean? are you referring to uploading of project(zip) folder using putty?
@vineetbasantani
@vineetbasantani 2 года назад
On running the wget command with the correct object URL for zip file, I get Error 403 Forbidden. How do I fix it?
@Harsha_Dasari
@Harsha_Dasari 3 года назад
Brother please explain how to remove or detach the website from the internet also.Orelse just reply for "can we just stop the instance that we created" or is there any process,like stop the https...etc
@Lasagna564
@Lasagna564 3 года назад
where is the linl for the website you used? please help!
@jonnyleung7261
@jonnyleung7261 3 года назад
Why does the EC2 instance need to be updated?
@kishranai6262
@kishranai6262 4 года назад
I am new with AWS one question cant we upload the files directly from our computer to a EC2 instance? what you have done is uploading to S3 and you did a wget in EC2 for the files from S3. Is this necessary a step? Look forward to your reply.
@rodolfobanuelos
@rodolfobanuelos 4 года назад
Same question, thanks.
@CADDefine
@CADDefine 4 года назад
I have created another video explaining the entire process including putty configuration and keypair on windows: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-dhRwKPrum44.html
@kishranai6262
@kishranai6262 4 года назад
@@CADDefineHi thanks for the updated video using putty. But my earlier question is still not being answered in your updated video. Because in your updated video you still uploaded the web files to S3 and then did aws s3 sync s3://remote_S3_bucket local_directory to download the files into EC2 instance directory /var/www/html. My question is it necessary to upload the web files to S3 first? Cant we upload the web files from our local computer directly to /var/www/html instead of going via S3. If it is possible then we can avoid using S3 and also avoid using the aws s3 sync s3://remote_S3_bucket local_directory. Look forward to your reply.
@CADDefine
@CADDefine 4 года назад
@@kishranai6262 Sorry, I attached the wrong link. This is the right video: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-qnn8iVcXJxw.html
@kishranai6262
@kishranai6262 4 года назад
@@CADDefine Hi Thanks a lot for showing how to upload a file from local computer to EC2. Problem with this we need to issue the command several times to upload several files. This is good if you are uploading one file. Is there a way to use FileZila locally and upload several selected folders/or files to EC2 at one go!. If this is possible can u create a video on how to setup the filezila parameters so that it can link with the EC2 for FTP transfer as this will be very useful during development as we constantly upload the changes to the website to see how the changes work. Help much appreciated. If this is not possible is there an alternative way to upload several selected files and folders at one go to EC2.
@mehmetkoyuncuoglu1624
@mehmetkoyuncuoglu1624 2 года назад
I'm trying to deploy my app which has Auth0 technology for authentication, but it doesn't deploy with AWS amplify. Do EC2 deploy my app or Do I need to use other services ?
@varanttchalikian1031
@varanttchalikian1031 Год назад
I am getting a "error 403 forbidden" error when I try to store the file into the html directory. why is that? is it my bucket permissions or something with putty?
@nazimfirdousali6952
@nazimfirdousali6952 4 года назад
how to upload css files including images
@MohammadAmin-jv6xd
@MohammadAmin-jv6xd 2 года назад
Hi, I have followed everything steps by step, but when I try to open the website I get connection timed out. Can anyone please help?
@dannyespitia8840
@dannyespitia8840 3 года назад
i followed all the steps but when i paste the public ip it displays the apache webpage, not the s3 bucket.
@khushigelda5397
@khushigelda5397 3 года назад
same. Do you know what to do next?
Далее
Ayollar orzusidagi er😂😂
01:01
Просмотров 781 тыс.
Building a Website on AWS
42:16
Просмотров 73 тыс.
Intro to AWS - The Most Important Services To Learn
50:07
Hosting a website on AWS EC2 instance
18:02
Просмотров 43 тыс.
Introduction to AWS Services
38:54
Просмотров 2,2 млн
AWS CLI for Beginners: The Complete Guide
1:01:00
Просмотров 166 тыс.