# Upgrade Mantis from version 1.2.19 to 2.25.2
## System Requirement
* Apache: 2.4.29
* PHP: 7.2.24
* MySQL: 5.7.35
* MantisBT: 2.25.2
## Virtual Host Settings
1. copy apache2-conf/*.conf to /etc/apache2/sites-available/
2. create soft link for the config files in **/etc/apache2/sites-available/** to **/etc/apache2/sites-enabled/**
## Export MySQL databases
* bugtracker for hq
* issuetrack for issuetrack
## Enable row-level coloring
* custom.js
```js
$(function() {
$(".fa-status-box").each(function() {
var $this = $(this);
var col = $this.css('color');
var a = col.slice(4).split(',');
var newAlpha = 0.3;
var bgCol = 'rgba('+a[0]+','+parseInt(a[1])+','+parseInt(a[2])+','+newAlpha+')';
$this.closest("tr").css("background-color", bgCol);
});
});
```
1. copy custom.js to ${MANTIS_ROOT}/js/
2. edit ${MANTIS_ROOT}/core/**layout_api.php**, add the following content at the end of function **layout_body_javascript()**
```
# custom -- Enable row-level coloring
html_javascript_link( 'custom.js' );
```
3. If this is not work, try to replace the **`layout_api.php`** directly.
* file: //nas.senao.com/project/Avalon/mantis-custom-style/layout_api.php
## Reference
* https://www.mantisbt.org/
* https://www.ryadel.com/en/mantis-bt-2-enable-row-level-coloring-like-v1-jquery-javascript/