apache2: apr_sockaddr_info_get failed for

If you are getting this error when you try to start or restart apache :

apache2: apr_sockaddr_info_get() failed for pirat9-desktop
apache2: Could not reliably determine the server's fully qualified domain name, using for ServerName
[ OK ]

The solution is the following :

Open apache2.conf file :

sudo  vi  /etc/apache2/apache2.conf

and  add  this line :

ServerName localhost

Save  and  exit

restart   again

pirat9@pirat9-desktop:~$ sudo    /etc/init.d/apache2  restart
 * Restarting web server apache2                                               ... waiting                                                           [ OK ]

Is done !

{loadposition user9}

Related Articles By Tags :

{loadposition user1}

  • Sean Crawford

    After viewing many posts about this error, here’s the answer in one simple edit to httpd.conf – thanks!

  • Marius

    nice one! thanks.

  • Radheshyam L

    Thanks for this shortcut.

  • crlsmtpzrds

    Nice ! Thnx !

  • Imran Shameer

    perfect one thanks. issue resolved.