Package: mantis Version: 1.2.18-1 $ uname -a && cat /etc/debian_version Linux host 3.2.0-4-amd64 #1 SMP Debian 3.2.65-1+deb7u1 x86_64 GNU/Linux 7.8
I'm trying to install mantis-1.2.18-1, but unfortunately the ./admin/install.php reports the following error: Checking Database Server Version: BAD MySQL 4.1.0 or later is required for installation. The server is running MySQL 5.5: $ dpkg -l mysql*|grep ii ii mysql-client-5.5 5.5.41-0+wheezy1 amd64 MySQL database client binaries ii mysql-common 5.5.41-0+wheezy1 all MySQL database common files, e.g. /etc/mysql/my.cnf ii mysql-server 5.5.41-0+wheezy1 all MySQL database server (metapackage depending on the latest version) ii mysql-server-5.5 5.5.41-0+wheezy1 amd64 MySQL database server binaries and system database setup ii mysql-server-core-5.5 5.5.41-0+wheezy1 amd64 MySQL database server binaries When I apply the following code from upstream master-1.2.x, the error is gone and I can go through the installation process: ---- diff -ur usr/share/mantis/www/admin/install.php /usr/share/mantis/www/admin/install.php --- usr/share/mantis/www/admin/install.php 2012-06-15 17:24:55.000000000 +0200 +++ /usr/share/mantis/www/admin/install.php 2015-01-28 22:58:36.000000000 +0100 @@ -576,40 +569,39 @@ <table width="100%" border="0" cellpadding="10" cellspacing="1"> <!-- display database version --> <tr> - <?php - $t_warning = ''; - $t_error = ''; - switch ($f_db_type) { - case 'mysql' : - case 'mysqli' : - - // due to a bug in ADODB, this call prompts warnings, hence the @ - // the check only works on mysql if the database is open - // using default mysql db to test the version - $default_mysql_database = "mysql" ; - @$g_db->Connect ( $f_hostname, $f_admin_username, $f_admin_password,$default_mysql_database); - $t_version_info = @$g_db->ServerInfo (); - if (version_compare ( $t_version_info ['version'], '4.1.0', '<' )) { - $t_error = 'MySQL 4.1.0 or later is required for installation. '.$error_go_back; - }else{ - $t_result_validation = '<br /> Running ' . $f_db_type . ' version ' . $t_version_info ['description']; - } - break; - case 'pgsql' : - case 'mssql' : - case 'db2' : - default : - $t_result_validation = '<br /> Running ' . $f_db_type ; - break; - } - ?> - <td bgcolor="#ffffff" width="60%">Checking Database Server Version <?php echo $t_result_validation?></td> - <?php - //show results - print_test_result ( ('' == $t_error) && ('' == $t_warning), ('' != $t_error), $t_error . ' ' . $t_warning ); - //control mysql errors - if('' == !$t_error){ exit; } - ?> + <td bgcolor="#ffffff"> + Checking Database Server Version + <?php + # due to a bug in ADODB, this call prompts warnings, hence the @ + # the check only works on mysql if the database is open + $t_version_info = @$g_db->ServerInfo(); + echo '<br /> Running ' . string_attribute( $f_db_type ) . ' version ' . $t_version_info['description']; + ?> + </td> + <?php + $t_warning = ''; + $t_error = ''; + switch( $f_db_type ) { + case 'mysql': + case 'mysqli': + if( version_compare( $t_version_info['version'], '4.1.0', '<' ) ) { + $t_error = 'MySQL 4.1.0 or later is required for installation.'; + } + break; + case 'mssql': + case 'mssqlnative': + if( version_compare( $t_version_info['version'], '9.0.0', '<' ) ) { + $t_error = 'SQL Server 2005 or later is required for installation.'; + } + break; + case 'pgsql': + case 'db2': + default: + break; + } + + print_test_result(( '' == $t_error ) && ( '' == $t_warning ), ( '' != $t_error ), $t_error . ' ' . $t_warning ); + ?> </tr> </table> ---- Regards, -- Bruno -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org