phpmyadmin after logins redirects to wrong url

Discussion in 'Installation/Configuration' started by Donatas, Aug 21, 2018.

  1. Donatas

    Donatas New Member

    Hello,
    nginx + phpmyadmin based on howtoforge.com/tutorial/perfect-server-debian-9-nginx-bind-dovecot-ispconfig-3.1/2/#-install-phpmyadmin tutorial. After I visit some.site.url/phpmyadmin and I login I get 404 error with this url:
    some.site.url/index.php?token=94f2c3e0aedaff223dc2306ee1bac2d1
    After I delete "index.php?token=94f2c3e0aedaff223dc2306ee1bac2d1" and write phpmyadmin by hand in the url "some.site.url/phpmyadmin" - phpmyadmin site is oppened normaly

    When I want to logout, url looks like: some.site.url/phpmyadmin/logout.php?db=&token=94f2c3e0aedaff223dc2306ee1bac2d1
    When I logout I get 404 error and pointed to "some.site.url/index.php" but not "some.site.url/phpmyadmin"

    How to fix this?
     
  2. citizenz7

    citizenz7 New Member

    Same here with this tutotrial: perfect-server-ubuntu-18-04-nginx-bind-dovecot-and-ispconfig-3
    Ubuntu 18.04 / Nginx
    After applying options in Nginx
    location /phpmyadmin {
    .../...
    }
    as shown in the tutorial, it connects well on https:// some.site.url/phpmyadmin
    BUT: when logging, it shows an "ERROR 404 - Not found" as it connects to : https:// some.site.url/index.php?token=xxxxxxxxxxxxxxxxxxx
    Obviously, it's wrong cause it should connect to https:// some.site.url/phpmyadmin/index.php?token=xxxxxxxxxxxxxxxxxxx
    I guess it's a redirection problem in Nginx options?!!
    How to fix it ?
    Thanx.
     

Share This Page