Report this

What is the reason for this report?

How to install phpMyAdmin on Nginx?

Posted on May 5, 2014

After I install phpmyadmin with “sudo apt-get install phpmyadmin”, how do I set the server block in nginx configuration?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

There’s a tutorial for getting a LEMP stack up and running: <br> <br>https://www.digitalocean.com/community/articles/how-to-install-linux-nginx-mysql-php-lemp-stack-on-ubuntu-12-04 <br> <br>In that tutorial, you’ll get MySql and php set up to work with Nginx. There’s also a quick tutorial on getting phpMyAdmin working with the LEMP stack here: <br> <br>https://www.digitalocean.com/community/articles/how-to-install-phpmyadmin-on-a-lemp-server/

It sounds like you already did it. What’s the output of: <br> <br><pre> <br>ls /usr/share/nginx/www/phpmyadmin <br></pre> <br> <br>Have you tried to access http://your.ip.address/phpmyadmin ?

Thanks for the hint, but there is no luck. <br>“ls /usr/share/nginx/www/phpmyadmin” got lots of files listed. <br> <br>When I enter http://my_ip/phpmyadmin <br> <br>The error message shows up as, <br> <br>404 Not Found <br> <br>There must be something wrong. Should I set up something else? <br>

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.