Build a Full Stack Web App in PHP and MySQL with Docker from scratch!
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
Great tutorial! Best one I've seen on this so far, actually. Thank you!
One of the BEST tutorial I have found. Thank you so much.
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
Thank you for the video, exactly what we needed.
You explained it so well :)
You just won a free subscriber :) This tutorial was all I needed to solve a puzzle I had.
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!
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
Thanks dude! Great tutorial this really helped me a lot!
Well done! You have a great nack for these tutorials, and a great speaking voice, keep it up!
I'm a new to docker, thanks for you tutorial. this makes me figure out that what docker is...
Very nice and detailed tutorial.
Thank you so much, keep up the good work
1:50 funny bro. btw recently I'm using docker more than any other tool because of easy configurations like that. really good
Fantastic job!
thanks buddy vey much hope you make more similar videos🥰🤙👍👍
Fantastic work
Excellent tutorial
thank you so much, I leant a lot from you today
very useful, thank you!
Just saw this. thanks for this!
Thank you so much :) you really helped me out
Thank you for resolving fatal error mysqli.
Really helpful!👏
just perfect! thanks!
great job!!
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.
really awsome video
Great walkthrough. Nowhow do you deploy this on remote host?
thank you very much friend from peru
great video, thanks a lot :)
It was a great Tutorial
thanks for your help.
Would I be able to have read and write permissions to create new files for example with this docker setup?
thanks it works, i just want to know how to add extension when in docker yml file?
Can this be used in production to host my own website? Also, will you please talk about SSL?
What about when we have multiple php files. ??
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.
everything works as shown but do you know how to get live reload working for this dev setup?
do we have to manually install mysql cli is there a docker image php-apache-mysqlcli that has already included
You are a legend
good one.
Can we have this setup done with DevContainers in vscode ?
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
Nice, but why htaccess doesn't work. How do I fix it?
After I recompose the container, will I have to reinstall the `sqli` package again?
Thank you
My friend, when I wrote docker-compose up in the terminal I got no configuration file provided: not found what should I do?
would it not be easier to save the mysql data directory to localhost via volume, or am i missing something? ps: newbie to docker
bro thank you
class "mysqli" not found
I from Russia. Thank you, bro)😘
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
Maybe I will need something more than notepad.. I guess?
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
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