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...
Excellent, clear tutorial - so much easier than fighting with PHP versions on Ubuntu with WSL.
Great tutorial! Best one I've seen on this so far, actually. Thank you!
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
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!
1:50 funny bro. btw recently I'm using docker more than any other tool because of easy configurations like that. really good
You just won a free subscriber :) This tutorial was all I needed to solve a puzzle I had.
Well done! You have a great nack for these tutorials, and a great speaking voice, keep it up!
One of the BEST tutorial I have found. Thank you so much.
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
I'm a new to docker, thanks for you tutorial. this makes me figure out that what docker is...
Amazing Work... really easy to follow
Thank you for the video, exactly what we needed.
You explained it so well :)
Fantastic work
Thanks dude! Great tutorial this really helped me a lot!
just perfect! thanks!
Really helpful!👏
You are a legend
One thing feels off. Why do you need to "install" mysqli every time docker runs the image?
how did you installed it? I'm new to docker and didn't get it
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 ?
Very nice and detailed tutorial.
Thank you for resolving fatal error mysqli.
thank you so much, I leant a lot from you today
Just saw this. thanks for this!
Fantastic job!
Excellent tutorial
thanks buddy vey much hope you make more similar videos🥰🤙👍👍
thanks it works, i just want to know how to add extension when in docker yml file?
Thank you so much, keep up the good work
After I recompose the container, will I have to reinstall the `sqli` package again?
You kept saying you were pressing "control save" on your keyboard My windows 10 keyboard doesn't have a save button.
Thank you so much :) you really helped me out
thank you very much friend from peru
My friend, when I wrote docker-compose up in the terminal I got no configuration file provided: not found what should I do?
very useful, thank you!
really awsome video
great video, thanks a lot :)
Can this be used in production to host my own website? Also, will you please talk about SSL?
would it not be easier to save the mysql data directory to localhost via volume, or am i missing something? ps: newbie to docker
great job!!
do we have to manually install mysql cli is there a docker image php-apache-mysqlcli that has already included
Great walkthrough. Nowhow do you deploy this on remote host?
I from Russia. Thank you, bro)😘
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.
thanks for your help.
It was a great Tutorial
Cool.
everything works as shown but do you know how to get live reload working for this dev setup?
Thanks
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.
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 ?
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).
@@ArnoBarzan Livesaver of a comment
Terimakasih banyakk
Can we have this setup done with DevContainers in vscode ?
Would I be able to have read and write permissions to create new files for example with this docker setup?
Nice, but why htaccess doesn't work. How do I fix it?
What about when we have multiple php files. ??
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. :(
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
Thank you
Como seria un crud por ejemplo
good one.
class "mysqli" not found
bro thank you
Maybe I will need something more than notepad.. I guess?
It looks like you are using windows.
i'm working on macos and got a "failed opening required '/var/www/html/index.php' " issue after opening on a localhost:80
hii, may i ask did you manage to solve the problem? because i need the solution for this. i also encountered the same problem