Raw PHP being displayed
Posted: Mon Jan 28, 2019 1:28 pm
Problem:
My dev server is behaving oddly. I haven't logged in a couple of months, but
last time it was working well. Now however, raw PHP is being displayed instead
of any Nagios pages.
Could this have been broken by OS updates? My prod servers are not affected.
Can you give me a hint on where to start looking? httpd.conf doesn't appear
to have been changed.
Are the logs on the Nagios side I could look in?
Thx.
Example:
Version:
Nagios XI 5.4.10
My dev server is behaving oddly. I haven't logged in a couple of months, but
last time it was working well. Now however, raw PHP is being displayed instead
of any Nagios pages.
Could this have been broken by OS updates? My prod servers are not affected.
Can you give me a hint on where to start looking? httpd.conf doesn't appear
to have been changed.
Are the logs on the Nagios side I could look in?
Thx.
Example:
Code: Select all
<?php ?><?php // Copyright (c) 2008-2017 Nagios Enterprises, LLC. All rights
reserved. ?><?php
if(!function_exists('sg_load')){$__v=phpversion();$__x=explode('.',$__v);$__v2=$__x[0].'.'.(int)$__x[1];$__u=strtolower(substr(php_uname(),0,3));$__ts=(@constant('PHP_ZTS')
||
@constant('ZEND_THREAD_SAFE')?'ts':'');$__f=$__f0='ixed.'.$__v2.$__ts.'.'.$__u;$__ff=$__ff0='ixed.'.$__v2.'.'.(int)$__x[2].$__ts.'.'.$__u;$__ed=@ini_get('extension_dir');$__e=$__e0=@realpath($__ed);$__dl=function_exists('dl')
&& function_exists('file_exists') && @ini_get('enable_dl') &&
!@ini_get('safe_mode');if($__dl && $__e && version_compare($__v,'5.2.5'Nagios XI 5.4.10