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
197 stars 109 forks source link

Cannot acces http://localhost:41062/xampp #2

Closed billysutomo closed 8 years ago

billysutomo commented 8 years ago

HI, i already do all the command, the container already running. but i cant access the xampp interface with this command http://localhost:41062/xampp and this is the container logs

Starting XAMPP for Linux 5.6.8-0...
XAMPP: Starting Apache...ok.
XAMPP: Starting MySQL...ok.
XAMPP: Starting ProFTPD...ok.
/usr/lib/python2.7/dist-packages/supervisor/options.py:296: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security.
  'Supervisord is running as root and it is searching '
2016-02-23 09:35:07,440 CRIT Supervisor running as root (no user in config file)
2016-02-23 09:35:07,441 WARN Included extra file "/etc/supervisor/conf.d/supervisord-openssh-server.conf" during parsing
2016-02-23 09:35:07,459 INFO RPC interface 'supervisor' initialized
2016-02-23 09:35:07,459 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2016-02-23 09:35:07,459 INFO supervisord started with pid 178
2016-02-23 09:35:08,462 INFO spawned: 'openssh-server' with pid 457
2016-02-23 09:35:09,464 INFO success: openssh-server entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

thx before

tomsik68 commented 8 years ago

Hi, what command did you use to start your docker container? If you used the command I provided and it doesn't work, it's probably a bug in my Dockerfile. You can try running lampp restart in the container several times to see if it starts, it can sometimes help.

tomsik68 commented 8 years ago

Update: I found a related issue in my docker run command. It looks like I swapped the ports(I just tested it). The correct command is: docker run -p 41061:22 -p 41062:80 -d -v ~/my_web_pages/my_testing_page1:/www tomsik68/xampp please test it and close this issue if it works.

billysutomo commented 8 years ago

thxx!! it work