I am using Ubuntu 14.04.01 and Apache - 2.2.31.
In httpd.conf I have
apache/logs$ cat stdout.log
httpd: bad user name build
useradd -m test -G sudo -s /bin/bash
Finally, I solved this issue:
sudo ltrace -f sh apachectl configtest 2>out.log
Investigated output in out.log file and found a call -
'getpwnam("build")', which returned '0'. From documentation I understood that "The given name or uid was not found.", but when I was calling 'id build' I was able to see that user exist and list of the network groups to which this user belongs to. Then I connected to another vm, where I was able to use LDAP user to start apache and ran
and compared the output. One of vm's was missing "libldap-2.3.so.0"