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

Sdílet
Vložit
  • čas přidán 8. 09. 2022
  • 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/vastevenson/php-do...
    Credit: Adam Thomas • Setting up a LAMP Stac...
  • Věda a technologie

Komentáře • 66

  • @ChristopherStetson
    @ChristopherStetson Před rokem +12

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

  • @anilprz
    @anilprz Před rokem +2

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

  • @clemsabarias3191
    @clemsabarias3191 Před 2 měsíci

    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

  • @philippstobe7462
    @philippstobe7462 Před 9 měsíci +2

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

  • @nwokolobueze7291
    @nwokolobueze7291 Před 6 měsíci +1

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

  • @TankTheTanker5
    @TankTheTanker5 Před měsícem

    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!

  • @mouaadibnelaryf6848
    @mouaadibnelaryf6848 Před 6 měsíci

    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

  • @darkvanguard925
    @darkvanguard925 Před 10 měsíci +1

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

  • @mrjoehimself
    @mrjoehimself Před 2 měsíci

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

  • @70630515
    @70630515 Před 10 měsíci

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

  • @MuhammadImran-hw8hy
    @MuhammadImran-hw8hy Před 6 měsíci

    Very nice and detailed tutorial.

  • @edmoremusvibe8480
    @edmoremusvibe8480 Před rokem

    Thank you so much, keep up the good work

  • @thiagofraga1280
    @thiagofraga1280 Před 10 měsíci +5

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

  • @car2208
    @car2208 Před 7 měsíci

    Fantastic job!

  • @Abdulrahman-Mohamed
    @Abdulrahman-Mohamed Před rokem

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

  • @hisgenerals3793
    @hisgenerals3793 Před 4 dny

    Fantastic work

  • @user-ss2tl1cy9x
    @user-ss2tl1cy9x Před 7 měsíci

    Excellent tutorial

  • @ozodbekjuraev9268
    @ozodbekjuraev9268 Před 6 měsíci

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

  • @enterb7643
    @enterb7643 Před 10 měsíci

    very useful, thank you!

  • @jojob_clips269
    @jojob_clips269 Před 5 měsíci

    Just saw this. thanks for this!

  • @AliceCharade
    @AliceCharade Před 4 měsíci

    Thank you so much :) you really helped me out

  • @krstech1269
    @krstech1269 Před rokem

    Thank you for resolving fatal error mysqli.

  • @lsd4576
    @lsd4576 Před 29 dny

    Really helpful!👏

  • @TheJvorte
    @TheJvorte Před 14 dny

    just perfect! thanks!

  • @mortezarostami3287
    @mortezarostami3287 Před 9 měsíci

    great job!!

  • @hasanmougharbel8030
    @hasanmougharbel8030 Před rokem

    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.

  • @X-factor6
    @X-factor6 Před 6 měsíci

    really awsome video

  • @ripplesr5655
    @ripplesr5655 Před rokem

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

  • @linesave754son2
    @linesave754son2 Před rokem

    thank you very much friend from peru

  • @CENTRALFCP
    @CENTRALFCP Před 5 měsíci

    great video, thanks a lot :)

  • @srishtiv424
    @srishtiv424 Před rokem

    It was a great Tutorial

  • @user-os6oe6ww3e
    @user-os6oe6ww3e Před 5 měsíci

    thanks for your help.

  • @dtb8008
    @dtb8008 Před rokem

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

  • @user-yo5oz5td6h
    @user-yo5oz5td6h Před měsícem

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

  • @gowiththeprogram
    @gowiththeprogram Před rokem +1

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

  • @monsterteddy787
    @monsterteddy787 Před rokem

    What about when we have multiple php files. ??

  • @ricardodelacrvz1400
    @ricardodelacrvz1400 Před rokem

    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.

  • @karuifeather
    @karuifeather Před 9 měsíci

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

  • @Autonomous4kpsf
    @Autonomous4kpsf Před 8 měsíci

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

  • @TahaBolat-sn6ib
    @TahaBolat-sn6ib Před 4 dny

    You are a legend

  • @QubitTechnologies
    @QubitTechnologies Před rokem

    good one.

  • @rashmirsd
    @rashmirsd Před 5 měsíci

    Can we have this setup done with DevContainers in vscode ?

  • @Salamaleikum80
    @Salamaleikum80 Před 9 měsíci +7

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

    • @ShayanKhan-te5zv
      @ShayanKhan-te5zv Před 4 měsíci +2

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

  • @ddobren5
    @ddobren5 Před 8 měsíci

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

  • @hozay6552
    @hozay6552 Před 17 dny

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

  • @gandal_
    @gandal_ Před 9 měsíci

    Thank you

  • @ahmedalturkmani622
    @ahmedalturkmani622 Před 5 měsíci

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

  • @darrenedward9503
    @darrenedward9503 Před 4 měsíci

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

  • @Gery-zg7ky
    @Gery-zg7ky Před 5 měsíci

    bro thank you

  • @ShayanKhan-te5zv
    @ShayanKhan-te5zv Před 4 měsíci

    class "mysqli" not found

  • @user-hj5by3sm7z
    @user-hj5by3sm7z Před rokem

    I from Russia. Thank you, bro)😘

  • @tobbeeleeto
    @tobbeeleeto Před rokem +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 Před rokem +9

      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 Před 29 dny

      @@ArnoBarzan Livesaver of a comment

  • @sultansabdopandito776
    @sultansabdopandito776 Před měsícem

    Terimakasih banyakk

  • @pikazap6672
    @pikazap6672 Před rokem +1

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

  • @shadeis9276
    @shadeis9276 Před měsícem

    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 Před měsícem

      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

  • @cbbcbb6803
    @cbbcbb6803 Před rokem

    It looks like you are using windows.

  • @valeriakoss2859
    @valeriakoss2859 Před 6 měsíci

    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 Před 4 měsíci

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