News:

SMF - Just Installed!

Main Menu

Unable to start nginx: (98: Address already in use)

Started by Suhitha, Jan 30, 2026, 07:31 AM

Previous topic - Next topic

Suhitha

Question: Unable to start nginx: (98: Address already in use)


Applicable to:

  • Plesk Onyx for Linux


Symptoms

  • The following error occurs on attempt to start nginx service:
# service nginx start
(98) Address already in use: make_sock: could not bind to address [::]:80

  • Apache is listening service listen on 80 port:
# netstat -tulpn | grep :80
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 7424/httpd

Note: in case IP address is used by nginx, just kill the hung nginx process

  • Apache is configured to listen on port 80 in /etc/httpd/conf/httpd.conf file:

# grep Listen /etc/httpd/conf/httpd.conf
Listen 0.0.0.0:80


Cause

Manual Apache configuration.


Resolution

Note: if you don't have root access to Plesk server via SSH, contact your hosting provider regarding the issue

1.Log into the server via SSH

2.Use any text editor to correct aforementioned directive in the Apache configuration files:

Before:

# grep -R Listen /etc/httpd/
/var/httpd/conf/httpd.conf:Listen 0.0.0.0:80

After:

# grep -R Listen /etc/httpd/
/var/httpd/conf/httpd.conf: Listen 0.0.0.0:7080

3.Restart Apache service:

# service httpd restart

4.Regenerate web configuration:

# plesk repair web -y

5.Start nginx service:

# service nginx start