Question

phpmyadmin 404 error on NGINX Ubuntu configuration

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.

Show comments

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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

@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! i have similar problem on Example link i recently updated my php engine and now i got error like this.