Previous: MariaDB – Installation on Ubuntu Precise
1. Install phpMyAdmin.
- apt-get install phpmyadmin
2. Select neither Apache nor Lighttpd for the web server selection as we want to run it in Nginx.
3. And say NO for the Configure database for phpmyadmin with dbconfig-common?
4. Append the following settings in /etc/nginx/sites-available/default. Place it inside the server{}.
/etc/nginx/sites-available/default
location /phpmyadmin {
root /usr/share/;
index index.php index.html index.htm;
location ~ ^/phpmyadmin/(.+\.php)$ {
try_files $uri =404;
root /usr/share/;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}
location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
root /usr/share/;
}
}
location /phpMyAdmin {
rewrite ^/* /phpmyadmin last;
}
5. Restart the Nginx/
- /etc/init.d/nginx restart
6. Browse the following URL.
http://<your domain>/phpmyadmin
Done =)
Reference:

Pingback: MariaDB – Installation on Ubuntu Precise | Eureka!
Pingback: Run Drupal 7 in Nginx | Eureka!
How i can run phpmyadmin on nginx with Apache (back-end)
(OS Debian 6 Squeeze)
Do you mean you are running nginx as reverse proxy in front of an apache?