Are you still trying to run on FreeBSD?
Using Observium relies on working cookies and php sessions. Either your browser is retarded in such a way that it's breaking cookies and breaking the session, or your php install is retarded in such a way that it's breaking the session.
Stop trying to run it on FreeBSD.
adam.
On 2013-11-07 02:19, Ron Wingfield wrote:
Gentlemen:
I cannot understand this navigation problem. I have encountered this scenario before, but resolved the problem in the past. I have just upgraded to the current PHP Version 5.5.5 and for some reason (or other configuration error), navigation through the Observium system cycles back through the login page, regardless of navigation (menu) option selected. Once the login userid and passwd are (re)submitted, then the system displays the requested page.
I have endeavored to follow the documentation to the letter. Below, I have copied the critical attributes from the indicated files, and $_SERVER array dumps at each step in the example.
I need another set of eyes to spot any error(s). Has anyone encountered this same scenario? The only thing I can think of is some problem with the Apache Server version: Apache/2.2.25 configuration.
All thoughts and comments much appreciated,
OTTF, [1] Ron W.
FROM /OPT/OBSERVIUM/CONFIG.PHP:
$config['install_dir'] = "/opt/observium"; $config['html_dir'] = $config['install_dir'] . "/html"; $config['rrd_dir'] = $config['install_dir'] . "/rrd"; $config['log_file'] = $config['install_dir'] . "/observium.log"; $config['temp_dir'] = "/tmp";
// $config['base_url'] = "http://observium.company.com" [2];
/USR/LOCAL/ETC/APACHE22/EXTRA/VHOSTS-HTTPD.CONF
#----------------------------------------------------- <VirtualHost *:82> ServerAdmin rtwingfield@archaxis.net ServerName observium DocumentRoot /opt/observium/html AcceptPathInfo On # tried this . . .didn't help.
<Directory /> Options FollowSymLinks AllowOverride None </Directory>
<Directory /opt/observium/html/> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny Allow from all # DirectoryIndex index.php # When enabled, indexing is overridden.
</Directory>
RewriteEngine On RewriteOptions Inherit CustomLog /var/log/observium_access.log combined ErrorLog /var/log/observium_error.log Loglevel warn ServerSignature On
</VirtualHost>
#-----------------------------------------------------
$_SERVER ARRAY DUMP WHILE INITIAL LOGIN PAGE DISPLAYED:
$_SERVER array (31) 'UNIQUE_ID' => string (24) "UnrsWUKKaEkAACnBfTgAAAAB" 'SCRIPT_URL' => string (10) "/index.php" 'SCRIPT_URI' => string (32) "http://192.168.1.75:82/index.php" [3] 'HTTP_HOST' => string (15) "192.168.1.75:82" 'HTTP_USER_AGENT' => string (65) "Mozilla/5.0 (Windows NT 5.1; rv:25.0) Gecko/20100101 Firefox …" Mozilla/5.0 (Windows NT 5.1; rv:25.0) Gecko/20100101 Firefox/25.0 'HTTP_ACCEPT' => string (63) "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q= …" text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 'HTTP_ACCEPT_LANGUAGE' => string (14) "en-US,en;q=0.5" 'HTTP_ACCEPT_ENCODING' => string (13) "gzip, deflate" 'HTTP_CONNECTION' => string (10) "keep-alive" 'PATH' => string (29) "/sbin:/bin:/usr/sbin:/usr/bin" 'SERVER_SIGNATURE' => string (120) "<address>Apache/2.2.25 (FreeBSD) PHP/5.5.5 mod_ssl/2.2.25 Op …"
<address>Apache/2.2.25 (FreeBSD) PHP/5.5.5 mod_ssl/2.2.25 OpenSSL/0.9.8y DAV/2 Server at 192.168.1.75 Port 82</address> 'SERVER_SOFTWARE' => string (69) "Apache/2.2.25 (FreeBSD) PHP/5.5.5 mod_ssl/2.2.25 OpenSSL/0.9 …" Apache/2.2.25 (FreeBSD) PHP/5.5.5 mod_ssl/2.2.25 OpenSSL/0.9.8y DAV/2 'SERVER_NAME' => string (12) "192.168.1.75" 'SERVER_ADDR' => string (12) "192.168.1.75" 'SERVER_PORT' => string (2) "82" 'REMOTE_ADDR' => string (11) "192.168.1.2" 'DOCUMENT_ROOT' => string (19) "/opt/observium/html" 'SERVER_ADMIN' => string (24) "rtwingfield@archaxis.net" 'SCRIPT_FILENAME' => string (29) "/opt/observium/html/index.php" 'REMOTE_PORT' => string (4) "4758" 'GATEWAY_INTERFACE' => string (7) "CGI/1.1" 'SERVER_PROTOCOL' => string (8) "HTTP/1.1" 'REQUEST_METHOD' => string (3) "GET" 'QUERY_STRING' => string (0) "" 'REQUEST_URI' => string (10) "/index.php" 'SCRIPT_NAME' => string (10) "/index.php" 'PHP_SELF' => string (10) "/index.php"
. . .after login - main page displayed with device alerts, Recent Event Log entries, etc.
$_SERVER array (34) 'UNIQUE_ID' => string (24) "UnrtLEKKaEkAACniSo0AAAAG" 'SCRIPT_URL' => string (10) "/index.php" 'SCRIPT_URI' => string (32) "http://192.168.1.75:82/index.php" [3] 'HTTP_HOST' => string (15) "192.168.1.75:82" 'HTTP_USER_AGENT' => string (65) "Mozilla/5.0 (Windows NT 5.1; rv:25.0) Gecko/20100101 Firefox …" Mozilla/5.0 (Windows NT 5.1; rv:25.0) Gecko/20100101 Firefox/25.0 'HTTP_ACCEPT' => string (63) "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q= …" text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 'HTTP_ACCEPT_LANGUAGE' => string (14) "en-US,en;q=0.5" 'HTTP_ACCEPT_ENCODING' => string (13) "gzip, deflate" 'HTTP_REFERER' => string (32) "http://192.168.1.75:82/index.php" [3] 'HTTP_CONNECTION' => string (10) "keep-alive" 'CONTENT_TYPE' => string (33) "application/x-www-form-urlencoded" 'CONTENT_LENGTH' => string (2) "36" 'PATH' => string (29) "/sbin:/bin:/usr/sbin:/usr/bin" 'SERVER_SIGNATURE' => string (120) "<address>Apache/2.2.25 (FreeBSD) PHP/5.5.5 mod_ssl/2.2.25 Op …"
<address>Apache/2.2.25 (FreeBSD) PHP/5.5.5 mod_ssl/2.2.25 OpenSSL/0.9.8y DAV/2 Server at 192.168.1.75 Port 82</address> 'SERVER_SOFTWARE' => string (69) "Apache/2.2.25 (FreeBSD) PHP/5.5.5 mod_ssl/2.2.25 OpenSSL/0.9 …" Apache/2.2.25 (FreeBSD) PHP/5.5.5 mod_ssl/2.2.25 OpenSSL/0.9.8y DAV/2 'SERVER_NAME' => string (12) "192.168.1.75" 'SERVER_ADDR' => string (12) "192.168.1.75" 'SERVER_PORT' => string (2) "82" 'REMOTE_ADDR' => string (11) "192.168.1.2" 'DOCUMENT_ROOT' => string (19) "/opt/observium/html" 'SERVER_ADMIN' => string (24) "rtwingfield@archaxis.net" 'SCRIPT_FILENAME' => string (29) "/opt/observium/html/index.php" 'REMOTE_PORT' => string (4) "4759" 'GATEWAY_INTERFACE' => string (7) "CGI/1.1" 'SERVER_PROTOCOL' => string (8) "HTTP/1.1" 'REQUEST_METHOD' => string (4) "POST" 'QUERY_STRING' => string (0) "" 'REQUEST_URI' => string (10) "/index.php" 'SCRIPT_NAME' => string (10) "/index.php" 'PHP_SELF' => string (10) "/index.php"
Select preferences from drop-down menu and returned to Login Page:
$_SERVER array (39) 'REDIRECT_UNIQUE_ID' => string (24) "Unrq@kKKaEkAACnEf@QAAAAE" 'REDIRECT_SCRIPT_URL' => string (13) "/preferences/" 'REDIRECT_SCRIPT_URI' => string (35) "http://192.168.1.75:82/preferences/" [4] 'REDIRECT_STATUS' => string (3) "200" 'UNIQUE_ID' => string (24) "Unrq@kKKaEkAACnEf@QAAAAE" 'SCRIPT_URL' => string (13) "/preferences/" 'SCRIPT_URI' => string (35) "http://192.168.1.75:82/preferences/" [4] 'HTTP_HOST' => string (15) "192.168.1.75:82" 'HTTP_USER_AGENT' => string (65) "Mozilla/5.0 (Windows NT 5.1; rv:25.0) Gecko/20100101 Firefox …" Mozilla/5.0 (Windows NT 5.1; rv:25.0) Gecko/20100101 Firefox/25.0 'HTTP_ACCEPT' => string (63) "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q= …" text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 'HTTP_ACCEPT_LANGUAGE' => string (14) "en-US,en;q=0.5" 'HTTP_ACCEPT_ENCODING' => string (13) "gzip, deflate" 'HTTP_REFERER' => string (31) "http://192.168.1.75:82/addhost/" [5] 'HTTP_CONNECTION' => string (10) "keep-alive" 'PATH' => string (29) "/sbin:/bin:/usr/sbin:/usr/bin" 'SERVER_SIGNATURE' => string (120) "<address>Apache/2.2.25 (FreeBSD) PHP/5.5.5 mod_ssl/2.2.25 Op …"
<address>Apache/2.2.25 (FreeBSD) PHP/5.5.5 mod_ssl/2.2.25 OpenSSL/0.9.8y DAV/2 Server at 192.168.1.75 Port 82</address> 'SERVER_SOFTWARE' => string (69) "Apache/2.2.25 (FreeBSD) PHP/5.5.5 mod_ssl/2.2.25 OpenSSL/0.9 …" Apache/2.2.25 (FreeBSD) PHP/5.5.5 mod_ssl/2.2.25 OpenSSL/0.9.8y DAV/2 'SERVER_NAME' => string (12) "192.168.1.75" 'SERVER_ADDR' => string (12) "192.168.1.75" 'SERVER_PORT' => string (2) "82" 'REMOTE_ADDR' => string (11) "192.168.1.2" 'DOCUMENT_ROOT' => string (19) "/opt/observium/html" 'SERVER_ADMIN' => string (24) "rtwingfield@archaxis.net" 'SCRIPT_FILENAME' => string (29) "/opt/observium/html/index.php" 'REMOTE_PORT' => string (4) "4751" 'REDIRECT_URL' => string (13) "/preferences/" 'GATEWAY_INTERFACE' => string (7) "CGI/1.1" 'SERVER_PROTOCOL' => string (8) "HTTP/1.1" 'REQUEST_METHOD' => string (3) "GET" 'QUERY_STRING' => string (0) "" 'REQUEST_URI' => string (13) "/preferences/" 'SCRIPT_NAME' => string (10) "/index.php" 'PATH_INFO' => string (13) "/preferences/" 'PATH_TRANSLATED' => string (34) "redirect:/index.php/preferences///" 'PHP_SELF' => string (24) "/index.php/preferences//"
Entered USERID and PASSWD . . .navigated to and displayed User Preferences page.
$_SERVER array (41) 'REDIRECT_UNIQUE_ID' => string (24) "Unrrf0KKaEkAACnAdtwAAAAA" 'REDIRECT_SCRIPT_URL' => string (13) "/preferences/" 'REDIRECT_SCRIPT_URI' => string (35) "http://192.168.1.75:82/preferences/" [4] 'REDIRECT_STATUS' => string (3) "200" 'UNIQUE_ID' => string (24) "Unrrf0KKaEkAACnAdtwAAAAA" 'SCRIPT_URL' => string (13) "/preferences/" 'SCRIPT_URI' => string (35) "http://192.168.1.75:82/preferences/" [4] 'HTTP_HOST' => string (15) "192.168.1.75:82" 'HTTP_USER_AGENT' => string (65) "Mozilla/5.0 (Windows NT 5.1; rv:25.0) Gecko/20100101 Firefox …" Mozilla/5.0 (Windows NT 5.1; rv:25.0) Gecko/20100101 Firefox/25.0 'HTTP_ACCEPT' => string (63) "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q= …" text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 'HTTP_ACCEPT_LANGUAGE' => string (14) "en-US,en;q=0.5" 'HTTP_ACCEPT_ENCODING' => string (13) "gzip, deflate" 'HTTP_REFERER' => string (35) "http://192.168.1.75:82/preferences/" [4] 'HTTP_CONNECTION' => string (10) "keep-alive" 'CONTENT_TYPE' => string (33) "application/x-www-form-urlencoded" 'CONTENT_LENGTH' => string (2) "36" 'PATH' => string (29) "/sbin:/bin:/usr/sbin:/usr/bin" 'SERVER_SIGNATURE' => string (120) "<address>Apache/2.2.25 (FreeBSD) PHP/5.5.5 mod_ssl/2.2.25 Op …"
<address>Apache/2.2.25 (FreeBSD) PHP/5.5.5 mod_ssl/2.2.25 OpenSSL/0.9.8y DAV/2 Server at 192.168.1.75 Port 82</address> 'SERVER_SOFTWARE' => string (69) "Apache/2.2.25 (FreeBSD) PHP/5.5.5 mod_ssl/2.2.25 OpenSSL/0.9 …" Apache/2.2.25 (FreeBSD) PHP/5.5.5 mod_ssl/2.2.25 OpenSSL/0.9.8y DAV/2 'SERVER_NAME' => string (12) "192.168.1.75" 'SERVER_ADDR' => string (12) "192.168.1.75" 'SERVER_PORT' => string (2) "82" 'REMOTE_ADDR' => string (11) "192.168.1.2" 'DOCUMENT_ROOT' => string (19) "/opt/observium/html" 'SERVER_ADMIN' => string (24) "rtwingfield@archaxis.net" 'SCRIPT_FILENAME' => string (29) "/opt/observium/html/index.php" 'REMOTE_PORT' => string (4) "4753" 'REDIRECT_URL' => string (13) "/preferences/" 'GATEWAY_INTERFACE' => string (7) "CGI/1.1" 'SERVER_PROTOCOL' => string (8) "HTTP/1.1" 'REQUEST_METHOD' => string (4) "POST" 'QUERY_STRING' => string (0) "" 'REQUEST_URI' => string (13) "/preferences/" 'SCRIPT_NAME' => string (10) "/index.php" 'PATH_INFO' => string (13) "/preferences/" 'PATH_TRANSLATED' => string (34) "redirect:/index.php/preferences///" 'PHP_SELF' => string (24) "/index.php/preferences//"
Links:
[1] http://archaxis.net/htdocs/RTWingfield/htdocs/humor/OTTF/OTTF.html [2] http://observium.company.com [3] http://192.168.1.75:82/index.php [4] http://192.168.1.75:82/preferences/ [5] http://192.168.1.75:82/addhost/
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium