Setup a Docker development environment with PHP Apache & MySQL

  Рет қаралды 77,500

Seeker Labs

Seeker Labs

Күн бұрын

Пікірлер: 94
@zohaibnawaz7190
@zohaibnawaz7190 3 жыл бұрын
I am a beginner in docker. Been searching for two days to setup the port to run my code in browser. Finally found the right video. Big thumbs up. Keep up the good work
@zb2747
@zb2747 Жыл бұрын
Man thank you! There are so many tutorials out here that try to explain this but imo they are too long with alot of fluff. Here you jump straight to it and provide a good overview of everything without going to much into detail, and show implementation.
@julengonijimenez243
@julengonijimenez243 2 жыл бұрын
After 2 hours of desesperation of searching, this video has been the way to the light,. Thank u!
@MagnoAlbertoAlmeida
@MagnoAlbertoAlmeida 2 жыл бұрын
The most complete and objective tutorial I found. It was exactly what I was looking for days. Here's a suggestion: It would be a video teaching how to include PHP extensions. Thank you very much!
@SeekerLabs
@SeekerLabs 2 жыл бұрын
I would love to get to that! Thank you for the suggestion
@inderpreetsingh6548
@inderpreetsingh6548 2 жыл бұрын
Exactly what I was looking for. The great part is that you started with Docker file and followed the instructions from the Dockerhub PHP page, so that the users can also relate to it and eventually build the docker-compose file. Liked and subscribed. Will share in my circle too. Thanks a lot!
@andresabello6974
@andresabello6974 3 жыл бұрын
The simplest tutorial I found with the right setup. Thank you!
@beagle3882
@beagle3882 3 жыл бұрын
Best IT tutorial ever watched on KZbin. Keep making them.
@feli-boon
@feli-boon 2 жыл бұрын
my finals is now in a safe spot thanks to you 😭🙇‍♀️ thank you!!
@SeekerLabs
@SeekerLabs 2 жыл бұрын
Yaay!
@Philip54320
@Philip54320 2 жыл бұрын
You sir saved my evening. After hours of trying this was exactly the concise example I needed :) (as it turns out, there was an prev. unknown bug in my code which made everything weird)
@IanFarrellCreative
@IanFarrellCreative Жыл бұрын
Dude, you just ended about a 5 hour headache for me, going round in circles with tutorials that don't explain what the docker code actually means, or how to actually load anything other than a default nginx page, thank you! I'm going to trawl through your videos in the hopes you have one for Webpack too!
@arisemyafrica7623
@arisemyafrica7623 8 ай бұрын
Finally ,after two days tho, Thank you
@JohnHu1986
@JohnHu1986 2 жыл бұрын
Thanks so much for this video. You just saved my world!!
@tomasmajek7690
@tomasmajek7690 2 жыл бұрын
This is my first ever comment on YT, just to say, thank you
@ajit.a1425
@ajit.a1425 3 жыл бұрын
how do you persist the data without volume ? . when i try this example . the database get cleared every time i run docker-compose down
@bandantuthuko
@bandantuthuko 3 жыл бұрын
Thanks for this awesome tutorial managed to set up my docker apache and php mysql and its working.
@swharden
@swharden 4 жыл бұрын
Great video, keep them coming! I think you can replace "$PWD" with %cd% in Windows
@dustindaleaquino8422
@dustindaleaquino8422 2 жыл бұрын
great tutorial, I'm totally new to docker and this really helped me a lot.
@MohamadSimo
@MohamadSimo Жыл бұрын
Thanks for this amazing explantion, but i have a question inside Dockerfile in cmd line you added index.php what if i had many php pages! what shall i do_
@Aryan21able
@Aryan21able Жыл бұрын
if I have 3 docker containers i.e apache, php, mysql. how would apache know that I have to go to php conatiner for hosting a index.php file on apache container
@BrajeshSharma
@BrajeshSharma 3 жыл бұрын
I have already installed mariadb and phpmyadmin on portainer and both are up and running and working. How do I connect it to php-apache docker?
@MartinBorruel
@MartinBorruel 9 ай бұрын
Excellent, I have a server with this configuration except phpmyadmin, but 9nce you restart server data is gone
@PermanaJayanta
@PermanaJayanta 3 жыл бұрын
I've watched several guides, I see some use ubuntu images? And in this video it doesn't use it. What was the reason?
@danielasema9560
@danielasema9560 2 жыл бұрын
Hey thanks for the tutorial. Im just wondering why my db didnt persist at the end. When I composed down, my db was deleted
@황현희-j8o
@황현희-j8o 2 жыл бұрын
I tried on my computer just like what you did , but I got localhost 403 forbidden. Any help?
@b4rt1j1
@b4rt1j1 2 жыл бұрын
Hi, Im very beginner to docker, can someone please help me if I have index.php inside some folders like src/public/index.php, Docker says Could not open input file: ./index.php i tried relative path to Dockerfile but didnt work. Thanks for any answers
@aogunnaike
@aogunnaike 3 жыл бұрын
great tutorial, i keep gettinging server error when trying to connect using PDO
@user-mfsc-2024
@user-mfsc-2024 2 жыл бұрын
Im new on docker. The docker and its container running in the video looks like not in windows 10 WSL. How to run docker container in windows 10 without installation of WSL ?
@mileswaring6832
@mileswaring6832 3 жыл бұрын
When chaning docker file and building with compose I get the following error. Could anyone help me out? Thanks in advance Step 2/2 : RUN docker-php-ext-install mysqli Invalid signal: SIGWINCH Service 'php' failed to build : Build failed
@virginievillard2230
@virginievillard2230 2 жыл бұрын
Thanks for the tutorial ! Very clear and useful !
@dikshayadav921
@dikshayadav921 2 жыл бұрын
Really impressive.. Great explanation.
@johnchintall9118
@johnchintall9118 3 жыл бұрын
Thanks for this tutorial! How to resolve this issue when logging into adminer:" SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name does not resolve" Any help would be great!
@CartmanMthrFckr
@CartmanMthrFckr 2 жыл бұрын
As soon as i change the MYSQL_ROOT_PASSWORD and do a docker compose i can't login with it. I get the msg "Connection refused". But with "example" as password its working. Why is that so? 🤔
@miamoto1412
@miamoto1412 Жыл бұрын
hello, i did the exact same set up, connected to Adminer etc, although th econnection to the db is not working, did you have to install any extension off the record ? Much appreciated thanks my friend. Great content btw : Fatal error: Uncaught Error: Class 'mysqli' not found
@bijianwu5124
@bijianwu5124 Жыл бұрын
thanks for the great content
@naufalsyafiqsafikri1453
@naufalsyafiqsafikri1453 2 жыл бұрын
thank you for tutorial I have question, i use this tutorial to deploy osticket but i got unable to connect mysql, anyone can help me?
@PaulAlcabasa
@PaulAlcabasa 4 жыл бұрын
Hi I was wondering how to connect to remote databases? In my current setup I have different server for my database.
@afaaqahmedsaqi
@afaaqahmedsaqi 3 жыл бұрын
using port forwarding
@StoryOfTheReality
@StoryOfTheReality 4 жыл бұрын
the indx.php file not running through localhost, but localhost:8080 routing to adminer. What is the problem for me?
@stinger1up
@stinger1up 4 жыл бұрын
Same here. getting php_1 | Could not open input file: ./index.php
@henryhein
@henryhein 3 жыл бұрын
@@stinger1up make sure no service is using port 80.
@user-mfsc-2024
@user-mfsc-2024 2 жыл бұрын
isnt the db created in the docker image ?
@BrajeshSharma
@BrajeshSharma 3 жыл бұрын
Also, can anyone tell me how do I tum multiple php scripts from that src location we setup as per this video? Running like localhost:80/test.php?
@naanunane
@naanunane 3 жыл бұрын
Thanks a lot, this was very helpful, lot of info in One go, Amazing
@lukinkoo
@lukinkoo Жыл бұрын
Do not forget to add also php.ini and important extensions. For example, you can not debug your code without xdebug extension.
@stinger1up
@stinger1up 4 жыл бұрын
Hello, in the end the Adminer worked, but the index.php did not. The console said php would not load file. Any idea why that would be? I've been over this code a few times and can't figure it out. Thank you for your time!
@SeekerLabs
@SeekerLabs 4 жыл бұрын
what's the error message? can you push the code up to a repo? I can't promise I can help but I'm curious to see if I can replicate the problem.
@SeekerLabs
@SeekerLabs 4 жыл бұрын
also what OS are you on?
@stinger1up
@stinger1up 4 жыл бұрын
@@SeekerLabs Hello, I'm on Mac OS Catalina. I followed your code exactly but once I deviate to docker compose from just the dockerfile, php gives the following error: php_1 | Could not open input file: ./index.php studyhall_php_1 exited with code 1
@stinger1up
@stinger1up 4 жыл бұрын
RESOLVED I'm not sure what happened but when I ran "docker images" I saw some older images I had created with another tutorial. I ran "docker rmi [image name]" and removed all the images that I had added and then "docker-compose up" worked for me. Thanks so much, this was the best tutorial I found. Simple and showed this nub how to use the docs.
@SeekerLabs
@SeekerLabs 4 жыл бұрын
@@stinger1up good job! Yeah those kinds of problems are hard to figure out. Glad you got it
@therockingassault
@therockingassault Жыл бұрын
Thankyou for your help
@romualdomariano1457
@romualdomariano1457 2 жыл бұрын
Still no 8.0 above?
@muzamali1879
@muzamali1879 10 ай бұрын
hey buddy you dropped this 👑..... did you make video for other dev enviroment as well ?
@SeekerLabs
@SeekerLabs 10 ай бұрын
Not yet, I hope to get around to it soon. Thank you for your kind comment I appreciate it!
@seanastro5549
@seanastro5549 3 жыл бұрын
Very very useful. Thanks a lot ! Keep it up.
@anesthetizedangel4845
@anesthetizedangel4845 3 жыл бұрын
Excellent material. Thank you!
@maciejenduro
@maciejenduro 3 жыл бұрын
Hi :-) Thanks for tutorial. How can I add mod_rewrite?
@panchox21
@panchox21 3 жыл бұрын
big thank you... question tho. what images can i remove after having everything running to save some space? thanks again
@hugh-martinrouxhughy7419
@hugh-martinrouxhughy7419 3 жыл бұрын
Wow this video was great, thank you so much!
@marcarrensalita7404
@marcarrensalita7404 3 жыл бұрын
when ever I'm using command docker-compose down. my database always deleted. how can I retain my database?
@SeekerLabs
@SeekerLabs 3 жыл бұрын
Probably need to use volumes/bind mounts. I can't look up examples right now but if you look those up that should hopefully help. Good luck!
@marcarrensalita7404
@marcarrensalita7404 3 жыл бұрын
@@SeekerLabs ill try to search for it.. thank you
@benjamink7311
@benjamink7311 3 жыл бұрын
How to configure php.ini
@technomalek297
@technomalek297 3 жыл бұрын
Forbidden You don't have permission to access this resource. Apache/2.4.38 (Debian) Server at localhost Port 80 receiving this error. any help?
@technomalek297
@technomalek297 3 жыл бұрын
put your index.php file in src folder
@re5829
@re5829 4 жыл бұрын
one thumbs up from me , thanks ❤️
@mapytekh
@mapytekh 3 жыл бұрын
Hi, how to overcome this??? Forbidden You don't have permission to access this resource. Apache/2.4.51 (Debian) Server at localhost Port 80 I am working on ubuntu 20.04LTS Desktop...
@AhmedAshrafMo
@AhmedAshrafMo 2 жыл бұрын
You helped a lot thanks to you
@joeys7519
@joeys7519 2 жыл бұрын
You skipped the part where you added a volume to persist the sqlite db to the yml file
@SeekerLabs
@SeekerLabs 2 жыл бұрын
ahh shoot. Sorry about that. I'll try to get to an update soon.
@cristiandanielherrera4349
@cristiandanielherrera4349 2 жыл бұрын
very good!
@moeenakhtarawan
@moeenakhtarawan 4 жыл бұрын
It was very useful video, i really liked it.
@davidtojalvarez6424
@davidtojalvarez6424 4 жыл бұрын
Thank you so much
@darius7313
@darius7313 4 жыл бұрын
nice and simple, thanks
@MrFranciscoooooo
@MrFranciscoooooo 2 жыл бұрын
from 7.4 php to a php 7.2 great
@amrullahdev8895
@amrullahdev8895 2 жыл бұрын
15:04 for u guys who get error where Dockerfile is not read and php exit 0 , u had to do docker-compose build , i solved my problem that way , in my case i use ubuntu 22
@zarkhakan2340
@zarkhakan2340 4 жыл бұрын
Thank you , it helped me.
@MrTeinnorHD
@MrTeinnorHD 3 жыл бұрын
Thank you so much !
@nagorik24
@nagorik24 3 жыл бұрын
I fucking love it man! Thumbs up!
@abolfazlsafari2002
@abolfazlsafari2002 2 жыл бұрын
thanks man
@dipenparmar2273
@dipenparmar2273 4 жыл бұрын
Great 👍😎
@sumeeetk
@sumeeetk 4 жыл бұрын
Very Helpful
@TheSayn006
@TheSayn006 4 жыл бұрын
Ho my god, you are great thx a lot
@priyabratrath
@priyabratrath 3 жыл бұрын
Awesome...
@abdouramanemahamane6887
@abdouramanemahamane6887 2 жыл бұрын
thanks :)
@pepjonak
@pepjonak Жыл бұрын
i get forbidden access
@momahdy
@momahdy Жыл бұрын
I get the same error, did you manage to fix it?
@franciscocaldeira2812
@franciscocaldeira2812 2 жыл бұрын
Paste the command for win
@brunoa2893
@brunoa2893 3 жыл бұрын
You probably aware of it, you might have a battery issue
@ImDino
@ImDino 2 жыл бұрын
dont use stereo mics bro the phasing when using headphones is unbearable, idk what the issue is but at least convert your audio track to mono
Setting up a LAMP Stack from Scratch using Docker
28:24
Adam Thomas
Рет қаралды 27 М.
Docker and PHP Complete Tutorial
2:00:04
Gary Clarke
Рет қаралды 39 М.
Haunted House 😰😨 LeoNata family #shorts
00:37
LeoNata Family
Рет қаралды 6 МЛН
Каха и лужа  #непосредственнокаха
00:15
How to run your PHP app in docker with MySql
20:42
The Codeholic
Рет қаралды 29 М.
Create a local Laravel dev environment with Docker
14:48
Andrew Schmelyun
Рет қаралды 198 М.
Laravel Docker Nginx + PHP-FPM + op_cache
22:07
Emad Zaamout
Рет қаралды 16 М.
Do NOT Learn Kubernetes Without Knowing These Concepts...
13:01
Travis Media
Рет қаралды 319 М.
PHP Docker Tutorial - Nginx - PHPFPM VS Apache - Full PHP 8 Tutorial
14:39
My Favorite Way To Handle Dev Environments | VS Code Devcontainers
30:05
SSH Keys
10:12
RobEdwards
Рет қаралды 122 М.
Build a Full Stack Web App in PHP and MySQL with Docker from scratch!
26:09
If you're not developing with this, you're wasting your time
14:30
Articulated Robotics
Рет қаралды 304 М.
Haunted House 😰😨 LeoNata family #shorts
00:37
LeoNata Family
Рет қаралды 6 МЛН