Help save net neutrality! Learn more.
Close

[P] MariaDB + Nginx + Adminer: Howto for working configuration

Help
Thomas
2014-04-07
2015-09-14
  • Thomas

    Thomas - 2014-04-07

    Hi!

    I have installed
    MariaDB
    Nginx
    and I want to use Adminer for DB administration.

    Can somebody please provide a working configuration for this setup?

    THX

     
  • Catalin Costras

    Catalin Costras - 2015-08-10

    Hi,

    I'm using Adminer with MariaDB and Nginx, this is my configuration file for nginx:

    server {
    listen 8003;
    server_name localhost;
    root /path/to/folder/adminer;
    access_log /var/log/nginx/localhost-adminer-access.log;
    error_log /var/log/nginx/localhost-adminer-error.log;
    location / {
    index index.php;
    try_files $uri $uri/ /index.php?$args;
    }
    location ~ .php$ {
    include fastcgi.conf;
    fastcgi_pass 127.0.0.1:9000;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME /path/to/folder/adminer$fastcgi_script_name;
    }
    }

    I hope this has been useful for someone.

     
    Last edit: Catalin Costras 2015-08-10
  • lennart

    lennart - 2015-09-14

    Is PHP already working? I put the file in the /html/-folder of NGINX, and it was working out of the box

     

Log in to post a comment.