Search Engine: Elastic

Article ID: 118427, created on Nov 4, 2013, last review on Sep 11, 2016

  • Applies to:
  • Operations Automation 6.0
  • Operations Automation 5.5
  • Operations Automation 5.4


When PHP pages are accessed, browser shows 500 error and following is thrown in webspace logs and httpd error_log:

Premature end of script headers: php


One of the causes is that the /etc/nsswitch.conf file was modified to exclude ng database. Thus, a php-cgi script is not being executed - the server cannot locate the web user to run the script.


Ensure that the file /etc/nsswitch.conf contains lines:

~# egrep '^passwd|^shado' /etc/nsswitch.conf
passwd:     files ng 
shadow:     files ng 

And restart httpd:

~# service httpd restart

Please see KB #114406 for additional details.

NOTE: it might also be necessary to restart redis and httpd services for the changes in nsswitch.conf to take place:

  1. On NG webservers do:

    ~# service httpd stop
    ~# service redis stop
  2. On POA Management Node do:

    ~# chkconfig --list | grep redis

    To locate the exact redis service that is used with NG. E.g., redis.75. Issue:

    ~# service redis.75 restart
  3. On NG webservers do:

    ~# service redis start
    ~# service httpd start 

Verify that nscd service is not running, see KB #/121938 for details

5356b422f65bdad1c3e9edca5d74a1ae caea8340e2d186a540518d08602aa065 ac82ce33439a9c1feec4ff4f2f638899 2554725ed606193dd9bbce21365bed4e 5b048d9bddf8048a00aba7e0bdadef37 e12cea1d47a3125d335d68e6d4e15e07 956c448bddc7e1f3585373687602379f 6f1456866eed87488c0f02b298a741c0

Email subscription for changes to this article
Save as PDF