installing phpmyadmin to nginx centos server

June 15, 2014 10.4k views
There isnt any tutorial about installing phpmyadmin to nginx on centos server. I googled it and I found here . The problem is there isnt any directory called "etc/nginx/sites-available" in my server. Can someone make a tutorial for that please? I really need phpmyadmin.
1 comment
2 Answers
You can find your sites-avaiable directory in nginx.conf file. TIP: You can setup specifc por on server to respond for phpMyAdmin. Virtualhosts are awesome, take a look at
First, to get a LEMP stack on CentOS up and running, follow this article: Then install phpmyadmin with:
sudo yum --enablerepo=remi install phpmyadmin
Then edit /etc/nginx/conf.d/default.conf to include:
    location /phpmyadmin {
        alias /usr/share/phpMyAdmin/;
Then finally, restart php and nginx:
service nginx restart
service php-fpm restart
Now, it will be available at http://your.ip.address/phpmyadmin
by Etel Sverdlov
LEMP stack is a group of open source software to get web servers up and running. The acronym stands for Linux, nginx (pronounced Engine x), MySQL, and PHP. This tutorial explains how to install the required repos to download nginx and php-fpm, how to install MySQL, how to install nginx, how to install php-fpm, how to configure php and nginx, and how to create a php info page. This tutorial is written for CentOS.
Have another answer? Share your knowledge.