How do I get Phpmyadmin to work with Nginx and Ubuntu? [closed]
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this questionI'm using Ubuntu 11.04 and Nginx.
I want to install phpmyadmin and have access to it on mydomain.com/phpmyadmin.
I've looked around and I see some ways to get it开发者_开发问答 to work, but not in the way mentioned above. I'm sure it's simple to do, but I'm a complete server noob atm.
Edit:
Nevermind, I found out an easy way to do it.
I just created a symbolic link from my phpmyadmin folder into my public web folder. I did this before but I didn't clear the cache so I thought it didn't work.
For Ubuntu 11.04 users with the default nginx file path, here are the steps:
1) ln -sf /usr/share/phpmyadmin /usr/share/nginx/www
2) /etc/init.d/nginx restart
3) delete your browser cache
First, you have to configure php with fpm or fastcgi (older method) on nginx, there are plenty of docs available for that. Once you have setup php with either of the methods, all you have to do is extract phpmyadmin files to the docroot in a subdirectory and configure phpmyadmin by editing config.inc.php or using the setup script provided at /setup.
To setup php 5.3 fpm + nginx: http://www.howtoforge.com/installing-php-5.3-nginx-and-php-fpm-on-ubuntu-debian
精彩评论