By emrebugday
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!
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:
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.