Skip to content
Valentin Ivaşcu edited this page May 27, 2015 · 1 revision

Open http://www.phpmyadmin.net/ and download last version

Extract files to Windows F:\servers\project-name\shared\www\phpMyAdmin

Create vhost for pma.dev

sudo nano /etc/nginx/sites-available/pma.dev

and add config

server {
    listen 80;
    server_name pma.dev www.pma.dev;
    root '/vagrant/shared/www/phpMyAdmin';

    index index.html index.htm index.php;

    charset utf-8;

    location / {
        try_files \$uri \$uri/ /index.php?\$query_string;
    }

    access_log off;
    error_log  /var/log/nginx/pma-dev-error.log error;

    sendfile off;

    client_max_body_size 100m;

    location ~ \.php$ {
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_pass 127.0.0.1:9000;
        fastcgi_index index.php;
        include /etc/nginx/fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_intercept_errors off;
        fastcgi_buffer_size 16k;
        fastcgi_buffers 4 16k;
    }

    location ~ /\.ht {
        deny all;
    }
}

Enable pma.dev vhost creating a symbolic link

ln -fs "/etc/nginx/sites-available/pma.dev" "/etc/nginx/sites-enabled/pma.dev"

Reload nginx

sudo service nginx reload

and test if http://pma.dev/ is workin` ok!

Login with root and password you provided to mysql server installation

Clone this wiki locally