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.
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.
×
also i Cant run web1.com/info.php too
To clarify things up,
This is what I put under
/etc/nginx/site-available/web1
For /etc/nginx/site-available/web2
For others, I am able to fix this by
sudo ln -s /usr/share/phpmyadmin /home/ap/web1
. Previously, I followed tutorial and did thissudo ln -s /usr/share/phpmyadmin /usr/share/nginx/html