Question
How do I set separate phpMyAdmin for each Nginx Server Blocks ?
Hello, I followed these tutorials:
How To Install Linux, nginx, MySQL, PHP (LEMP) stack on Ubuntu 14.04
How To Install and Secure phpMyAdmin with Nginx on an Ubuntu 14.04 Server
How To Set Up Nginx Server Blocks (Virtual Hosts) on Ubuntu 14.04 LTS
After I removed the /etc/nginx/sites-enabled/default
the /phpMyAdmin URI returned a 404 error on each and every virtualhost. I figured out I had to make a symlink to phpMyAdmin in every virtualhost like this cd /var/www/example.com/html && sudo ln -s /usr/share/phpmyadmin phpmyadmin
.
Now its working fine, the problem is all virtualhost uses the same phpMyAdmin. I am planning to create a separate virtualhost for my friend to practice, but i don’t want him to be able to modify my databases.
I hope there is an universal solution for this, because at some virtualhost I want to enable mongoDB and nodeJS at some I want to use PHP.
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.
×