learnk8s / laravel-kubernetes-demo

A demo application in Laravel to illustrate deploying to Kubernetes
MIT License
98 stars 67 forks source link

AH00558: apache2: Could not reliably determine the server's fully qualified domain name. 'ServerName' #9

Open svishnevskii opened 3 years ago

svishnevskii commented 3 years ago

Hello. That's a cool guide, thanks.

I have a little problem with my vhosts.conf maybe. I tried to set ServerName with 'localhost' value for this, but no helpful. Next, I tried to launch your deployments.yaml with your docker image learnk8s/laravel-kubernetes-demo and it also says about this notice.

Environment:

How to fix this? $ kubectl logs laravel-kubernetes-demo-<hash-pod>

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 10.1.0.117. Set the 'ServerName' directive globally to suppress this message

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 10.1.0.117. Set the 'ServerName' directive globally to suppress this message

[Sat Dec 05 14:19:45.955736 2020] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.10 (Debian) PHP/7.1.8 configured -- resuming normal operations

[Sat Dec 05 14:19:45.955821 2020] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
keithmifsud commented 3 years ago

Hi @svishnevskii ..you're welcome :smile:

The notice should not be an issue in dev env. In prod, you'll have a fully qualified domain name. I think you should also be able to add an entry in your windows hosts file if needed.