diff --git a/spk/mantisbt/src/conf/PKG_DEPS b/spk/mantisbt/src/conf/PKG_DEPS
deleted file mode 100644
index 9f832e23f1a..00000000000
--- a/spk/mantisbt/src/conf/PKG_DEPS
+++ /dev/null
@@ -1,2 +0,0 @@
-[MariaDB]
-dsm_min_ver=5.0-4300
diff --git a/spk/mantisbt/src/conf/resource b/spk/mantisbt/src/conf/resource
new file mode 100644
index 00000000000..1240fe561b6
--- /dev/null
+++ b/spk/mantisbt/src/conf/resource
@@ -0,0 +1,66 @@
+{
+ "mariadb10-db": {
+ "admin-account-m10": "root",
+ "admin-pw-m10": "{{wizard_mysql_password_root}}",
+ "create-db": {
+ "db-collision": "skip",
+ "db-name": "mantisbt",
+ "flag": "{{wizard_create_db}}"
+ },
+ "drop-db-uninst": true,
+ "drop-user-uninst": true,
+ "grant-user": {
+ "db-name": "mantisbt",
+ "flag": "{{mysql_grant_user}}",
+ "host": "localhost",
+ "user-name": "mantisbt",
+ "user-pw": "{{wizard_mysql_password_mantisbt}}"
+ }
+ },
+ "webservice": {
+ "pkg_dir_prepare": [
+ {
+ "group": "http",
+ "mode": "0755",
+ "source": "/var/packages/mantisbt/target/share/mantisbt",
+ "target": "mantisbt",
+ "user": "sc-mantisbt"
+ }
+ ],
+ "portals": [
+ {
+ "alias": "mantisbt",
+ "app": "com.synocommunity.packages.mantisbt",
+ "name": "Feng Office",
+ "service": "mantisbt",
+ "type": "alias"
+ }
+ ],
+ "services": [
+ {
+ "backend": 2,
+ "display_name": "Feng Office",
+ "icon": "app/images/mantisbt-{0}.png",
+ "php": {
+ "backend": 8,
+ "extensions": [
+ "curl",
+ "gd",
+ "ldap",
+ "mysqli",
+ "pdo_mysql",
+ "soap",
+ "zlib"
+ ],
+ "group": "http",
+ "profile_desc": "PHP Profile for mantisbt",
+ "profile_name": "mantisbt Profile",
+ "user": "sc-mantisbt"
+ },
+ "root": "mantisbt",
+ "service": "mantisbt",
+ "type": "apache_php"
+ }
+ ]
+ }
+}
diff --git a/spk/mantisbt/src/conf_6/privilege b/spk/mantisbt/src/conf_6/privilege
new file mode 100644
index 00000000000..3bd5c1e74c4
--- /dev/null
+++ b/spk/mantisbt/src/conf_6/privilege
@@ -0,0 +1,7 @@
+{
+ "defaults": {
+ "run-as": "root"
+ },
+ "username": "sc-mantisbt",
+ "join-groupname": "http"
+}
diff --git a/spk/mantisbt/src/conf_6/resource b/spk/mantisbt/src/conf_6/resource
new file mode 100644
index 00000000000..6d522f1de2b
--- /dev/null
+++ b/spk/mantisbt/src/conf_6/resource
@@ -0,0 +1,21 @@
+
+{
+ "mariadb10-db": {
+ "admin-account-m10": "root",
+ "admin-pw-m10": "{{wizard_mysql_password_root}}",
+ "create-db": {
+ "db-collision": "skip",
+ "db-name": "mantisbt",
+ "flag": "{{wizard_create_db}}"
+ },
+ "drop-db-uninst": true,
+ "drop-user-uninst": true,
+ "grant-user": {
+ "db-name": "mantisbt",
+ "flag": "{{mysql_grant_user}}",
+ "host": "localhost",
+ "user-name": "mantisbt",
+ "user-pw": "{{wizard_mysql_password_mantisbt}}"
+ }
+ }
+}
diff --git a/spk/mantisbt/src/config_inc.php b/spk/mantisbt/src/web/config_inc.php
similarity index 67%
rename from spk/mantisbt/src/config_inc.php
rename to spk/mantisbt/src/web/config_inc.php
index 830ef53cd05..a0a1a96a5ec 100755
--- a/spk/mantisbt/src/config_inc.php
+++ b/spk/mantisbt/src/web/config_inc.php
@@ -1,7 +1,8 @@
diff --git a/spk/mantisbt/src/web/mantisbt.conf b/spk/mantisbt/src/web/mantisbt.conf
new file mode 100644
index 00000000000..d52429a8550
--- /dev/null
+++ b/spk/mantisbt/src/web/mantisbt.conf
@@ -0,0 +1,16 @@
+Alias "/mantisbt" "/var/services/web/mantisbt"
+
+
+ ProxySet timeout=3600
+
+
+
+
+
+ SetHandler "proxy:fcgi://mantisbt"
+
+
+
+ DirectoryIndex index.php index.htm index.html
+
+
diff --git a/spk/mantisbt/src/web/mantisbt.json b/spk/mantisbt/src/web/mantisbt.json
new file mode 100644
index 00000000000..b3feff58f26
--- /dev/null
+++ b/spk/mantisbt/src/web/mantisbt.json
@@ -0,0 +1,29 @@
+{
+ "backend": 8,
+ "custom_open_basedir": false,
+ "display_errors": false,
+ "enable_cache": true,
+ "enable_xdebug": false,
+ "extensions": [
+ "curl",
+ "gd",
+ "ldap",
+ "mysqli",
+ "pdo_mysql",
+ "soap",
+ "zlib"
+ ],
+ "fpm_settings": {
+ "max_children": 20,
+ "max_spare_servers": 3,
+ "min_spare_servers": 1,
+ "mode": "dynamic",
+ "start_servers": 2
+ },
+ "open_basedir": "",
+ "php_settings": {
+ "mysqli.default_socket": "/run/mysqld/mysqld10.sock"
+ },
+ "profile_desc": "PHP Profile for mantisbt",
+ "profile_name": "mantisbt Profile"
+}