Report this

What is the reason for this report?

installing phpmyadmin to nginx centos server

Posted on June 15, 2014

There isnt any tutorial about installing phpmyadmin to nginx on centos server. I googled it and I found here http://www.tecmint.com/install-phpmyadmin-for-apache-or-nginx-on-rhelcentos-6-3-5-8-fedora-17-12/ .

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.



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!

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.

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=“http://wiki.nginx.org/ServerBlockExample”>http://wiki.nginx.org/ServerBlockExample</a>

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

https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-on-centos-6

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.