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

  Рет қаралды 57,029

Vincent Stevenson

2 жыл бұрын

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-docker-full-stack
Credit: Adam Thomas kzbin.info/www/bejne/sIjcmJqui5pkpbM

Пікірлер: 76
@ChristopherStetson
@ChristopherStetson Жыл бұрын
Great tutorial! Best one I've seen on this so far, actually. Thank you!
@MatthewPennell
@MatthewPennell Ай бұрын
Excellent, clear tutorial - so much easier than fighting with PHP versions on Ubuntu with WSL.
@TankTheTanker5
@TankTheTanker5 4 ай бұрын
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!
@clemsabarias3191
@clemsabarias3191 4 ай бұрын
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
@nwokolobueze7291
@nwokolobueze7291 9 ай бұрын
You just won a free subscriber :) This tutorial was all I needed to solve a puzzle I had.
@anilprz
@anilprz Жыл бұрын
One of the BEST tutorial I have found. Thank you so much.
@thiagofraga1280
@thiagofraga1280 Жыл бұрын
1:50 funny bro. btw recently I'm using docker more than any other tool because of easy configurations like that. really good
@mrjoehimself
@mrjoehimself 4 ай бұрын
Well done! You have a great nack for these tutorials, and a great speaking voice, keep it up!
@philippstobe7462
@philippstobe7462 11 ай бұрын
Thank you for the video, exactly what we needed. You explained it so well :)
@mouaadibnelaryf6848
@mouaadibnelaryf6848 8 ай бұрын
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 Жыл бұрын
I'm a new to docker, thanks for you tutorial. this makes me figure out that what docker is...
@darkvanguard925
@darkvanguard925 Жыл бұрын
Thanks dude! Great tutorial this really helped me a lot!
@Salamaleikum80
@Salamaleikum80 Жыл бұрын
One thing feels off. Why do you need to "install" mysqli every time docker runs the image?
@ShayanKhan-te5zv
@ShayanKhan-te5zv 7 ай бұрын
how did you installed it? I'm new to docker and didn't get it
@SohaibShaheen
@SohaibShaheen Ай бұрын
Amazing Work... really easy to follow
@xRorkr
@xRorkr 17 күн бұрын
a doubt, if you work on the development of a web site with docker, every time you make a change in some of the views, or code, you have to update the whole image again?
@wlliammello6919
@wlliammello6919 Ай бұрын
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 ?
@TahaBolat-sn6ib
@TahaBolat-sn6ib 2 ай бұрын
You are a legend
@yordan.
@yordan. Ай бұрын
great turorial, thank you
@hisgenerals3793
@hisgenerals3793 2 ай бұрын
Fantastic work
@MuhammadImran-hw8hy
@MuhammadImran-hw8hy 9 ай бұрын
Very nice and detailed tutorial.
@hozay6552
@hozay6552 3 ай бұрын
After I recompose the container, will I have to reinstall the `sqli` package again?
@AliceCharade
@AliceCharade 7 ай бұрын
Thank you so much :) you really helped me out
@ozodbekjuraev9268
@ozodbekjuraev9268 9 ай бұрын
thank you so much, I leant a lot from you today
@DevMe-f5v
@DevMe-f5v 4 ай бұрын
thanks it works, i just want to know how to add extension when in docker yml file?
@ahmedalturkmani622
@ahmedalturkmani622 7 ай бұрын
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 7 ай бұрын
would it not be easier to save the mysql data directory to localhost via volume, or am i missing something? ps: newbie to docker
@Abdulrahman-Mohamed
@Abdulrahman-Mohamed Жыл бұрын
thanks buddy vey much hope you make more similar videos🥰🤙👍👍
@lsd4576
@lsd4576 3 ай бұрын
Really helpful!👏
@TheJvorte
@TheJvorte 3 ай бұрын
just perfect! thanks!
@jojob_clips269
@jojob_clips269 7 ай бұрын
Just saw this. thanks for this!
@ripplesr5655
@ripplesr5655 Жыл бұрын
Great walkthrough. Nowhow do you deploy this on remote host?
@AutonomousSecretRoom60
@AutonomousSecretRoom60 11 ай бұрын
do we have to manually install mysql cli is there a docker image php-apache-mysqlcli that has already included
@gowiththeprogram
@gowiththeprogram Жыл бұрын
Can this be used in production to host my own website? Also, will you please talk about SSL?
@krstech1269
@krstech1269 Жыл бұрын
Thank you for resolving fatal error mysqli.
@karuifeather
@karuifeather 11 ай бұрын
everything works as shown but do you know how to get live reload working for this dev setup?
@AnthonyEmacs
@AnthonyEmacs 10 ай бұрын
Excellent tutorial
@edmoremusvibe8480
@edmoremusvibe8480 Жыл бұрын
Thank you so much, keep up the good work
@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.
@dtb8008
@dtb8008 Жыл бұрын
Would I be able to have read and write permissions to create new files for example with this docker setup?
@CENTRALFCP
@CENTRALFCP 8 ай бұрын
great video, thanks a lot :)
@ddobren5
@ddobren5 10 ай бұрын
Nice, but why htaccess doesn't work. How do I fix it?
@X-factor6
@X-factor6 9 ай бұрын
really awsome video
@linesave754son2
@linesave754son2 Жыл бұрын
thank you very much friend from peru
@rashmirsd
@rashmirsd 7 ай бұрын
Can we have this setup done with DevContainers in vscode ?
@hasanmougharbel8030
@hasanmougharbel8030 2 жыл бұрын
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.
@enterb7643
@enterb7643 Жыл бұрын
very useful, thank you!
@tobbeeleeto
@tobbeeleeto Жыл бұрын
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 Жыл бұрын
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 3 ай бұрын
@@ArnoBarzan Livesaver of a comment
@mortezarostami3287
@mortezarostami3287 Жыл бұрын
great job!!
@monsterteddy787
@monsterteddy787 Жыл бұрын
What about when we have multiple php files. ??
@文浪子
@文浪子 8 ай бұрын
thanks for your help.
@srishtiv424
@srishtiv424 Жыл бұрын
It was a great Tutorial
@АлексейМалеванов-б9п
@АлексейМалеванов-б9п 2 жыл бұрын
I from Russia. Thank you, bro)😘
@stormybear4986
@stormybear4986 Ай бұрын
You kept saying you were pressing "control save" on your keyboard My windows 10 keyboard doesn't have a save button.
@enryunto8087
@enryunto8087 Ай бұрын
CTRL + S
@naveenbisht4627
@naveenbisht4627 2 ай бұрын
Cool.
@sultansabdopandito776
@sultansabdopandito776 4 ай бұрын
Terimakasih banyakk
@ShayanKhan-te5zv
@ShayanKhan-te5zv 7 ай бұрын
class "mysqli" not found
@gandal_
@gandal_ 11 ай бұрын
Thank you
@Gery-zg7ky
@Gery-zg7ky 7 ай бұрын
bro thank you
@QubitTechnologies
@QubitTechnologies Жыл бұрын
good one.
@Rin-zv7zv
@Rin-zv7zv 2 ай бұрын
Thanks
@shadeis9276
@shadeis9276 3 ай бұрын
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 3 ай бұрын
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
@beticohernandez9536
@beticohernandez9536 2 ай бұрын
Como seria un crud por ejemplo
@pikazap6672
@pikazap6672 Жыл бұрын
Maybe I will need something more than notepad.. I guess?
@cbbcbb6803
@cbbcbb6803 2 жыл бұрын
It looks like you are using windows.
@valeriakoss2859
@valeriakoss2859 8 ай бұрын
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 7 ай бұрын
hii, may i ask did you manage to solve the problem? because i need the solution for this. i also encountered the same problem
@car2208
@car2208 10 ай бұрын
Fantastic job!
小路飞嫁祸姐姐搞破坏 #路飞#海贼王
00:45
路飞与唐舞桐
Рет қаралды 29 МЛН
Бенчик, пора купаться! 🛁 #бенчик #арти #симбочка
00:34
Симбочка Пимпочка
Рет қаралды 3,1 МЛН
Крутой фокус + секрет! #shorts
00:10
Роман Magic
Рет қаралды 41 МЛН
Luminous screen protectors 🔥 #iphone ##screenprotector #android
0:19
Куда пропал Kodak?
1:01
MOTIVESSION
Рет қаралды 12 МЛН
Секретный пароль...
0:17
Сокровищница Фактов
Рет қаралды 263 М.
How To Install a Gant Fan #satisfying @MNSmartTech
0:13
MN Tech Tips
Рет қаралды 3,7 МЛН