Page 1 of 1
Log Server administration page blank
Posted: Thu Mar 12, 2015 11:50 am
by ddeltoro
All of a sudden I'm having issues with the administration page no longer showing anything. Source shows it as blank. I looked in the error logs and found nothing. Access logs show a 200 code returned. I attempted to turn on php error reporting but i either did that the wrong or again no results.
I'm currently running 215R1.3. I have restarted httpd several times and modified the php.ini as follows:
display_errors = On
html_errors = On
error_log = php_errors.log
error_reporting = E_ALL | E_STRICT
Am I just looking in the wrong place to find the issue, or is there something else that may be hung?
Other than the admin page the server seems to be functioning normally.
Re: Log Server administration page blank
Posted: Thu Mar 12, 2015 12:02 pm
by jdalrymple
When you say that you checked the error logs do you mean /etc/httpd/logs/error_log?
This is where logserver puts php errors by default.
Re: Log Server administration page blank
Posted: Thu Mar 12, 2015 12:12 pm
by ddeltoro
Correct. Well, actually was looking in /var/log/httpd but its the same thing in the end as /etc/httpd/logs links to it.
All the log contains is:
Code: Select all
[Thu Mar 12 10:28:28 2015] [notice] caught SIGTERM, shutting down
[Thu Mar 12 10:28:29 2015] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Mar 12 10:28:29 2015] [notice] Digest: generating secret for digest authentication ...
[Thu Mar 12 10:28:29 2015] [notice] Digest: done
[Thu Mar 12 10:28:29 2015] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
[Thu Mar 12 10:30:58 2015] [notice] caught SIGTERM, shutting down
[Thu Mar 12 10:30:58 2015] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Mar 12 10:30:58 2015] [notice] Digest: generating secret for digest authentication ...
[Thu Mar 12 10:30:58 2015] [notice] Digest: done
[Thu Mar 12 10:30:58 2015] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
[Thu Mar 12 10:31:50 2015] [error] [client 10.0.208.4] script '/var/www/html/p.php' not found or unable to stat
[Thu Mar 12 10:33:46 2015] [notice] caught SIGTERM, shutting down
[Thu Mar 12 10:33:46 2015] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Mar 12 10:33:46 2015] [notice] Digest: generating secret for digest authentication ...
[Thu Mar 12 10:33:46 2015] [notice] Digest: done
[Thu Mar 12 10:33:46 2015] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
[Thu Mar 12 10:34:41 2015] [notice] caught SIGTERM, shutting down
[Thu Mar 12 10:34:41 2015] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Mar 12 10:34:41 2015] [notice] Digest: generating secret for digest authentication ...
[Thu Mar 12 10:34:41 2015] [notice] Digest: done
[Thu Mar 12 10:34:41 2015] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
[Thu Mar 12 10:37:14 2015] [notice] caught SIGTERM, shutting down
[Thu Mar 12 10:37:15 2015] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Mar 12 10:37:15 2015] [notice] Digest: generating secret for digest authentication ...
[Thu Mar 12 10:37:15 2015] [notice] Digest: done
[Thu Mar 12 10:37:15 2015] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
[Thu Mar 12 10:37:20 2015] [error] [client 10.0.208.4] File does not exist: /var/www/html/favicon.ico
[Thu Mar 12 10:37:39 2015] [notice] caught SIGTERM, shutting down
[Thu Mar 12 10:37:39 2015] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Mar 12 10:37:39 2015] [notice] Digest: generating secret for digest authentication ...
[Thu Mar 12 10:37:39 2015] [notice] Digest: done
[Thu Mar 12 10:37:39 2015] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
[Thu Mar 12 10:37:43 2015] [error] [client 10.0.208.4] File does not exist: /var/www/html/favicon.ico
[Thu Mar 12 10:43:11 2015] [error] [client 10.0.208.4] File does not exist: /var/www/html/favicon.ico
[Thu Mar 12 10:45:55 2015] [notice] caught SIGTERM, shutting down
[Thu Mar 12 10:45:56 2015] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Mar 12 10:45:56 2015] [notice] Digest: generating secret for digest authentication ...
[Thu Mar 12 10:45:56 2015] [notice] Digest: done
[Thu Mar 12 10:45:56 2015] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
[Thu Mar 12 10:45:59 2015] [error] [client 10.0.208.4] File does not exist: /var/www/html/favicon.ico
[Thu Mar 12 10:50:29 2015] [error] [client 10.0.208.4] File does not exist: /var/www/html/favicon.ico
[Thu Mar 12 10:50:29 2015] [error] [client 10.0.208.4] File does not exist: /var/www/html/favicon.ico
All of the sigterms are me restarting apache via 'service httpd restart' and the missing p.php was me putting a phpinfo script in the wrong directory.
Re: Log Server administration page blank
Posted: Thu Mar 12, 2015 12:24 pm
by ddeltoro
Looked into the code for index.php found in /var/www/html/nagioslogserver/www and found a definition in there to set the server as "development" to enable errors. Did so and now the page throws a useful error.
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32 bytes) in /var/www/html/nagioslogserver/application/libraries/elasticsearch.php on line 86
134217728 looks to be a 128mb limit which is the limit for php in my instance. Increasing it to 256mb solved my issue and I can once again see the admin interface.

Re: Log Server administration page blank
Posted: Thu Mar 12, 2015 1:32 pm
by jdalrymple
Beautiful - thanks for the update ddeltoro.
Good sleuthing - I'm going to go ahead and lock this thread and mark solved!