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

  Рет қаралды 55,454

Vincent Stevenson

Vincent Stevenson

Күн бұрын

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

Пікірлер: 75
@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.
@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
@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
@TankTheTanker5
@TankTheTanker5 3 ай бұрын
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!
@nwokolobueze7291
@nwokolobueze7291 8 ай бұрын
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.
@mrjoehimself
@mrjoehimself 4 ай бұрын
Well done! You have a great nack for these tutorials, and a great speaking voice, keep it up!
@philippstobe7462
@philippstobe7462 10 ай бұрын
Thank you for the video, exactly what we needed. You explained it so well :)
@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 28 күн бұрын
Amazing Work... really easy to follow
@TheJvorte
@TheJvorte 2 ай бұрын
just perfect! thanks!
@darkvanguard925
@darkvanguard925 11 ай бұрын
Thanks dude! Great tutorial this really helped me a lot!
@yordan.
@yordan. 10 күн бұрын
great turorial, thank you
@TahaBolat-sn6ib
@TahaBolat-sn6ib Ай бұрын
You are a legend
@krstech1269
@krstech1269 Жыл бұрын
Thank you for resolving fatal error mysqli.
@hisgenerals3793
@hisgenerals3793 Ай бұрын
Fantastic work
@MuhammadImran-hw8hy
@MuhammadImran-hw8hy 8 ай бұрын
Very nice and detailed tutorial.
@Salamaleikum80
@Salamaleikum80 11 ай бұрын
One thing feels off. Why do you need to "install" mysqli every time docker runs the image?
@ShayanKhan-te5zv
@ShayanKhan-te5zv 6 ай бұрын
how did you installed it? I'm new to docker and didn't get it
@edmoremusvibe8480
@edmoremusvibe8480 Жыл бұрын
Thank you so much, keep up the good work
@ozodbekjuraev9268
@ozodbekjuraev9268 8 ай бұрын
thank you so much, I leant a lot from you today
@jojob_clips269
@jojob_clips269 6 ай бұрын
Just saw this. thanks for this!
@AnthonyEmacs
@AnthonyEmacs 9 ай бұрын
Excellent tutorial
@Abdulrahman-Mohamed
@Abdulrahman-Mohamed Жыл бұрын
thanks buddy vey much hope you make more similar videos🥰🤙👍👍
@wlliammello6919
@wlliammello6919 29 күн бұрын
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 ?
@linesave754son2
@linesave754son2 Жыл бұрын
thank you very much friend from peru
@lsd4576
@lsd4576 2 ай бұрын
Really helpful!👏
@enterb7643
@enterb7643 Жыл бұрын
very useful, thank you!
@AliceCharade
@AliceCharade 6 ай бұрын
Thank you so much :) you really helped me out
@文浪子
@文浪子 7 ай бұрын
thanks for your help.
@X-factor6
@X-factor6 8 ай бұрын
really awsome video
@sultansabdopandito776
@sultansabdopandito776 3 ай бұрын
Terimakasih banyakk
@mortezarostami3287
@mortezarostami3287 11 ай бұрын
great job!!
@CENTRALFCP
@CENTRALFCP 7 ай бұрын
great video, thanks a lot :)
@Rin-zv7zv
@Rin-zv7zv Ай бұрын
Thanks
@naveenbisht4627
@naveenbisht4627 Ай бұрын
Cool.
@АлексейМалеванов-б9п
@АлексейМалеванов-б9п Жыл бұрын
I from Russia. Thank you, bro)😘
@srishtiv424
@srishtiv424 Жыл бұрын
It was a great Tutorial
@ripplesr5655
@ripplesr5655 Жыл бұрын
Great walkthrough. Nowhow do you deploy this on remote host?
@DevMe-f5v
@DevMe-f5v 3 ай бұрын
thanks it works, i just want to know how to add extension when in docker yml file?
@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.
@hozay6552
@hozay6552 2 ай бұрын
After I recompose the container, will I have to reinstall the `sqli` package again?
@gowiththeprogram
@gowiththeprogram Жыл бұрын
Can this be used in production to host my own website? Also, will you please talk about SSL?
@gandal_
@gandal_ 10 ай бұрын
Thank you
@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?
@AutonomousSecretRoom60
@AutonomousSecretRoom60 10 ай бұрын
do we have to manually install mysql cli is there a docker image php-apache-mysqlcli that has already included
@QubitTechnologies
@QubitTechnologies Жыл бұрын
good one.
@Gery-zg7ky
@Gery-zg7ky 7 ай бұрын
bro thank you
@stormybear4986
@stormybear4986 27 күн бұрын
You kept saying you were pressing "control save" on your keyboard My windows 10 keyboard doesn't have a save button.
@enryunto8087
@enryunto8087 20 күн бұрын
CTRL + S
@ddobren5
@ddobren5 10 ай бұрын
Nice, but why htaccess doesn't work. How do I fix it?
@karuifeather
@karuifeather 10 ай бұрын
everything works as shown but do you know how to get live reload working for this dev setup?
@dtb8008
@dtb8008 Жыл бұрын
Would I be able to have read and write permissions to create new files for example with this docker setup?
@darrenedward9503
@darrenedward9503 6 ай бұрын
would it not be easier to save the mysql data directory to localhost via volume, or am i missing something? ps: newbie to docker
@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 Жыл бұрын
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 2 ай бұрын
@@ArnoBarzan Livesaver of a comment
@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 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
@rashmirsd
@rashmirsd 6 ай бұрын
Can we have this setup done with DevContainers in vscode ?
@monsterteddy787
@monsterteddy787 Жыл бұрын
What about when we have multiple php files. ??
@beticohernandez9536
@beticohernandez9536 Ай бұрын
Como seria un crud por ejemplo
@pikazap6672
@pikazap6672 Жыл бұрын
Maybe I will need something more than notepad.. I guess?
@ShayanKhan-te5zv
@ShayanKhan-te5zv 6 ай бұрын
class "mysqli" not found
@cbbcbb6803
@cbbcbb6803 2 жыл бұрын
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 6 ай бұрын
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 9 ай бұрын
Fantastic job!
Setting up a LAMP Stack from Scratch using Docker
28:24
Adam Thomas
Рет қаралды 26 М.
How to OVER Engineer a Website // What is a Tech Stack?
11:20
Fireship
Рет қаралды 2,4 МЛН
Running With Bigger And Bigger Lunchlys
00:18
MrBeast
Рет қаралды 23 МЛН
Girl, dig gently, or it will leak out soon.#funny #cute #comedy
00:17
Funny daughter's daily life
Рет қаралды 51 МЛН
Everything You NEED to Know About WEB APP Architecture
10:27
ForrestKnight
Рет қаралды 518 М.
The intro to Docker I wish I had when I started
18:27
typecraft
Рет қаралды 96 М.
Docker - nginx, php-fpm, mysql, phpmyadmin. From scratch to finished website
50:07
DanilovCode - Уроки PHP, Yii2
Рет қаралды 25 М.
Setup a Docker development environment with PHP Apache & MySQL
18:51
No more Docker for PHP
8:05
Aaron Francis
Рет қаралды 23 М.
Docker Crash Course for Absolute Beginners [NEW]
1:07:39
TechWorld with Nana
Рет қаралды 1,7 МЛН