1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 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>
|