New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

nginx: [emerg] bind() to 80.xxx.xx.xx:80 failed (99: Cannot assign requested add

Started by Bossmanuk, April 03, 2019, 01:35:39 PM

Previous topic - Next topic

Bossmanuk

Hi Everyone,
I have started to get the following error with Nginx, Apache & Varnish install. If i rebuild server to just Apache it all works perfectly fine as soon as i add nginx in the mix it keep getting this error?

-- Unit nginx.service has begun starting up.
Apr 03 14:28:35 hostname nginx[17898]: nginx: [emerg] bind() to 80.xxx.xx.xx:80 failed (99: Cannot assign requested address)
Apr 03 14:28:35 hostname systemd[1]: nginx.service: control process exited, code=exited status=1
Apr 03 14:28:35 hostname systemd[1]: Failed to start nginx - high performance web server.
-- Subject: Unit nginx.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Hidden the obvious information for security reasons.

Thanks

Bossmanuk

studio4host

when you activate nginx try to check what is working on the port 80 (probably apache)

then check all config file in  this two folder to find were issue is exactly

/usr/local/apache/conf.d/
/usr/local/apache/conf/

example:
cd /usr/local/apache/conf.d/
grep -r ":80" *
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

Bossmanuk

After doing what you suggested these are the results

cd /usr/local/apache/conf.d/
grep -r ":80" *


Output

vhosts/mydomain.co.uk.conf:<VirtualHost 80.xxx.xxx.xx:80>


cd /usr/local/apache/conf/
grep -r ":80" *


Output


extra/httpd-vhosts.conf:<VirtualHost *:80>
extra/httpd-vhosts.conf:<VirtualHost *:80>
httpd.conf:#Listen 12.34.56.78:80
httpd.conf:#ServerName www.example.com:80
httpd.conf_backup:#Listen 12.34.56.78:80
httpd.conf_backup:#ServerName www.example.com:80
httpd.conf.bak:#Listen 12.34.56.78:80
httpd.conf.bak:#ServerName www.example.com:80
original/extra/httpd-vhosts.conf:<VirtualHost *:80>
original/extra/httpd-vhosts.conf:<VirtualHost *:80>
original/httpd.conf:#Listen 12.34.56.78:80
original/httpd.conf:#ServerName www.example.com:80
sharedip.conf:<VirtualHost 80.xxx.xxx.xx:80>


Igor S.

Hi, try to rebuild VirtualHosts via CWPadmin: WebServers Settings => WebServers Main Conf => Rebuild all vhosts on save



You can ask me to solve any problem with your server for some money in pm  ;)






Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions

Get Fast Support Here
http://centos-webpanel.com/support-services