How to install phpmyadmin on subdomain of nginx web server

Following through the tutorial

I was able to install phpmyadmin on subdirectory. But with same configuration set that digital ocean provide. I want Install phpmyadmin on subdomain of nignx Web server. Can anyone tell me the exact configuration based on the above tutorial.

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

  • Add the subdomain in your digitalocean domains part for the domain
  • create a virtualhost in nginx to accept requests from the subdomain e.g server_name
  • in the virtualhost conf, point to the respective folder for your phpmyadmin

Hello, @omnaidu

The process is pretty much the same however, you need to deploy PHPMyAdmin in the subdomain’s root directory.

You can use the same command in order to create the symlink:

  1. sudo ln -s /usr/share/phpmyadmin /var/www/your_subdomain/phpmyadmin

To access the interface, go to your subdomain name followed by /phpmyadmin in your web browser:


Hope that this helps! Regards, Alex