Here is quick step to set http://localhost/phpmyadmin in Fedora 19 with NGINX. First, make sure we’re already have PhpMyadmin and NGINX installed. Then, we just need to append “/phpmyadmin” configuration inside our localhost.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | server { …. location /phpmyadmin/ { index index.php index.html index.htm; location ~ .php$ { fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html/$uri; include fastcgi_params; } } … } |
Then for correcting PhpMyadmin path:
1 | sudo ln -s /usr/share/phpMyAdmin /usr/share/nginx/html/phpmyadmin |
Voila! That’s it!