HEX
Server: Apache
System: Linux eisbus 6.8.12-9-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-9 (2025-03-16T19:18Z) x86_64
User: www-data (33)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: //usr/share/doc/adminer/README.Debian
# 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>