# 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>
