I am using this server as a staging area and plan to access it via its ip addy, not a domain name. When attempting to start apache, I get the following error:

(98)Address already in use: AH00072: make_sock: could not bind to address no listening sockets available

If i was suspicious of a setting, I did several searches around it and indicated so. Thanks for your help. I'll quickly fetch whatever you need.

apachectl -t -D DUMP_VHOSTS produced:

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using Set the 'ServerName' directive globally to suppress this message
VirtualHost configuration:
*:80                   localhost (/etc/apache2/sites-enabled/mydomain_staging.conf:3)

sudo netstat -lnp | grep :80 produces NOTHING

j@jjireh:/$ sudo netstat -lnp | grep :80

sudo netstat -tulpn produced: (address numbers replaced by "z")

tcp        0      0*               LISTEN      zzzz/mysqld     
tcp        0      0  *               LISTEN      zzzz/sshd       
udp        0      0   *                           zzzz/ntpd       
udp        0      0 *                           3881/ntpd       
udp        0      0   *                           3881/ntpd       
udp6       0      0 z::z:z:z:123            :::*                                3881/ntpd       
udp6       0      0 z:z::z:z:z              :::*                                3881/ntpd       
udp6       0      0 ::1:123                 :::*                                3881/ntpd       
udp6       0      0 :::123                  :::*                                3881/ntpd 


unset HOME # several searches around this


PidFile ${APACHE_PID_FILE} # several searches around the pid file

The only file in sites-available and sites-enabled is "/etc/apache2/sites-available/mydomain_staging.conf":


  ServerAdmin  jay@email.com
  DocumentRoot /home/j/mydomain_staging/public

  LogLevel  warn
  ErrorLog  /home/j/logs/mydomain_staging-error.log
  CustomLog /home/j/logs/mydomain_staging-access.log combined

  <Directory /home/j/mydomain_staging/public>
      # This relaxes Apache security settings.
      AllowOverride all
      # MultiViews must be turned off.
      Options -MultiViews
  • Did you issue that netstat command right before you got the error? Otherwise, it doesn't really prove anything. – David Schwartz Mar 1 '16 at 20:35
  • Repeated the process again, just before attempting the start. Same results. – Jay Mar 1 '16 at 20:59
  • 1
    What about output of the 'apachectl -t -D DUMP_VHOSTS' ? – ALex_hha Mar 1 '16 at 20:59
  • I put the results toward the top of the post. Have to run in to a meeting that should take an hour. Will check back for addl request or comments then. Thanks! – Jay Mar 1 '16 at 21:05

Do not use when defining your virtual hosts, as it can cause issues from my experience.

Listen 80
<VirtualHost *:80>

would fix your issue.

  • Thanks, Jen. Changed this to your recommendation and got the same error. – Jay Mar 1 '16 at 20:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.