Run Apache in Docker Example - Host Your Website from Local Files with Docker's Httpd Image

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ธ.ค. 2024

ความคิดเห็น • 23

  • @samweimer3914
    @samweimer3914 9 หลายเดือนก่อน +2

    You are very good at explaining WHY things work the way they work and WHY you are doing something a particular way. Very good tutorial. Thank you

    • @cameronmcnz
      @cameronmcnz  9 หลายเดือนก่อน

      Then why don't my videos get any views???
      I've started changing the way I record videos and am getting in front of the camera. Let's hope more people will start seeing my stuff!

  • @mdabdulmca
    @mdabdulmca 7 หลายเดือนก่อน +1

    comprehensive in less than 8 mins. Thank you

    • @cameronmcnz
      @cameronmcnz  7 หลายเดือนก่อน +1

      I've tried to make my videos short and to the point. But, what I learned is that TH-cam can only put in a long ad after 8 minutes, so the algo doesn't promote shorter videos as much because there's not as much $$$ to be made. Apparently I should be rambling about world politics a little more.
      Thanks for watching and commenting! I really appreciate it!

  • @st.toussaint4632
    @st.toussaint4632 10 หลายเดือนก่อน +1

    Straight to the point and I will be using this in my DevOps projects

    • @cameronmcnz
      @cameronmcnz  10 หลายเดือนก่อน

      It's the only way to do it!
      Thanks for watching and commenting!

  • @darrenvarley105
    @darrenvarley105 ปีที่แล้ว +1

    I'm new to docker (started looking into it like one day ago). I get the concept, but I was having trouble understanding two things. One was how do you actually save information once the container is stopped. The second was how to get a server like apache in docker to load a folder inside Windows. This clears up a lot, thanks.
    Next thing I'm going to want to look in to is how do I update apache settings? Do I edit the container files directly than build a new image... or do I run docker commands to edit apaches settings every time I open it like the way we changed the location of the website files?
    Also have to look in to setting up mySql so I can run a personal wiki site... I imagine Ill have try to do them all through Docker.
    Im sure once I figure all this out, everything will make sense for future installs.

    • @ibrahimhuseynli1036
      @ibrahimhuseynli1036 ปีที่แล้ว

      I started learning about it recently too! For you question regarding saving the files, you can mount the files to your local machine, so you won’t lose any files.

  • @leclerccyril7601
    @leclerccyril7601 2 ปีที่แล้ว

    it is strange because i launch same command fronm linux and i have nothing into htdocs directory and only index of empty page is displayed, any idea ?

    • @darrenvarley105
      @darrenvarley105 ปีที่แล้ว

      The $ sign and curly braces {pwd} are for Windows paths ... the Linux equivelent is for a path is regular brackets $(pwd)

  • @ddobren5
    @ddobren5 ปีที่แล้ว +1

    htaccess doesnt apply to the web page

    • @cameronmcnz
      @cameronmcnz  ปีที่แล้ว

      What do you mean?

    • @ddobren5
      @ddobren5 ปีที่แล้ว +1

      I create normal mysql, php, phpmyadmin and apache container and it works but when I create .htaccess and add some code to it i always getting Internal server error 500@@cameronmcnz

  • @donnyjoe7653
    @donnyjoe7653 2 ปีที่แล้ว +2

    So nice. Thank you! :*

    • @cameronmcnz
      @cameronmcnz  2 ปีที่แล้ว

      So glad I could help. Apache and Docker seems to be really under-represented. Lots of Nginx. Not a lot of Apache.

  • @MathoAvito
    @MathoAvito 2 ปีที่แล้ว +1

    Amazing. Thanks!

    • @cameronmcnz
      @cameronmcnz  2 ปีที่แล้ว

      Thanks. I wasn't sure what to put into a quick 'Apache and Docker' tutorial. I figured this at least gets you started. Once you get things going, you can start using volumes and maybe even updating Apache configuration data. Was thinking about some videos like that too.

    • @MathoAvito
      @MathoAvito 2 ปีที่แล้ว +1

      @@cameronmcnz actually, I would be happy to see a full guide, includes the index.html and css files.
      I know that it is not really related to Docker but a full guide with Docker-Apache and html-CSS-JS is ultimate one!

    • @cameronmcnz
      @cameronmcnz  2 ปีที่แล้ว

      @@MathoAvito I stole it all from a very Scrumtuous website. :)
      www.scrumtuous.com/aws/exam/2022/01/01/css-javascript-html-files.html

  • @caiocesarmelolopes2156
    @caiocesarmelolopes2156 2 ปีที่แล้ว +1

    amazing!

    • @cameronmcnz
      @cameronmcnz  2 ปีที่แล้ว

      Thanks for the vote of confidence, Cesar!

  • @maxwellwalter506
    @maxwellwalter506 2 ปีที่แล้ว +1

    😀 Prⓞм𝕠𝕤𝐌