variables while opening index.php

Discussion in 'Installation/Configuration' started by c van dokkum, Mar 30, 2020.

  1. c van dokkum

    c van dokkum New Member

    Hi,

    I've had quite some trouble installing ispconfig, but i've got it so far that i can now reach the index.php through https
    But i'm getting the following right on screen:

    Code:
    uses('tpl'); $app->tpl->newTemplate('main.tpl.htm'); $app->tpl->setVar('startpage', isset($_SESSION['s']['module']['startpage']) ? $_SESSION['s']['module']['startpage'] : '', true); $app->tpl->setVar('logged_in', ($_SESSION['s']['user']['active'] != 1 ? 'n' : 'y')); // tab change warning? // read misc config $app->uses('getconf'); $sys_config = $app->getconf->get_global_config('misc'); if($sys_config['tab_change_warning'] == 'y') { $app->tpl->setVar('tabchange_warning_enabled', 'y'); $app->tpl->setVar('global_tabchange_warning_txt', $app->lng('global_tabchange_warning_txt')); } else { $app->tpl->setVar('tabchange_warning_enabled', 'n'); } $app->tpl->setVar('tabchange_discard_enabled', $sys_config['tab_change_discard']); if($sys_config['tab_change_discard'] == 'y') { $app->tpl->setVar('global_tabchange_discard_txt', $app->lng('global_tabchange_discard_txt')); } if($sys_config['use_loadindicator'] == 'y') { $app->tpl->setVar('use_loadindicator', 'y'); } if($sys_config['use_combobox'] == 'y') { $app->tpl->setVar('use_combobox', 'y'); } if(isset($_SESSION['show_info_msg'])) { $app->tpl->setVar('show_info_msg', $_SESSION['show_info_msg']); unset($_SESSION['show_info_msg']); } if(isset($_SESSION['show_error_msg'])) { $app->tpl->setVar('show_error_msg', $_SESSION['show_error_msg']); unset($_SESSION['show_error_msg']); } // read js.d files $js_d = ISPC_WEB_PATH . '/js/js.d'; $js_d_files = array(); if(@is_dir($js_d)) { $dir = opendir($js_d); while($file = readdir($dir)) { $filename = $js_d . '/' . $file; if($file === '.' || $file === '..' || !is_file($filename)) continue; if(substr($file, -3) !== '.js') continue; $js_d_files[] = array('file' => $file); } closedir($dir); } if (!empty($js_d_files)) $app->tpl->setLoop('js_d_includes', $js_d_files); unset($js_d_files); $app->tpl->setVar('current_theme', isset($_SESSION['s']['theme']) ? $_SESSION['s']['theme'] : 'default', true); // Logo $logo = $app->db->queryOneRecord("SELECT * FROM sys_ini WHERE sysini_id = 1"); if($logo['custom_logo'] != ''){ $base64_logo_txt = $logo['custom_logo']; } else { $base64_logo_txt = $logo['default_logo']; } $tmp_base64 = explode(',', $base64_logo_txt, 2); $logo_dimensions = $app->functions->getimagesizefromstring(base64_decode($tmp_base64[1])); $app->tpl->setVar('base64_logo_width', $logo_dimensions[0].'px'); $app->tpl->setVar('base64_logo_height', $logo_dimensions[1].'px'); $app->tpl->setVar('base64_logo_txt', $base64_logo_txt); // Title if (!empty($sys_config['company_name'])) { $app->tpl->setVar('company_name', $sys_config['company_name']. ' :: '); } $app->tpl_defaults(); $app->tpl->pparse(); ?>
    
    I hoping someone can help me with this issue.

    Best Regards,

    cdokkum
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Seems as if PHP is not installed and configured correctly when the PHP page is not parsed. ISPConfig installation is normally quite easy and straight forward, simply copy/paste of the commands from one of the perfect server guides gives you a system that fully works out of the box. Which tutorial did you use to install ISPConfig?
     
  3. c van dokkum

    c van dokkum New Member

  4. c van dokkum

    c van dokkum New Member

    I also tried to add the following line into my vhost config file:
    LoadModule php7_module modules/libphp7.so
    But no effect.
    It seems like the php is not working...

    I'm currently using:
    httpd-2.4.6-90.el7.centos.x86_64
     

Share This Page