Build a Full Stack Web App in PHP and MySQL with Docker from scratch!

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ส.ค. 2024
  • I walk through how to create a full stack web application in Php with a MySql database by running Docker containers. I show how to modify the docker-compose.yml file to define the images and configuration settings needed to run your web app.
    GitHub repo link: github.com/vas...
    Credit: Adam Thomas • Setting up a LAMP Stac...

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

  • @MatthewPennell
    @MatthewPennell 11 วันที่ผ่านมา

    Excellent, clear tutorial - so much easier than fighting with PHP versions on Ubuntu with WSL.

  • @ChristopherStetson
    @ChristopherStetson ปีที่แล้ว +14

    Great tutorial! Best one I've seen on this so far, actually. Thank you!

  • @clemsabarias3191
    @clemsabarias3191 3 หลายเดือนก่อน

    Great tutorial! I was stuck with the mysqli dependency error and you are the only one who managed to find the way. This is a great method as now i can update anything like the way things done when not using Docker

  • @TankTheTanker5
    @TankTheTanker5 2 หลายเดือนก่อน

    Bro, you saved my final project, really really thank you. You explain very very well, and i hope you still make quality content like this. Keep it up!

  • @thiagofraga1280
    @thiagofraga1280 11 หลายเดือนก่อน +5

    1:50 funny bro. btw recently I'm using docker more than any other tool because of easy configurations like that. really good

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

    You just won a free subscriber :) This tutorial was all I needed to solve a puzzle I had.

  • @mrjoehimself
    @mrjoehimself 3 หลายเดือนก่อน

    Well done! You have a great nack for these tutorials, and a great speaking voice, keep it up!

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

    One of the BEST tutorial I have found. Thank you so much.

  • @mouaadibnelaryf6848
    @mouaadibnelaryf6848 7 หลายเดือนก่อน

    thanks man, this was very helpful, i wish i could've found your tutoriel earlier, it would have saved me a from a lot of struggle

  • @70630515
    @70630515 11 หลายเดือนก่อน

    I'm a new to docker, thanks for you tutorial. this makes me figure out that what docker is...

  • @SohaibShaheen
    @SohaibShaheen 4 วันที่ผ่านมา

    Amazing Work... really easy to follow

  • @philippstobe7462
    @philippstobe7462 10 หลายเดือนก่อน +2

    Thank you for the video, exactly what we needed.
    You explained it so well :)

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

    Fantastic work

  • @darkvanguard925
    @darkvanguard925 11 หลายเดือนก่อน +1

    Thanks dude! Great tutorial this really helped me a lot!

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

    just perfect! thanks!

  • @lsd4576
    @lsd4576 2 หลายเดือนก่อน

    Really helpful!👏

  • @TahaBolat-sn6ib
    @TahaBolat-sn6ib หลายเดือนก่อน

    You are a legend

  • @Salamaleikum80
    @Salamaleikum80 10 หลายเดือนก่อน +7

    One thing feels off. Why do you need to "install" mysqli every time docker runs the image?

    • @ShayanKhan-te5zv
      @ShayanKhan-te5zv 5 หลายเดือนก่อน +2

      how did you installed it? I'm new to docker and didn't get it

  • @wlliammello6919
    @wlliammello6919 6 วันที่ผ่านมา

    Excelente tutorial! Ajudou bastante. Mas, como faria pra instalar o mysqli já no momento que o container php sobe ? sem a necessidade de fazer isso manualmente ?

  • @MuhammadImran-hw8hy
    @MuhammadImran-hw8hy 7 หลายเดือนก่อน

    Very nice and detailed tutorial.

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

    Thank you for resolving fatal error mysqli.

  • @ozodbekjuraev9268
    @ozodbekjuraev9268 7 หลายเดือนก่อน

    thank you so much, I leant a lot from you today

  • @jojob_clips269
    @jojob_clips269 6 หลายเดือนก่อน

    Just saw this. thanks for this!

  • @car2208
    @car2208 8 หลายเดือนก่อน

    Fantastic job!

  • @user-ss2tl1cy9x
    @user-ss2tl1cy9x 8 หลายเดือนก่อน

    Excellent tutorial

  • @Abdulrahman-Mohamed
    @Abdulrahman-Mohamed ปีที่แล้ว

    thanks buddy vey much hope you make more similar videos🥰🤙👍👍

  • @user-yo5oz5td6h
    @user-yo5oz5td6h 2 หลายเดือนก่อน

    thanks it works, i just want to know how to add extension when in docker yml file?

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

    Thank you so much, keep up the good work

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

    After I recompose the container, will I have to reinstall the `sqli` package again?

  • @stormybear4986
    @stormybear4986 4 วันที่ผ่านมา

    You kept saying you were pressing "control save" on your keyboard My windows 10 keyboard doesn't have a save button.

  • @AliceCharade
    @AliceCharade 5 หลายเดือนก่อน

    Thank you so much :) you really helped me out

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

    thank you very much friend from peru

  • @ahmedalturkmani622
    @ahmedalturkmani622 6 หลายเดือนก่อน

    My friend, when I wrote docker-compose up in the terminal I got no configuration file provided: not found what should I do?

  • @enterb7643
    @enterb7643 11 หลายเดือนก่อน

    very useful, thank you!

  • @X-factor6
    @X-factor6 7 หลายเดือนก่อน

    really awsome video

  • @CENTRALFCP
    @CENTRALFCP 6 หลายเดือนก่อน

    great video, thanks a lot :)

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

    Can this be used in production to host my own website? Also, will you please talk about SSL?

  • @darrenedward9503
    @darrenedward9503 5 หลายเดือนก่อน

    would it not be easier to save the mysql data directory to localhost via volume, or am i missing something? ps: newbie to docker

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

    great job!!

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

    do we have to manually install mysql cli is there a docker image php-apache-mysqlcli that has already included

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

    Great walkthrough. Nowhow do you deploy this on remote host?

  • @user-hj5by3sm7z
    @user-hj5by3sm7z ปีที่แล้ว

    I from Russia. Thank you, bro)😘

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

    Hey there, glad to meet you again with another enquiry.
    Is there any approach or tools through which i can design sql applications that is simultaneously compatible with both Mac
    and windows systems. The application is not tied to a website but it is an application to be placed over a network
    in a company (client-server relation network).
    Thanks for giving me any advice on this.

  • @user-os6oe6ww3e
    @user-os6oe6ww3e 6 หลายเดือนก่อน

    thanks for your help.

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

    It was a great Tutorial

  • @naveenbisht4627
    @naveenbisht4627 17 วันที่ผ่านมา

    Cool.

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

    everything works as shown but do you know how to get live reload working for this dev setup?

  • @Rin-zv7zv
    @Rin-zv7zv 15 วันที่ผ่านมา

    Thanks

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

    Im trying to dockerize a php mysql application thats i already done. Tho I didnt use any mysqli queries in my app. I used only PDO globals all around. Do I have to change the last part to a different method instead of mysqli to a pdo? I really have to read the doc on that. Thank you tho.

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

    Awesome tutorial!
    What if i dont want to write the "docker-php-ext-install mysqli" command every time i start up my container - can i use a dockerfile for this ? and then where to put it and what should i write in it ?

    • @ArnoBarzan
      @ArnoBarzan ปีที่แล้ว +10

      Yes, create a Dockerfile and add the following:
      FROM php:8.2-apache
      RUN docker-php-ext-install mysqli
      RUN service apache2 restart
      Then replace 'image: php:apache' with 'build: .' in the yml file (if the Dockerfile is in the same directory as the yml-file).

    • @AlfComputing-dl2xv
      @AlfComputing-dl2xv 2 หลายเดือนก่อน

      @@ArnoBarzan Livesaver of a comment

  • @sultansabdopandito776
    @sultansabdopandito776 2 หลายเดือนก่อน

    Terimakasih banyakk

  • @rashmirsd
    @rashmirsd 6 หลายเดือนก่อน

    Can we have this setup done with DevContainers in vscode ?

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

    Would I be able to have read and write permissions to create new files for example with this docker setup?

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

    Nice, but why htaccess doesn't work. How do I fix it?

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

    What about when we have multiple php files. ??

  • @shadeis9276
    @shadeis9276 2 หลายเดือนก่อน

    Unfortunately this tutorial only works if you want to run it on your device or others' device through localhost, you can't deploy it to a remote host. :(

    • @shadeis9276
      @shadeis9276 2 หลายเดือนก่อน

      If anyone is trying to deploy a full-stack PHP, MySQL, and Apache Web, refrain from using Docker if you don't have a solid understanding of it.
      I found this playlist of tutorials to deploy it through a Linux VM (DigitalOcean droplet). This is better if you are a beginner. www youtube com/playlist?list=PL4apNHBRJVlQ56Pj3BS2CfxhavTAV3MLd

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

    Thank you

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

    Como seria un crud por ejemplo

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

    good one.

  • @ShayanKhan-te5zv
    @ShayanKhan-te5zv 5 หลายเดือนก่อน

    class "mysqli" not found

  • @Gery-zg7ky
    @Gery-zg7ky 6 หลายเดือนก่อน

    bro thank you

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

    Maybe I will need something more than notepad.. I guess?

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

    It looks like you are using windows.

  • @valeriakoss2859
    @valeriakoss2859 7 หลายเดือนก่อน

    i'm working on macos and got a "failed opening required '/var/www/html/index.php' " issue after opening on a localhost:80

    • @nrftnmsyra
      @nrftnmsyra 5 หลายเดือนก่อน

      hii, may i ask did you manage to solve the problem? because i need the solution for this. i also encountered the same problem