Docker Mautic 5.1-apache does not start
i configured Mautic docker to connect to a mysql database. When starting i see nothing else then
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 10.42.1.210. Set the 'ServerName' directive globally to suppress this message
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 10.42.1.210. Set the 'ServerName' directive globally to suppress this message
[Fri Aug 30 19:42:04.532320 2024] [mpm_prefork:notice] [pid 13] AH00163: Apache/2.4.59 (Debian) PHP/8.1.29 configured -- resuming normal operations
[Fri Aug 30 19:42:04.532391 2024] [core:notice] [pid 13] AH00094: Command line: 'apache2 -D FOREGROUND'
Based on these logs i have no idea where to look to fix it. All seems ok. If i misconfigure db credentials, the logs do start to complain. Any suggestion on where to look to fix this?
If you are using docker-compose, try passing this in a command directive "'apache2 -D FOREGROUND". Also please share the docker-compose if you have that. I have been trying to start Mautic, but I have got another error, and am unable to fix that.
mysqladmin: connect to server at '' failed error: 'Can't connect to server on 'localhost' (99)' Check that mariadbd is running and that the socket: '/run/mysqld/mysqld.sock' exists! mysqladmin: connect to server at '' failed error: 'Can't connect to server on 'localhost' (99)' Check that mariadbd is running and that the socket: '/run/mysqld/mysqld.sock' exists! mysqladmin: connect to server at '' failed error: 'Can't connect to server on 'localhost' (99)' Check that mariadbd is running and that the socket: '/run/mysqld/mysqld.sock' exists! mysqladmin: connect to server at '' failed error: 'Can't connect to server on 'localhost' (99)' Check that mariadbd is running and that the socket: '/run/mysqld/mysqld.sock' exists! mysqladmin: connect to server at '' failed error: 'Can't connect to server on 'localhost' (99)' Check that mariadbd is running and that the socket: '/run/mysqld/mysqld.sock' exists!
Running Mautic with apache2 -D FOREGROUND command gives me "the qualified domain name" notification. I think this can be ignored. Service does not start.
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 10.42.112.251. Set the 'ServerName' directive globally to suppress this message
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 10.42.112.251. Set the 'ServerName' directive globally to suppress this message
[Thu Sep 12 07:01:13.220467 2024] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.59 (Debian) PHP/8.1.29 configured -- resuming normal operations
[Thu Sep 12 07:01:13.220551 2024] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
i run this in a kubernetes depleyment. not in docker compose. Should not matter i guess.
Hi, Same issue ('Can't connect to server on 'localhost' (99)') resolved in my case by forcing mautic_web and db to work on the same network. But I'm using Coolify which takes care of all the Traefik configuration. So i take the network name created by traefik and put all services on it. Hope it helps.
Hey there! I'm helping the new maintainers of this repository. It was neglected for some time but that changes now! Could you please re-test if you are still getting this issue so we could focus our limited time on the issues that are still relevant? If there will be no response we'll close this issue in 1 week. It can always be re-opened later on.
Hello @grinono ,
Are you still facing this issue when using the tag 5.2.4?
Hello,
The latest image (5.2.4) works correctly here. As we didn't get an answer on the timeframe of one week, this issue will be closed. It can always be re-opened later on.