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>
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.
