I am having problems installing Mantis 2.7.0 on Ubuntu 16.04. This machine has PHP 7.0.22-0
When I browse to the installation page http://<IP address>/mantis/admin/install.php the page is not rendered properly; I just see the source code as text. Here is the first half-page:
Code: Select all
. /** * Mantis Database installation process * * @package MantisBT * @copyright Copyright 2000 - 2002 Kenzaburo Ito - kenito@300baud.org * @copyright Copyright 2002 MantisBT Team - mantisbt-dev@lists.sourceforge.net * @link http://www.mantisbt.org */ error_reporting( E_ALL ); @set_time_limit( 0 ); # Load the MantisDB core in maintenance mode. This mode will assume that # config/config_inc.php hasn't been specified. Thus the database will not be opened # and plugins will not be loaded. define( 'MANTIS_MAINTENANCE_MODE', true ); require_once( dirname( dirname( __FILE__ ) ) . '/core.php' ); require_api( 'install_helper_functions_api.php' ); require_api( 'crypto_api.php' ); $g_error_send_page_header = false; # bypass page headers in error handler $g_failed = false; $g_database_upgrade = false; /** * Print Test result * * @param integer $p_result Result - BAD|GOOD. * @param boolean $p_hard_fail Fail installation or soft warning. * @param string $p_message Message to display to user. * @return void */ function print_test_result( $p_result, $p_hard_fail = true, $p_message = '' ) { global $g_failed; echo 'BAD'; } else { echo 'class="warning">POSSIBLE PROBLEM'; } if( '' != $p_message ) { echo '
' . $p_message; } } if( GOOD == $p_result ) { echo 'class="success">GOOD'; } echo ''; } /** * Print Test result * * @param string $p_test_description Test Description. * @param integer $p_result Result - BAD|GOOD. * @param boolean $p_hard_fail Fail installation or soft warning. * @param string $p_message Message to display to user. * @return void */ function print_test( $p_test_description, $p_result, $p_hard_fail = true, $p_message = '' ) { echo '' . $p_test_description . ''; print_test_result( $p_result, $p_hard_fail, $p_message ); echo '' . "\n"; } # install_state # 0 = no checks done # 1 = server ok, get database information # 2 = check the database information # 3 = install the database # 4 = get additional config file information # 5 = write the config file # 6 = post install checks # 7 = done, link to login or db updater $t_install_state = gpc_get_int( 'install', 0 ); layout_page_header_begin( 'Administration - Installation' ); html_javascript_link( 'install.js' ); layout_page_header_end(); layout_admin_page_begin(); ?>
Back to Administration
Checking Installation
array( 'db_table_prefix' => 'm', 'db_table_plugin_prefix' => 'plg', 'db_table_suffix' => '', ) , ); foreach( $t_prefix_defaults['oci8'] as $t_key => $t_value ) { $t_prefix_defaults['other'][$t_key] = config_get( $t_key, '' ); } if( $t_config_exists && $t_install_state <= 1 ) { # config already exists - probably an upgrade $f_dsn = con
The mantis PHP is being served from /www/html/mantis
Thanks!