apache2: Could not determine the server’s fully qualified domain name

apache2: Could not determine the server’s fully qualified domain name

Vi potrà essere successo un’errore di questo tipo e anche se apache2 funzionerà senza problemi dovete correggere l’errore, Seguite la lettura dell’articolo per risolvere il problema Vi ricordo che questo articolo è una parte tradotta di una pagina di cui ora vi do il link: Setting the Linux Host Name

Checking your Linux host name

Prima cosa, controllate se il vostro host name è settato correttamente usando i seguenti comandi: uname -n hostname -a hostname -s hostname -d hostname -f hostname Se i suddetti comandi rinviano correttamente senza errori allora va tutto bene; tuttavia, potete desiderare di verificare che tutte le regolazioni sono corrette

Configuring /etc/hosts

Se il vostro IP address è assegnato da un DHCP server, allora /etc/hosts è configurato come segue: 127.0.0.1 mybox.mydomain.com localhost.localdomain localhost mybox Se voi avete un IP statico ,allora /etc/hosts è configurato come segue: 127.0.0.1 localhost.localdomain localhost 192.168.0.10 mybox.mydomain.com mybox

Setting the Host Name using “hostname”

After updating the /etc/hosts file correctly, the “hostname” command should be run as follows to set your hostname: hostname mybox.mydomain.com

Checking /etc/HOSTNAME (if present)

You may or may not have the file /etc/HOSTNAME: mybox.mydomain.com

Checking /etc/sysconfig/network

If you have a static IP address, then /etc/sysconfig/network is configured as follows: NETWORKING=yes HOSTNAME=”mybox.mydomain.com” It makes more sense to move this “DHCP_HOSTNAME” variable into /etc/sysconfig/network-scripts/ifcfg-eth0 (or appropriate NIC cfg file). So the above section has been moved, see below. If you have only 1 NIC, then the above struck section works fine, but with more than 1 NIC it makes no sense. Maybe this is true for the “‘HOSTNAME” line too, maybe that line should be moved into /etc/sysconfig/network-scripts/ifcfg-eth0 as well. I will investigate further. By default RHL places HOSTNAME=localhost.localdomain in /etc/sysconfig/network.

Rispondi

Questo sito usa Akismet per ridurre lo spam. Scopri come i tuoi dati vengono elaborati.