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

Apache not starting properly #12

Open Nine-H opened 7 years ago

Nine-H commented 7 years ago

I have a container set up for a site I'm writing to learn php, when I start the container the page doesn't load I have to manually start lampp.

$ docker exec testLAMP /opt/lampp/lampp start
Starting XAMPP for Linux 5.6.21-0...
XAMPP: Starting Apache...ok.
XAMPP: Starting MySQL...already running.
XAMPP: Starting ProFTPD...already running.

is there a way to make apache run when I start the container with docker start testLAMP or am I missing some arguments?

tomsik68 commented 7 years ago

Hi, I have this problem too and I'm frankly not sure how to fix this, as I'm not that good with Dockerfiles. My best guess is, that there's a problem either in startup.sh script or the CMD directive in my Dockerfile.

If you find a way, I'll be happy to accept your patch :)

Nine-H commented 7 years ago

shit, I installed docker last week. I'll take a look because I'm always willing to learn but it might take a more experienced dude.

shetubd commented 4 years ago

I have same problem. I have to run manually startup file. root@2bafc111db1b:/# bash startup.sh Starting XAMPP for Linux 5.6.21-0... XAMPP: Starting Apache...already running. XAMPP: Starting MySQL...already running. XAMPP: Starting ProFTPD...already running. /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 ' 2020-05-25 15:36:39,679 CRIT Supervisor running as root (no user in config file) 2020-05-25 15:36:39,679 WARN Included extra file "/etc/supervisor/conf.d/supervisord-openssh-server.conf" during parsing Error: Another program is already listening on a port that one of our HTTP servers is configured to use. Shut this program down first before starting supervisord.