Symptoms

All sites located on NG Web-cluster are showing error 500 for pages with dynamic content.

  1. Following errors are registered in sites logs:

    Premature end of script headers: php-cgi
    
  2. Webspace content listing shows that instead of usernames UIDs are shown:

    # ls -als /var/www/vhosts/2/100624
    total 28
    4 drwxr-xr-x   6 root   root   4096 Nov 27  2012 .
    4 drwxr-xr-x 121 root   root   4096 May 18 09:10 ..
    4 drwxr-x---   2 root   pemsrv 4096 May 18 04:02 log
    4 drwxr-x---   2 100624 pemsrv 4096 Nov 27  2012 pear
    4 -rwxr-x---   1 100624 pemsrv  414 Nov 27  2012 .pearrc
    4 drwxr-x---   2 apache apache 4096 Nov 27  2012 tmp
    4 drwxr-xr-x  13 root   root   4096 Nov 27  2012 webspace
    
  3. Using following command we can find username by UID:

    # getent passwd | grep 100624
    e100624:*:100624:10003:POA Webspace Owner:/var/www/vhosts/1/100624:/sbin/nologin
    
  4. But following command returns null result:

    # id e100624
    id: 101287: No such user
    

Cause

Service NSCD is working and causes the conflicts with LDAP.

# /etc/init.d/nscd status
nscd (pid 884868) is running...

Resolution

The service have to be stopped and disabled.

Execute following on every Web-server of NG Web Cluster:

# chkconfig nscd off
# /etc/init.d/nscd stop

Internal content