diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..08fd9c9
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,59 @@
+# Setup overview
+
+The compiled version of adminer is located at /usr/share/adminer/adminer.php
+
+The recommended ways to deploy adminer are:
+- symlinking adminer.php into your directory of choice viewable by a
+  php-enabled webserver.
+- if you want to enable plugins, pointing your webserver configuration to
+  /etc/adminer with conf.php a directory index. Editing conf.php lets you
+  enable plugins.
+
+The compiled version for the editor is located at /usr/share/adminer/editor.php
+
+# Setup for standalone workstation
+
+The simplest way to run adminer consists in the following:
+$ cd /usr/share/adminer
+$ php -S localhost:8000
+
+and you'll find adminer at http://localhost:8000/adminer/ .
+
+# Setup with apache
+
+Enabling the adminer configuration should make adminer available at
+http://server/adminer work provided you have libapache2-mod-php enabled.
+
+$ sudo a2enconf adminer
+
+# Setup with apache+uwsgi
+
+uwsgi configuration file:
+
+    [uwsgi]
+    master = True
+    cheap = True
+
+    plugins = 0:php
+
+    project_dir = /etc/adminer
+    chdir = %(project_dir)
+    php-docroot = %(project_dir)
+    php-index = conf.php
+
+    plugins = router_rewrite
+    route = ^/adminer/(.*) rewrite:/conf.php
+
+    buffer-size = 8192
+
+    # PHP sessions storage
+    cache2 = name=dbadmsessions,items=200,store=/var/lib/www/adminer/uwsgi.cache,expires=3600
+    php-set = session.save_handler=uwsgi
+    php-set = session.save_path=dbadmsessions
+
+apache:
+
+    ProxyPassMatch  "^/adminer/(.*)?$"       "unix:/var/run/uwsgi/adminer.socket|uwsgi://uwsgi-uds-adminer/"
+    <Location /adminer>
+        Require all granted
+    </Location>
diff --git a/debian/adminer.apache2 b/debian/adminer.apache2
new file mode 100644
index 0000000..c3e8e57
--- /dev/null
+++ b/debian/adminer.apache2
@@ -0,0 +1 @@
+conf debian/adminer.conf
diff --git a/debian/adminer.conf b/debian/adminer.conf
new file mode 100644
index 0000000..3e7aaee
--- /dev/null
+++ b/debian/adminer.conf
@@ -0,0 +1,6 @@
+Alias /adminer /etc/adminer
+
+<Directory /etc/adminer>
+	Require all granted
+	DirectoryIndex conf.php
+</Directory> 
diff --git a/debian/changelog b/debian/changelog
index d310ea7..fb54369 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+adminer (4.7.1-1+deb10u1) buster; urgency=medium
+
+  * provide a compiled version and configuration files (Closes: #952755)
+  * privacy: default to disable check for new version
+
+ -- Alexandre Rossi <alexandre.rossi@gmail.com>  Tue, 12 May 2020 14:55:24 +0200
+
 adminer (4.7.1-1) unstable; urgency=medium
 
   * New upstream release.
diff --git a/debian/conf.php b/debian/conf.php
new file mode 100644
index 0000000..0eda742
--- /dev/null
+++ b/debian/conf.php
@@ -0,0 +1,33 @@
+<?php
+
+define('ADMINER_DIR', '/usr/share/adminer');
+
+function adminer_object() {
+    // required to run any plugin
+    include_once ADMINER_DIR . "/plugins/plugin.php";
+
+    // autoloader
+    foreach (glob(ADMINER_DIR . "/plugins/*.php") as $filename) {
+        include_once $filename;
+    }
+
+    $plugins = array(
+        // specify enabled plugins here
+        new AdminerVersionNoverify(), // disable phoning home
+        //new AdminerLoginServers([
+        //    'my' => ['server' => 'localhost', 'driver' => 'server'], // mysql
+        //    'pg' => ['server' => 'localhost', 'driver' => 'pgsql'],
+        //]),
+    );
+
+    /* It is possible to combine customization and plugins:
+    class AdminerCustomization extends AdminerPlugin {
+    }
+    return new AdminerCustomization($plugins);
+    */
+
+    return new AdminerPlugin($plugins);
+}
+
+include ADMINER_DIR . "/adminer.php";
+?>
diff --git a/debian/control b/debian/control
index 5d3a612..3632300 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: web
 Priority: optional
 Maintainer: Chris Lamb <lamby@debian.org>
 Build-Depends:
- debhelper-compat (= 11),
+ debhelper-compat (= 11), php-cli, dh-apache2
 Standards-Version: 4.3.0
 Homepage: https://www.adminer.org/
 Vcs-Git: https://salsa.debian.org/lamby/pkg-adminer.git
@@ -20,6 +20,7 @@ Recommends:
  php-mysql,
  php-pgsql,
  php-sqlite3,
+ ${misc:Recommends},
 Suggests:
  default-mysql-server | virtual-mysql-server | postgresql | sqlite3,
 Description: Web-based database administration tool
diff --git a/debian/install b/debian/install
index c0ac2b6..791d1ce 100644
--- a/debian/install
+++ b/debian/install
@@ -4,3 +4,4 @@ designs		usr/share/adminer
 editor		usr/share/adminer
 externals	usr/share/adminer
 plugins		usr/share/adminer
+debian/conf.php	etc/adminer/
diff --git a/debian/patches/plugin-version-noverify-fix b/debian/patches/plugin-version-noverify-fix
new file mode 100644
index 0000000..a38681e
--- /dev/null
+++ b/debian/patches/plugin-version-noverify-fix
@@ -0,0 +1,17 @@
+Author: Alexandre Rossi <alexandre.rossi@gmail.com>
+Description: Fix VersionNoverify plugin
+Forwarded: https://sourceforge.net/p/adminer/bugs-and-features/705/
+
+Index: adminer.git/plugins/version-noverify.php
+===================================================================
+--- adminer.git.orig/plugins/version-noverify.php	2019-09-06 10:10:29.544811633 +0200
++++ adminer.git/plugins/version-noverify.php	2019-09-06 10:11:18.181666258 +0200
+@@ -8,7 +8,7 @@
+ */
+ class AdminerVersionNoverify {
+ 	
+-	function navigation($missing) {
++	function head() {
+ 		echo script("verifyVersion = function () {};");
+ 	}
+ 	
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..4bb6e66
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+plugin-version-noverify-fix
diff --git a/debian/rules b/debian/rules
index dd54c24..7fe22c0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,7 +3,7 @@
 SHARE := $(CURDIR)/debian/$(shell dh_listpackages)/usr/share
 
 %:
-	dh $@
+	dh $@ --with apache2
 
 override_dh_installchangelogs:
 	dh_installchangelogs changes.txt
@@ -15,3 +15,17 @@ override_dh_installdocs:
 	set -e; for X in designs plugins; do \
 		mv -v $(SHARE)/adminer/$$X/readme.txt $(SHARE)/doc/adminer/readme-$$X.txt; \
 	done
+
+override_dh_auto_build:
+	dh_auto_build
+	php compile.php
+	mv adminer-*.php adminer.php
+	php compile.php editor
+	mv editor-*.php editor.php
+
+override_dh_apache2:
+	dh_apache2 --noenable
+
+override_dh_auto_clean:
+	rm -f adminer*.php editor*.php
+	dh_auto_clean
