VPS
Main PagecPanel and DirectAdmin LicensingServer Management PlansVirtual Private ServersDedicated Servers
Control Panel Licensing
ServerTune ResellersResellersSpecial PromotionsServerTune SpecialsHomeAbout ServerTuneContact usTechnical SupportKB
ServerTune Main Page
Space
Space
Our most popular products:

SPECIAL PROMOTION: cPanel License $36 /month. more info

Issues, Tips, and Solutions

Protect your server with Mod Security rules written specifically for your system. more info ...

Space
Search:    Advanced search
Browse by category:
Address already in use: make_sock: could not bind to address [::]:80/443
Printer Friendly
email to a friend
Add comment Add comment
Views: 846
Votes: 0
Comments: 0
Posted: 22 Dec, 2007
by: Support T.
* * * * *
Updated: 22 Dec, 2007
by: Support T.
When starting/re-starting Apache, you get the following error message:
    Starting httpd: (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80/443
    no listening sockets available, shutting down
    Unable to open logs!
To fix the problem, run the following commands
  • /bin/netstat -lnp | grep '0.0.0.0:80'

The output might be:

    tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 21426/tux
Now, to see what service with the PID 30982, run this command:
  • ps 21426

The output might be:

    PID TTY      STAT   TIME COMMAND
    21426 ?        S      0:00 /usr/local/tux

As you can see, the service tux is using Port 80 and blocking httpd. All you need to do is stop tux and then restart httpd.

Other articles in this Category
document How do I force SSL for specific pages with Apache & mod_rewrite?
document Hw can I view the modules compiled with Apache?
document Errors and Solutions
document Error Messages :: Invalid argument: core_output_filter: writing data to the network
document Error Messages :: Premature end of script headers
document Premature end of script headers
document HowTo view compiled modules with Apache



RSS