Setting up a LAMP Stack from Scratch using Docker

preview_player
Показать описание


---

Рекомендации по теме
Комментарии
Автор

Thanks for leaving those errors in the video, it's the biggest struggle I have with docker is finding solutions to little errors like that.

astev
Автор

Best thing is, he never cut the video, if there is a bug the he shows it. This is what we mostly face in real life

Aryanable
Автор

I'm blown away. This is great stuff. The "aha!" moment for me was when the php container image didn't have the proper mysql data access functions and you just changed the image to one that had that installed and ready to go already. This changes deployment completely.

alivenumber
Автор

Some notes:
1. This is for the v1 of docker Compose (EOL June 2023).
The commands are slightly different in v2. Also the `docker-compose.yml` is suggested to be named `compose.yaml`
2. You can set a simple volume in mysql instead of entry point stuff, to persist the db data.
The volume will store all the db data in a location outside the container.

thanasister
Автор

Very good pace, good tone and a true step-by-step guide

alphamadioubah
Автор

I really appreciate your thoroughness on this tutorial. You are a great teacher Adam!

vincentstevenson
Автор

My friend. I want to thank you with all my heart for making this video. I am not sure if I will be using docker but you presented the best argument for using it then any video I have tried to watch. I appreciate you! Keep up the great content!

pikadroo
Автор

Brilliant! Video paints a thousand words to actually see the real life process flow. VERY very cool docker stuff & thanks for sharing.

MarcMcRae
Автор

First, many thanks for this great work. it helped me A LOT ! my contirnution to all who are stuck with some connecticty issues from php to the mysql db. I used to use the IP adress (of the host ) in my php code to join the db. as many of you it was not working. Now i switch the servername in my php code from ip to docker alias. this alias is known from the apache part as all containers are in the same network. now it works and goodbye mysqli_connect errors !

patafrom
Автор

Hey man im getting into cybersecurity and so im trying to learn how to create web applications so i have a further understanding of how to break them and your content man has been a blessing. This is a great in depth video and you provide awesome explanations. Def gonna recommend you to anyone who asks how i learned to create LAMP stacks.

adryelgainza
Автор

this help me a lot understand each thing inside of docker compose, thank u very much, now i can create my own docker compose for my projects :)

zedolok
Автор

Thank you so much for the video. Really helped me get started with Docker.

lalaland
Автор

Wonderful, it is the first time I got an idea about how could I transfer or migrate my code and data from an host to another and running the docker with all configs by just one command.

saidbakr
Автор

Not working the same way for me. still receiving the error: atal error: Uncaught Error: Call to undefined function mysqli_connect() in /var/www/html/index.php:3 Stack trace: #0 {main} thrown in /var/www/html/index.php on line 3

Happinessisalwaysthere
Автор

Great video and instructions! Thank you for making this.

alexsilkin
Автор

awesome video man! really helped me with my first time with docker :)

sparkdogyk
Автор

After watching like 15 tutorials how to run lamp stack using docker, this is the first time i get it, very simply explained thank you so much!
One little question, if I want to use composer - should i run it in container? I thought its the matter of local system, but composer images on docker hub dissapointed me.
Have a great day!

brtj
Автор

Excellent, just excellent!
I kept getting this error at localhost:80 even after changing the php image:
Fatal error: Uncaught Error: Call to undefined function mysqli_connect() in /var/www/html/index.php:3 Stack trace: #0 {main} thrown in /var/www/html/index.php on line 3

I'm running it on ubuntu 20.04, and after a whole lotta googling, changing to this image instead fixed my problem:

snorky
Автор

You may also create a Tutorial with all the best practices for a LAMP stack production azure k8s cluster, including CI/CD pipe line from Docker..

mkannanmsc
Автор

Hello Adam! Thank you for this tutorial.

I used your Github repo, ran it without any edits and I get this error (as others have reported):

Fatal error: Uncaught Error: Call to undefined function mysqli_connect() in /var/www/html/index.php:3 Stack trace: #0 {main} thrown in /var/www/html/index.php on line 3

Apparently, the php image ( image: php:8.1.1-apache) from Dockerhub does not have mysqli enabled for PHP. Can you please advise us on the proper way to enable it?

emveeoh