Control Web Panel
WebPanel => Apache => Nginx => Topic started by: Bossmanuk on April 03, 2019, 01:35:39 PM
-
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
-
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" *
-
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>
-
Hi, try to rebuild VirtualHosts via CWPadmin: WebServers Settings => WebServers Main Conf => Rebuild all vhosts on save