[ISSUE] Can't restart nginx with webserver nginx_apache

quangtam

Verified User
Joined
Sep 8, 2011
Messages
18
[SOLVED] Can't restart nginx with webserver nginx_apache

Hi,

I've installed nginx_apache with custombuild 2, but when I add new domain, I see all statics files are brocken because the nginx can't restart. I've tried to manual restart from cmd and got this message:

Code:
[root@sv06 ~]# service nginx restart
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: [emerg] listen() to 0.0.0.0:8080, backlog 511 failed (98: Address already in use)
nginx: configuration file /etc/nginx/nginx.conf test failed

I've tried to rebuild but the same issue still happen. Bellow is screenshot of my current services:
Screen Shot 2016-02-25 at 12.14.55 AM.png

Please help me :(
 
Last edited:
Try:
Code:
cd /usr/local/directadmin/custombuild
./build update
./build rewrite_confs

Nginx shouldn't listen on port 8080. Make sure you don't have a custom port_80 set in /usr/local/directadmin/conf/directadmin.conf.
 
Back
Top