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

Поделиться
HTML-код
  • Опубликовано: 23 янв 2025

Комментарии • 239

  • @worldimmigrationandeducati4901
    @worldimmigrationandeducati4901 3 года назад +15

    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 года назад +8

      Hello, Thank you for the feedback. I have recreated this tutorial here with all the steps: ruclips.net/video/dhRwKPrum44/видео.html&t. Thanks.

    • @rafaeljm3204
      @rafaeljm3204 3 года назад +19

      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 года назад +21

      You don't know how to download putty? U don't have business here bro

    • @mrman880
      @mrman880 2 года назад

      Maybe just don't be a dumbass?

  • @mattst.hilaire9101
    @mattst.hilaire9101 3 года назад +60

    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.

  • @austinperrine23
    @austinperrine23 Год назад +1

    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 года назад +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.

  • @Intu11110
    @Intu11110 3 года назад +3

    Finally a quick and simple demo! Thank you sir.

  • @CoffeeDuoes
    @CoffeeDuoes 2 года назад +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 ?

  • @saicharan4649
    @saicharan4649 3 года назад +3

    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

  • @ankitalohia2371
    @ankitalohia2371 3 года назад

    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

  • @ebros2898
    @ebros2898 2 года назад

    I got to 9:50 when I type the object url it says error 403 permission denied

  • @kahegames
    @kahegames 2 года назад

    EXCELLENT TUTORIAL, JUST SAVED MY ASS FOR A FINAL PROJECT

  • @tanclementi
    @tanclementi 2 года назад

    Thanks for the very detailed and clear step-by-step guide!

  • @TheDukeOfZill
    @TheDukeOfZill 3 года назад

    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?

  • @Ijusthaveacamera
    @Ijusthaveacamera 4 года назад +1

    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  4 года назад +5

      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  4 года назад +3

      You can watch the full project here: ruclips.net/p/PL184oVW5ERMAZ99fMM8vBso6JwqAbezBq

  • @brittnieamanda6836
    @brittnieamanda6836 Год назад

    Hello. Could you put the link to the codepen website that you used to get the website template?

  • @somesh6090
    @somesh6090 3 года назад +2

    I tried this got error 403: forbidden while placing wget command
    The data not downloading through wget command from s3 bucket

    • @ozgeakat4457
      @ozgeakat4457 3 года назад +1

      ACL settings must be public İ mean object READ, object ACL read for everyone, auth.users group

  • @kanchanpathak9752
    @kanchanpathak9752 3 года назад +1

    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

  • @avinashpowar8768
    @avinashpowar8768 3 года назад

    very informative for intermediate students

  • @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?

  • @huxley8930
    @huxley8930 4 года назад +1

    Great Video my Naija bro

    • @CADDefine
      @CADDefine  4 года назад

      Lol, Thank you brother, your feedback is appreciated

  • @bilinsao8730
    @bilinsao8730 3 года назад

    hello,about AWS Wavelength servers
    Will you create it?I look it for 2 days but still dont have any result

  • @Hardeepsingh-od2mb
    @Hardeepsingh-od2mb 2 года назад

    When i use command wget url of zip file then 403 forbidden error occur ,,, how to fix it @CADdefine????????????
    ???????????????⚠️⚠️⚠️⚠️⚠️

  • @ahmadziyad8709
    @ahmadziyad8709 3 года назад

    nice work, step by step explained.

  • @mehmetkoyuncuoglu1624
    @mehmetkoyuncuoglu1624 3 года назад

    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 ?

  • @harmandeepsingh6665
    @harmandeepsingh6665 2 года назад

    An error during wget command (403 forbidden) ..how to solve this .

  • @vaticinus
    @vaticinus 3 года назад +1

    *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.

  • @vallabhjoshi348
    @vallabhjoshi348 3 года назад

    How you downloaded your key pair ? Can you tell me please?

  • @chigozie_jesse
    @chigozie_jesse 5 лет назад +6

    This was just what i needed. Thanks

  • @vinaysk03
    @vinaysk03 3 года назад

    great work thank you easy...one question, do i need to repeat all steps if i make changes in my webpage?

  • @adamasimolowo8285
    @adamasimolowo8285 3 года назад

    Is there a reason why you use 'yum' instead of 'apt' to install packages?

    • @AOSNote
      @AOSNote 3 года назад +1

      Hi Adam,
      Using 'yum' or 'apt' depends on which Linux distro you are using. For example the Cent OS Linux distro uses 'yum' and the Ubuntu distro uses 'apt'

    • @adamasimolowo8285
      @adamasimolowo8285 3 года назад

      @@AOSNote Thank you !

  • @himanshuneve4727
    @himanshuneve4727 3 года назад

    Sir how to get ssl to be on https.

  • @me_isha_2022
    @me_isha_2022 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

  • @akshatsingh1930
    @akshatsingh1930 3 года назад

    Where is the link for website download??

  • @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. ruclips.net/video/xGIIUWX3nxw/видео.html&t

  • @johnoffiong359
    @johnoffiong359 3 года назад

    I have an issue please, where did you get those index, css, js files from? Please help.

  • @souledone5721
    @souledone5721 3 года назад

    Can we also create a dynamic sever by installing php in the EC2 instance?

  • @DaNuker
    @DaNuker 4 года назад

    can i put these commands inside provisioner remote exec within ec2 resource, when making a terraform template?

  • @Lasagna564
    @Lasagna564 4 года назад

    where is the linl for the website you used? please help!

  • @jaseelt2746
    @jaseelt2746 4 года назад

    im facing trouble can you help? i entered command mv website/* . then shows no directory found and how to solve this problems.

    • @CADDefine
      @CADDefine  4 года назад

      Make sure you have install apache with the "yum install httpd -y" command. Then the /var/www/html directory will be available.

  • @thespianoflife
    @thespianoflife 3 года назад

    Excellent video.This was just what i needed.

  • @CADDefine
    @CADDefine  4 года назад +6

    You can watch the full project here: ruclips.net/p/PL184oVW5ERMAZ99fMM8vBso6JwqAbezBq
    I have created another video explaining the entire process including putty configuration, keypair, IAM role, and security groups on windows: ruclips.net/video/dhRwKPrum44/видео.html

  • @PS-vc6ef
    @PS-vc6ef 5 лет назад +3

    This is excellent! Thank you for the video and please keep them coming!

    • @CADDefine
      @CADDefine  4 года назад

      ruclips.net/channel/UCxm6ZcNMXMrckKRJPXlDu_w?view_as=subscriber

  • @sansam9142
    @sansam9142 2 года назад

    Please i was getting error 403 forbidden

  • @FPLNATION1
    @FPLNATION1 4 года назад

    can u fix this my webite is not responding it shows apache
    service httpd start
    Redirecting to /bin/systemctl start httpd.service
    pls
    fix this

    • @dannyespitia8840
      @dannyespitia8840 4 года назад

      i got the same issue as you, did you find the solution??

    • @FPLNATION1
      @FPLNATION1 4 года назад

      @@dannyespitia8840 yes

  • @MohammadAmin-jv6xd
    @MohammadAmin-jv6xd 3 года назад

    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?

  • @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.

  • @skrezwan12
    @skrezwan12 3 года назад

    wow.. your website was so interesting..

  • @dannyespitia8840
    @dannyespitia8840 4 года назад

    i followed all the steps but when i paste the public ip it displays the apache webpage, not the s3 bucket.

  • @mohammedjuma9173
    @mohammedjuma9173 4 года назад +3

    Great video except you missed to explain how to change the .pem file to .ppk "the private key" to access the AWS instance!

  • @robertclithero1486
    @robertclithero1486 3 года назад +1

    Excellent tutorial! How do you apply your public IP address to a domain?

  • @broadwaynetworksecurity1560
    @broadwaynetworksecurity1560 4 года назад

    Hi I face a problem when change directory that no directory or file found can you pls help me to solve the same?

    • @CADDefine
      @CADDefine  4 года назад

      Hello, that means that you have not install Apache server. Use this command "yum install httpd -y" to install Apache server, and it will create the directory for you.

  • @victorpinasarnault9135
    @victorpinasarnault9135 3 года назад +1

    Very nice!
    But you are a CAD channel?

    • @CADDefine
      @CADDefine  3 года назад

      Thanks Victor. I have moved all the AWS tutorials here: ruclips.net/channel/UCxm6ZcNMXMrckKRJPXlDu_w

  • @tehseenullah215
    @tehseenullah215 4 года назад

    sir is this same method for uploading adonis.js website which have a mysql database on cpanel?

  • @NaturalKiller
    @NaturalKiller 4 года назад

    I need to run a php file, but when i opened it into the public ip i just having the code but not the php working, can you help me?

    • @CADDefine
      @CADDefine  4 года назад +1

      This process does not work for PHP deployment. You have to install the PHP package on your ec2 instance.

  • @nandant.8842
    @nandant.8842 2 года назад

    Amazing video!!

  • @abhatiwari4145
    @abhatiwari4145 4 года назад

    Why website is running on http and not Https by following this tutorial

  • @brockobama257
    @brockobama257 4 года назад

    Where is the physical location of var/www/html? My machine? Does Apache have it? Amazon? I am clueless please enlighten me.

    • @CADDefine
      @CADDefine  4 года назад

      Hello Jacob, the var/www/html is a directory on your machine. By machine, I mean your ec2 instance. Also, think of a directory as a folder that is on your ec2 instance. The "var/www/html" directory will be created on your ec2 instance when you install apache on it.

  • @sajadkaruthedath103
    @sajadkaruthedath103 4 года назад +2

    Nice and simple explanation!. very helpful. Thank you :)

  • @jonnyleung7261
    @jonnyleung7261 4 года назад

    Why does the EC2 instance need to be updated?

  • @sylviadasilva2557
    @sylviadasilva2557 2 года назад

    Perfekt, really good Job ⭐️⭐️⭐️⭐️⭐️

  • @kishranai6262
    @kishranai6262 4 года назад +1

    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: ruclips.net/video/dhRwKPrum44/видео.html

    • @kishranai6262
      @kishranai6262 4 года назад +1

      @@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: ruclips.net/video/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.

  • @erczy
    @erczy 2 года назад

    Thank you for this super video❤

  • @parthasaradhi2061
    @parthasaradhi2061 2 года назад

    Thak you so...... Much bro... 😍😍😍😘😘

  • @ArsenGTS
    @ArsenGTS 3 года назад

    Good job, my friend!

  • @abhishek_m89
    @abhishek_m89 3 года назад

    Awsome Explaining man. Kudos to you. 🥂

  • @anandthakur3142
    @anandthakur3142 4 года назад

    I followed the steps, got Apache is running successfully but the html page is not loading from directory. It says "You may now add content to the directory /var/www/html/. "
    Please suggest , any help is appreciated

    • @dannyespitia8840
      @dannyespitia8840 4 года назад

      i got the same issue as you, did you find the solution?

  • @halimataminu1423
    @halimataminu1423 2 года назад

    Just what I needed

  • @christianjamel6987
    @christianjamel6987 3 года назад

    I followed every single steps but all I can see when I copy and paste my public ip address is Apache Test Page and I don't know where did I go wrong..

    • @CADDefine
      @CADDefine  3 года назад

      Hey Christian. The Apache test page means that you have configured everything correctly but your Webfiles are not in the html directory. cd into the /var/www/html directory and check if your Webfiles are there.

  • @dayanandkadalgere6116
    @dayanandkadalgere6116 4 года назад

    if upload the changed file into bucket, does website get updated?

    • @CADDefine
      @CADDefine  4 года назад +1

      Hi Dayanand, No, it does not update automatically. You will have to update your ec2 manually.

  • @randomapperatus3773
    @randomapperatus3773 4 года назад

    How do I make this accessible by a user typing in a domain I own?

    • @p.mcdrippln2340
      @p.mcdrippln2340 4 года назад +1

      I think route 53

    • @randomapperatus3773
      @randomapperatus3773 4 года назад

      @@p.mcdrippln2340 yep got it. It was nerve racking doing this for the first time. Too much room for error lol

    • @p.mcdrippln2340
      @p.mcdrippln2340 4 года назад +1

      @@randomapperatus3773 Honestly, the first time I did it I did elastic beanstalk to route 53 and I screwed up my dns but I figured it out (basically I had to clear it on my Mac) but honestly anytime I touch anything in AWS I wait for a bomb to explode.

  • @drusttaib607
    @drusttaib607 4 года назад

    why amazon is so confusing, I was using smarterasp before and it only takes 4 to 5 clicks to publish your website

    • @goldfoxlcp4216
      @goldfoxlcp4216 4 года назад

      AWS is more than just a website hosting service, so it's going to be a bit more complex in order to maintain high security and compatibility with its other services.

  • @ubbungroup8481
    @ubbungroup8481 4 года назад

    can u create tutorial host website php and mysql then create phpadmin and conected file index to mysql phpmyadmin.

    • @CADDefine
      @CADDefine  4 года назад

      Yes I am working on it. Stay tune.

  • @SuryaPrakashbabul
    @SuryaPrakashbabul 3 года назад

    Nicely explanined. Thank you so much,

  • @oOoOHZombBees
    @oOoOHZombBees 2 года назад

    Thank you fren! ♥️♥️♥️

  • @MsGrandGaming
    @MsGrandGaming 4 года назад +1

    Great Video! Really helped

  • @jepoydeleon1221
    @jepoydeleon1221 2 года назад

    Hi, I like your tutorial. Question how can you make your site secure?

  • @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

  • @dblkickflip720
    @dblkickflip720 4 года назад +1

    you are a life saver

    • @jeandedji6153
      @jeandedji6153 4 года назад

      Hello Sir please do I have to use /var/www/html for react to?

  • @esthergambrell3551
    @esthergambrell3551 4 года назад

    Like others have mentioned I am also receiving a TEST PAGE from Apache. I'm BRAND new to AWS, so I just followed your instructions to the "t" on your video. Not sure what is going on.

    • @CADDefine
      @CADDefine  4 года назад

      Hello Esther, receiving the Test Page means that you have configured your EC2, security groups and Apache server properly. To troubleshoot this issue, navigate to the var/www/html directory on your EC2 instance and check if your html file is there. This is the web files that I use, try using mine and see you you get the same result.drive.google.com/file/d/1bMSOI5vHlN4p468fWM1UGi6jFr4giJWX/view?usp=sharing. I have also updated this video and you can find the updated version here:ruclips.net/video/dhRwKPrum44/видео.html

    • @CADDefine
      @CADDefine  4 года назад

      ruclips.net/video/R1qDgzerY1M/видео.html

  • @hansangjung6063
    @hansangjung6063 3 года назад

    Thank you. It's just what I have wanted.

  • @envyza7869
    @envyza7869 3 года назад

    Where you get ec2key.ppk?

  • @IIIORizkiBhaskaraMulyaEfendi
    @IIIORizkiBhaskaraMulyaEfendi 4 года назад

    i need your help bro. why i cant do wget object url link? and the output is HTTP request sent, awaiting response... 403 Forbidden. I need your help so much, thanks

    • @CADDefine
      @CADDefine  4 года назад

      Rizki Bhaskara Mulya Efendi, hello. You usually get that error if the right permissions are not granted. Have you made the bucket and it’s object public?

    • @IIIORizkiBhaskaraMulyaEfendi
      @IIIORizkiBhaskaraMulyaEfendi 4 года назад

      @@CADDefine Oh I see, but how if i want deploy which is contain Framework like CodeIgniter?

  • @SAURABHGUPTA_DINOSAUR
    @SAURABHGUPTA_DINOSAUR 2 года назад

    why didn't he just made that bucket and velocity object public and hosted directly from S3??!!

  • @ankitaburman5406
    @ankitaburman5406 3 года назад

    Thank you so much for this sir.

  • @neenaprasanna
    @neenaprasanna 3 года назад

    Tx lots..it helped me lot

  • @190rajib
    @190rajib 4 года назад

    is it work on windows ec2 instance?

    • @singerh74
      @singerh74 4 года назад

      You always want to get the latest update and security patches

  • @KingTheGreat12
    @KingTheGreat12 2 года назад

    Nice video, thanks

  • @noeldolan518
    @noeldolan518 4 года назад

    Great video, nice clear step by step approach. :)

    • @CADDefine
      @CADDefine  4 года назад

      Glad it was helpful!

  • @aditikhanivadekar3825
    @aditikhanivadekar3825 2 года назад

    Can you make a video on hosting a web application on AWS?
    It will be very helpful

  • @raviteja8674
    @raviteja8674 3 года назад

    Great job bro. Thank you.

  • @kainatmaqsood3573
    @kainatmaqsood3573 4 года назад

    what is equivalent of mv velocity/* . for ubuntu

  • @soujatyabhattacharya1530
    @soujatyabhattacharya1530 3 года назад

    Thank You Bro ☺️☺️

  • @hariprasatharunnaachalam
    @hariprasatharunnaachalam 3 года назад

    Bro really these video hepls for us.

  • @piyushparwani4578
    @piyushparwani4578 4 года назад

    where do i get the key pair from

    • @CADDefine
      @CADDefine  4 года назад

      Hello Piyush, I will make another video explaining the entire process. Look out for it tomorrow. But you can create the keypair in the AWS management console. select ec2 service and you should see keypairs on the low left side of your screen. Select it and click "create keypair". But I will make another video tomorrow.

  • @drensilva562
    @drensilva562 4 года назад

    work for php site?

  • @scotishdude
    @scotishdude 2 года назад

    GANGSTA! TY you legend!

  • @kawaljeetsingh8882
    @kawaljeetsingh8882 4 года назад

    Excellent bro thanx for upload great video

    • @CADDefine
      @CADDefine  4 года назад

      Thank you kawaljeet and I appreciate your feedback. You can also watch the full project here: ruclips.net/p/PL184oVW5ERMAZ99fMM8vBso6JwqAbezBq

  • @hema-zx3cc
    @hema-zx3cc 4 года назад

    bro , how did u get the ec2key file

    • @CADDefine
      @CADDefine  4 года назад

      ruclips.net/video/34XZeexwPro/видео.html

  • @gibsgibus
    @gibsgibus 4 года назад

    help ! everything goes well until the PuTTY part where I have to enter my private key that I downloaded from AWS. My key has a .pem extension which is not recognised by the latest version of PuTTY. I've tried to rename my key's extension to .pkk but it's still not working. What can I do ? Great video by the way ! :)

    • @CADDefine
      @CADDefine  4 года назад

      Hello Anthony, you have to use puttygen to convert the pem file to a ppk file. Alternatively, you can also download your keypair in ppk format from the aws management console (this is the easiest way). I explained that step in the following video. ruclips.net/video/34XZeexwPro/видео.html

    • @CADDefine
      @CADDefine  4 года назад

      fyi, this is the video on how to convert pem file to ppk file. ruclips.net/video/6OzOxjFSc90/видео.html

  • @Ash_Industries
    @Ash_Industries 3 года назад

    Great video, thanks.