installing phpmyadmin to nginx centos server

  • Posted June 15, 2014

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.


403 Forbidden! ?!?! How can I solve this?

Submit an 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.

First, to get a LEMP stack on CentOS up and running, follow this article:

Then install phpmyadmin with: <pre> sudo yum --enablerepo=remi install phpmyadmin </pre> Then edit <code>/etc/nginx/conf.d/default.conf</code> to include: <pre> location /phpmyadmin { alias /usr/share/phpMyAdmin/; } </pre> Then finally, restart php and nginx: <pre> service nginx restart service php-fpm restart </pre> Now, it will be available at http://your.ip.address/phpmyadmin

You can find your sites-avaiable directory in <code>nginx.conf</code> file. TIP: You can setup specifc por on server to respond for phpMyAdmin. Virtualhosts are awesome, take a look at <a href=“”></a>