How to fix: (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80

sshApache Error: (98) Address already in use

Occasionally your VPS or dedicated server will just not play ball.

Whenever Apache gives up the ghost it usually a case of restarting the service and within seconds your sites are back online, as if nothing happened. Great!

# service httpd restart

Most of the time, this resolves the issue. But, on occasion, apache simply doesn’t want to play. The most common issue we hear about is the Address already in use issue, which looks something like this

# service httpd restart
Stopping httpd:                                            [FAILED]
Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
                                                           [FAILED]

How to resolve this apache issue

Unless apache is restarting at the time you are trying to restart manually then what we have here is a locked process. Thankfully the resolution is quite simple. We just need to find the locked process, kill it then restart apache as usual.

Let’s find the locked process id

# netstat -ltnp | grep ':80'

This will return something like this

tcp  0  0 :::80  :::* LISTEN      3826/sudo

Now we have identified the PID as 3826, we just need to kill it

# kill -9 3826

With a little luck, a simple apache start will now get everything working

# service httpd start

Starting httpd: [  OK  ]

If the problem persists then review the apache error log to locate the issue:

# tail -500 /var/log/httpd/error_log

Save 20% on new gTLD Domain Names

Promo Code: TLD-MASSIVE20

This week we are offering a promo code that slashes the price of the most popular new gTLD domain names. These savings are per year so if you order multiple years then you save even more!

  • .catering SAVE £4.59+VAT
  • .cleaning SAVE £4.59+VAT
  • .consulting SAVE £4.59+VAT
  • .design SAVE £7.99+VAT
  • .graphics SAVE £3.59+VAT
  • .limited SAVE £4.59+VAT
  • .media SAVE £4.59+VAT
  • .photography SAVE £3.59+VAT
  • .solutions SAVE £3.59+VAT
  • .systems SAVE £3.59+VAT
  • .town SAVE £4.59+VAT
  • .villas SAVE £6.99+VAT

Register your new domains by midnight Thursday 22nd October and use promo code TLD-MASSIVE20 at the checkout to claim your discount. There is no minimum spend nor is there any limit to how much you can save! Use this promo code as many times as you wish before the expiry date.

DiscountVoucherMassive20

How to: Create DNS SRV Records

sshCreating SRV Records

Some services, such as Microsoft 365, will require SRV records to be created.

SRV records are constructed as follows:

_service._protocolName IN SRV priority weight portNO subdns.domain.com

The following parameters are needed to fully construct SRV records:

  • Service
  • Protocol
  • Port
  • Weight
  • Priority
  • Name
  • Target
  • TTL

A sample SRV record could look like this:

_https._tcp IN SRV 10 10 443 mail.domainname.com.

Microsoft 365 SRV records can look like this:

_sip._tls IN SRV 100 1 443 sipdir.online.lync.com.
_sipfederationtis._tcp IN SRV 100 1 5061 sipfed.online.lync.com.

Query SRC record with DIG with as such:

# dig srv _https._tcp.mail.domainname.com

;; ANSWER SECTION:

_https._tcp.domainname.com. 38400 IN SRV 10 10 443 mail.domainname.com

Setting up SRV records can be complicated. Simply contact the Helpdesk with the parameter list and our support staff will construct the SRV record on your behalf.

Categories DNS

Newsletter: Autumn 2015

Dear Clients,

We know you are busy, so we will keep this report brief !

We are excited to update you regarding the ongoing improvements we are making to all web hosting services during the latter half of 2015.

Hardware Upgrades

The technology behind server and network hardware is constantly changing. The latest and greatest server hardware available today is outdated within 3 years. In order to provide the highest performance for your services it is necessary for us to upgrade hardware on a cycle that is much shorter so that we never reach the “outdated” stage.

Your server hardware has been upgraded to the very best model available. If you usually monitor your website performance then you will already be aware of the performance increase!

Hosting Panel Upgrades

The Plesk Panel is the primary user interface enabling management of your hosting services and resources.

Your panel has been upgraded to Plesk 12 bringing you all the latest features of this great panel at no additional cost.

  • Protection from Outgoing Spam and Other Mail Improvements
  • Enhanced Site and Server Security
  • WordPress Security and Management Toolkit
  • Enhanced Usability and Convenience

Upgrades to the Panel are applied weekly. Since the launch of Plesk there have already been 68 updates! We apply these overnight as and when they are released.

Web Server and Site Security

All web servers are under constant attack and so security is of paramount importance.

We use the very latest firewall and application level protection to shield our servers and your web sites from external threats; with more than 10 years experience behind us, we have naturally developed our own in-house enhancements that go above and beyond what you would normally expect.

You do not need to worry about security, we will continue to improve and manage this area with absolute focus.

As always, the weakest link in your site security is your own site. It is imperative that you keep your own applications up to date and well patched. Our security measures protect you on a server level, but weakness in your own security is the highest risk to your site. If in doubt, contact us at any time.

And finally…

You may have also noticed that we have been rolling out a new web site:

https://www.uk-cheapest.co.uk

You have been telling us for some time that the word “cheapest” in our brand is no longer fashionable (and potentially detrimental) and for this reason, you will soon find the site brand migrating to UKC – let us know what you think!

http://ukc.uk is coming soon!

So we have listened to you – our valued customers!

As promised, we wanted to keep this brief. If you have any questions at all, please do not hesitate to contact us at the Helpdesk or on Live Chat.

With kind regards,

Colin, Tel and the UKC Team
https://www.uk-cheapest.co.uk