Report this

What is the reason for this report?

phpmyadmin 404 error on NGINX Ubuntu configuration

Posted on October 13, 2014

Hi I configured my wordpress website with this tutorial: https://www.digitalocean.com/community/tutorials/how-to-configure-single-and-multiple-wordpress-site-settings-with-nginx

I configured server block as follow:

server {
    server_name web1.com;
	return 301 $scheme://www.web1.com$request_uri;
	}

# URL: add a permanent redirect if required.
server {
    server_name www.web1.com web1.com;
    root /home/ap/web1;
    access_log /var/log/nginx/www.web1.com.access.log;
    error_log /var/log/nginx/www.web1.com.error.log;
    include global/common.conf;
    include global/wordpress.conf;
    include global/multisite.conf;
}

server {
    server_name web2.com;
	return 301 $scheme://www.web2$request_uri;
	}
# URL: add a permanent redirect if required.
server {
    server_name www.web2.com  web2.com;
    root /home/ap/web2;
    access_log /var/log/nginx/www.web2.com.access.log;
    error_log /var/log/nginx/www.web2.com.error.log;
    include global/common.conf;
    include global/wordpress.conf;
    include global/multisite.conf;
}

And I was able to run wordpress on www.web1.com with no problem. Then I installed phpmyadmin using this tutorial , https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-with-nginx-on-an-ubuntu-14-04-server

When I access ipaddress/phpmyadmin, it returns me to 404 wordpress page web1.com

I have looked at other fixes, but couldnt get it to work.

Please Help.



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.

@trident37 thanks a lot. My phpmyadmin is now accessible. but it redirects to 404 page after i login and works again when i go back. strange but works :)

Hey All - I fixed it on my install (at least, it works, not sure if I missed something important though!) by doing this:

Go to the root of your Wordpress install (where the WP-Content, WP-Admin, WP-Includes folders are) - for me it was:

cd /var/www/html

Then enter:

sudo ln -s /usr/share/phpmyadmin

After I did this I was able to login via a browser at:

mydomain.com/phpmyadmin

Now I’ll find out if I can get Solr running…LOL

Good luck! Rob

i have the problem, the same problem. I create second server. Install LEMP and then need to install phpmyadmin. I did, but it is not work. 404 not found…and i do not understand where to find fault

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.