Discover Centmin Mod today
Register Now

Install Redirection after login myphpadmin

Discussion in 'Add Ons' started by rc112, Mar 1, 2018.

  1. rc112

    rc112 Member

    124
    14
    18
    Sep 22, 2017
    Ratings:
    +15
    Local Time:
    10:10 PM
    Please fill in any relevant information that applies to you:
    • CentOS Version: CentOS 7 64bit ?
    • Centmin Mod Version Installed:123.09beta01
    • Nginx Version Installed: nginx/1.13.9h
    • PHP Version Installed: PHP 5.6.33 (cli)
    • MariaDB MySQL Version Installed: i.e. 10.0.21 or 10.1.21
    • When was last time updated Centmin Mod code base ? : i.e. run centmin.sh menu option 23 submenu option 2
    • Persistent Config: Do you have any persistent config file options set in /etc/centminmod/custom_config.inc ? You can check via this command:
      cat /etc/centminmod/custom_config.inc

    I installed with phpmyadmin.sh and I got 2 issues:

    The output login url is incorrect. It outputs https://centmin/32196_mysqladmin29037 instead of https://centmin.wooshop.com.tw/32196_mysqladmin29037
    When I login at https://centmin.wooshop.com.tw/32196_mysqladmin29037, I got redirected to https://centmin/32196_mysqladmin29037. It maybe a bug?? Thank you.
     
  2. rc112

    rc112 Member

    124
    14
    18
    Sep 22, 2017
    Ratings:
    +15
    Local Time:
    10:10 PM
    Hi @eva2000 Can you help? Where should I look at to solve this? Thank you.
     
  3. pamamolf

    pamamolf Well-Known Member

    3,119
    295
    83
    May 31, 2014
    Ratings:
    +531
    Local Time:
    4:10 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    Never had that issue but i think it will help to post the content of the log file of phpmyadmin installation.....
     
  4. eva2000

    eva2000 Administrator Staff Member

    37,263
    8,145
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,538
    Local Time:
    12:10 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    For phpmyadmin install you can use the phpmyadmin.sh addon outlined here and discussed here.

    If you have some issues, a few things to try for troubleshooting phpmyadmin installs via phpmyadmin.sh addon
    • If you upgraded PHP after you installed phpmyadmin addon, try clearing browser cache and restarting nginx and php-fpm
    • Check nginx error and access log - FAQ item 19 and Config Files page for overview.
    • Ensure you have a valid DNS for the main hostname pointing to your server's IP address
    • Ensure main hostname is setup as per step 1 of Getting Started Guide where main hostname is not the same as a site's nginx vhost domain name. They have to be different as outlined in the difference and summary of Getting Started Guide.
      This allows the main hostname vhost to house all the PHP and nginx statistic pages and phpmyadmin urls.
    • So ensure the server_name listed in main hostname vhost at /usr/local/nginx/conf/conf.d/virtual.conf isn't referenced in other nginx domain vhost files.
    Post contents of these files wrapped in BBCODE CODE tags
    • /usr/local/nginx/conf/conf.d/virtual.conf
    • /usr/local/nginx/conf/conf.d/phpmyadmin_ssl.conf
    • /usr/local/nginx/conf/phpmyadmin.conf
     
..