Problem with ServerRoot /etc/httpd

unique2world

Verified User
Joined
Dec 30, 2013
Messages
19
Location
./
Hi
How to fix it?

-- Unit nginx.service has begun starting up.
Sep 07 19:21:06 server.site.com nginx[8164]: nginx: [emerg] unknown directive "ServerRoot" in /usr/local/directadmin/data/users/admin/nginx.conf:16
Sep 07 19:21:06 server.site.com nginx[8164]: nginx: configuration file /etc/nginx/nginx.conf test failed
Sep 07 19:21:06 server.site.com systemd[1]: nginx.service: control process exited, code=exited status=1
Sep 07 19:21:06 server.site.com systemd[1]: Failed to start The nginx HTTP and reverse proxy server.
 

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
10,538
Location
LT, EU
What's the output of:
Code:
grep -r ServerRoot /usr/local/directadmin/data/templates/

You may also have custom code defined in "Customize HTTPd Configuration" on admin level.
 

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
10,538
Location
LT, EU
output:
Code:
/usr/local/directadmin/data/templates/httpd.conf:ServerRoot "/etc/httpd"



No

How to fix it?
I’d suggest opening a support ticket, as it’s most likely custom configuration/customization on the system.
 

unique2world

Verified User
Joined
Dec 30, 2013
Messages
19
Location
./
after install directadmin, i change apache to apache_nginx and exposure with this problem!
 
Top