Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker Mautic 5.1-apache does not start #294

Open
grinono opened this issue Aug 30, 2024 · 3 comments
Open

Docker Mautic 5.1-apache does not start #294

grinono opened this issue Aug 30, 2024 · 3 comments

Comments

@grinono
Copy link

grinono commented Aug 30, 2024

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?

@grinono grinono changed the title Docker mautic does not start Docker Mautic 5.1-apache does not start Aug 30, 2024
@Ahson-Shaikh
Copy link

Ahson-Shaikh commented Sep 12, 2024

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!

@grinono
Copy link
Author

grinono commented Sep 12, 2024

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.

@dixpix
Copy link

dixpix commented Sep 18, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants