tomsik68 / docker-xampp

Dockerfile to build an image containing XAMPP(MySQL + PHP + PHPMyAdmin) running on Debian system with SSH server
https://hub.docker.com/r/tomsik68/xampp/
MIT License
198 stars 109 forks source link

XAMPP Control panel #37

Closed josejuanmayorga closed 2 years ago

josejuanmayorga commented 2 years ago

Hi tomsik68, Merry Christmas. I hope to find you having the best time with your family and friends. I am having a good time with your XAMPP docker, it is helping me to work with my examples. I can access to www folder to load my php exercises and xampp and phpmyadmin pages but I do not know how to load XAMPP Control panel. Could you tell me how to get access to that page in this docker? Thank you very much for your help and support. Happy new year. José.

tomsik68 commented 2 years ago

Hello José!

Assuming you used this command I provided to start the container:

docker run --name myXampp -p 41061:22 -p 41062:80 -d -v ~/my_web_pages:/www tomsik68/xampp

You should be able to access the XAMPP control panel at http://localhost:41062/xampp. Let me know if that doesn't work.

Merry Christmas and happy new year!

josejuanmayorga commented 2 years ago

Hi tomsik68, thank you very much for such rapid answer. I am very please.. Yes, I am using that command you provided to start the container. And I got loaded a page using the link you indicated but it is not like this one: image Am I doing something wrong? Perhaps, I am understanding the concepts wrongly? Sorry, I am just starting to program in back-end.

tomsik68 commented 2 years ago

The screenshot you sent seems to use XAMPP on Windows. This container runs in docker, so it uses XAMPP on Linux which doesn't have such a GUI. To get the same functionality, you can start a terminal in your docker container (docker exec -ti myXampp bash) and do everything from there:

  1. restart all services: /opt/lampp/lampp restart
  2. view config files: cd /opt/lampp/apache2/conf.d/ && ls
  3. netstat: netstat etc.

I don't think you can access that control panel when running XAMPP in docker.

josejuanmayorga commented 2 years ago

Hi tom. As I said, I am total newbily. Thank you very much for your interest and explanation. Merry christmas and Happy new year. José.

tomsik68 commented 2 years ago

I'm closing this issue for now, feel free to re-open if you have any further questions.