Ad Widget

Collapse

Web frontend error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cursor
    Junior Member
    • May 2012
    • 2

    #1

    Web frontend error

    I just finished the install of Zabbix 1.8.12 on a CentOS 6.2 server. The problem is that I cannot properly see the web page for the front end. All I get when I go to http://localhost/zabbix is this:

    array(T_ZBX_STR, O_NO, NULL, NOT_EMPTY, 'isset({enter})', S_LOGIN_NAME), 'password'=> array(T_ZBX_STR, O_OPT, NULL, NULL, 'isset({enter})'), 'sessionid'=> array(T_ZBX_STR, O_OPT, NULL, NULL, NULL), 'message'=> array(T_ZBX_STR, O_OPT, NULL, NULL, NULL), 'reconnect'=> array(T_ZBX_INT, O_OPT, P_SYS, BETWEEN(0,65535),NULL), 'enter'=> array(T_ZBX_STR, O_OPT, P_SYS, NULL, NULL), 'form'=> array(T_ZBX_STR, O_OPT, P_SYS, NULL, NULL), 'form_refresh'=> array(T_ZBX_INT, O_OPT, NULL, NULL, NULL), 'request'=> array(T_ZBX_STR, O_OPT, NULL, NULL, NULL), ); check_fields($fields); ?> $name, 'password'=>$passwd, 'auth_type'=>$authentication_type)); if($login){ $url = is_null($request) ? $USER_DETAILS['url'] : $request; add_audit_ext(AUDIT_ACTION_LOGIN, AUDIT_RESOURCE_USER, $USER_DETAILS['userid'], '', null,null,null); redirect($url); exit(); } } include_once('include/page_header.php'); if(isset($_REQUEST['message'])) show_error_message($_REQUEST['message']); if(!isset($sessionid) || ($USER_DETAILS['alias'] == ZBX_GUEST_USER)){ switch($authentication_type){ case ZBX_AUTH_HTTP: break; case ZBX_AUTH_LDAP: case ZBX_AUTH_INTERNAL: default: // konqueror bug #138024; adding useless param(login=1) to the form's action path to avoid bug!! $frmLogin = new CFormTable(S_LOGIN,'index.php?login=1','post','mul tipart/form-data'); $frmLogin->setHelp('web.index.login'); $frmLogin->addVar('request', $request); $lt = new CTextBox('name'); $lt->addStyle('width: 150px'); $frmLogin->addRow(S_LOGIN_NAME, $lt); $pt = new CPassBox('password'); $pt->addStyle('width: 150px'); $frmLogin->addRow(S_PASSWORD, $pt); $frmLogin->addItemToBottomRow(new CButton('enter','Enter')); $frmLogin->show(false); setFocus($frmLogin->getName(),'name'); $frmLogin->destroy(); } } else{ echo '
    '.S_WELCOME.' '.$USER_DETAILS['alias'].'.
    '; } ?>

    I have checked the installation manual and I do not see any missing components. Any idea what may be missing?

    At first I installed from source but I decided to install from the EPEL rpm just in case I missed something important. I am having exactly the same problem after installing the rpm.
    Last edited by cursor; 02-05-2012, 17:50. Reason: Adding more info
  • ke_sheng_jie
    Member
    • Aug 2011
    • 40

    #2
    Php?

    Is PHP installed properly? Do any PHP pages work?

    Comment

    • cursor
      Junior Member
      • May 2012
      • 2

      #3
      [root@monitoreo ~]# rpm -qa | grep php
      php-common-5.3.3-3.el6_2.6.x86_64
      php-mysql-5.3.3-3.el6_2.6.x86_64
      php-xml-5.3.3-3.el6_2.6.x86_64
      php-mbstring-5.3.3-3.el6_2.6.x86_64
      php-cli-5.3.3-3.el6_2.6.x86_64
      php-5.3.3-3.el6_2.6.x86_64
      php-pdo-5.3.3-3.el6_2.6.x86_64
      php-gd-5.3.3-3.el6_2.6.x86_64
      php-bcmath-5.3.3-3.el6_2.6.x86_64
      mod_suphp-0.7.1-1.el6.rf.x86_64

      Apache has /etc/httpd/conf.d/php.conf which loads the php modules and binds .php files to the interpreter. I am going to disable selinux to see if it is blocking the php module from loading.

      Comment

      Working...