Want more timely Centmin Mod News Updates?
Become a Member

phpmyadmin.sh installer "fastcgi_pass" directive is duplicate

Discussion in 'Add Ons' started by gamal, Apr 6, 2019.

  1. gamal

    gamal Member

    99
    8
    8
    Jan 31, 2018
    Ratings:
    +11
    Local Time:
    12:32 PM
    1.13.8
    Hello,

    after a new installation of phpmyadmin, here is a message from nginx -t


    Code:
    nginx: [emerg] "fastcgi_pass" directive is duplicate in /usr/local/nginx/conf/php_8578_mysqladmin5424.conf:10
    
    
    so here is my file, which one i need to commeent

    Code:
     fastcgi_keep_conn on;
        fastcgi_pass dft_php;
        ##fastcgi_pass   127.0.0.1:9001;
        fastcgi_pass   unix:/tmp/phpfpm_myadmin.sock;
        fastcgi_index  index.php;
        #fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
        fastcgi_param  SCRIPT_FILENAME    $request_filename;
        #fastcgi_param PHP_ADMIN_VALUE open_basedir=$document_root/:/usr/local/lib/php$
    
    
     
  2. eva2000

    eva2000 Administrator Staff Member

    53,223
    12,116
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,654
    Local Time:
    12:32 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    uncomment this one
    Code (Text):
    fastcgi_pass   unix:/tmp/phpfpm_myadmin.sock;
    
     
  3. eva2000

    eva2000 Administrator Staff Member

    53,223
    12,116
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,654
    Local Time:
    12:32 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    uncomment this one
    Code (Text):
    fastcgi_pass   unix:/tmp/phpfpm_myadmin.sock;
    
     
  4. gamal

    gamal Member

    99
    8
    8
    Jan 31, 2018
    Ratings:
    +11
    Local Time:
    12:32 PM
    1.13.8
    i have this after uncommenting. it was always like this even before uncomment

    DNS_PROBE_FINISHED_NXDOMAIN

    i use cloudflare for my main vhost
     
  5. eva2000

    eva2000 Administrator Staff Member

    53,223
    12,116
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,654
    Local Time:
    12:32 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  6. gamal

    gamal Member

    99
    8
    8
    Jan 31, 2018
    Ratings:
    +11
    Local Time:
    12:32 PM
    1.13.8
    i tried everything, nothing worked actually
     
  7. eva2000

    eva2000 Administrator Staff Member

    53,223
    12,116
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,654
    Local Time:
    12:32 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    from private conversation url for your phpmyadmin, it seems you forgot to do step 1 of Getting Started Guide at https://centminmod.com/getstarted.html in setting up main hostname i.e. yourmain.hostname.com with valid DNS records and editing main hostname vhost at /usr/local/nginx/conf/conf.d/virtual.conf and changing server_name value to that setup main hostname. Alot of centmin mod tools rely on main hostname working i.e. php zend opcache and memcached statistics pages https://community.centminmod.com/threads/php-opcode-and-memcached-statistics-pages.1513/ and phpmyadmin.sh installer which gives you the final working url as yourmain.hostname.com/xxx_mysqladmin/ url. As you didn't setup main hostname, phpmyadmin.sh installer gave you a url of your non-resolving hostname - hence DNS_PROBE_FINISHED_NXDOMAIN error.

    So do step 1 of Getting Started Guide at https://centminmod.com/getstarted.html in setting up main hostname then

    run phpmyadmin uninstall script that was created at /root/tools/phpmyadmin_uninstall.sh and then verify DNS records work for main hostname you setup from step 1 of Getting Started Guide and then re-run phpmyadmin.sh installer
     
  8. gamal

    gamal Member

    99
    8
    8
    Jan 31, 2018
    Ratings:
    +11
    Local Time:
    12:32 PM
    1.13.8
    Great Help thx too much. but now i have after login 502 bad gateway
     
    Last edited: Apr 7, 2019
  9. eva2000

    eva2000 Administrator Staff Member

    53,223
    12,116
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,654
    Local Time:
    12:32 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    how long ago was 123.09beta01 initially installed? and phpmyadmin.sh you are using how long ago did you download it as updated version was released around 25 days ago ~March 13 http://centminmod.com/addon_phpmyadmin.html to switch from php-fpm unix socket to tcp for php-fpm systemd compatibility https://community.centminmod.com/threads/phpmyadmin-sh-addon.27/page-14#post-71580

    fix for that specific 502 error is mentioned at https://community.centminmod.com/threads/phpmyadmin-sh-addon.27/page-14#post-71582 basically use updated phpmyadmin.sh instead
     
  10. gamal

    gamal Member

    99
    8
    8
    Jan 31, 2018
    Ratings:
    +11
    Local Time:
    12:32 PM
    1.13.8
    I didn't download i just go to the addons directory and run the install command. I will use the wget try to reinstall
     
  11. eva2000

    eva2000 Administrator Staff Member

    53,223
    12,116
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,654
    Local Time:
    12:32 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    phpmyadmin.sh isn't included in addons directory by default, it needs to be downloaded as per http://centminmod.com/addon_phpmyadmin.html. So if it already exists in addons/phpmyadmin.sh it's an older version you previous wget downloaded. So need to remove that version and redownload
     
  12. gamal

    gamal Member

    99
    8
    8
    Jan 31, 2018
    Ratings:
    +11
    Local Time:
    12:32 PM
    1.13.8
    Yes true, now it works after installation in incontigo mode
     
  13. Greggo

    Greggo New Member

    2
    0
    1
    Sep 24, 2019
    Ratings:
    +0
    Local Time:
    5:32 AM
  14. jackryan0307

    jackryan0307 New Member

    8
    1
    3
    Jan 31, 2020
    Ratings:
    +1
    Local Time:
    8:02 AM
    DNS errors are usually flexible from the users themselves. All they require is to follow a few generic steps, which will troubleshoot these prolonged errors in no time. Thus, some of the tested methods that assure DNS_PROBE_FINISHED_NXDOMAIN error get resolved.

    How to fix DNS_PROBE_FINISHED_NXDOMAIN Error?
    1. By Restarting DNS Client Service
    2. Stopping Firewall/ Anti-Virus and VPN
    3. By Resetting Web Browsers
    4. Release and Renewing of IP Address
    5. Checking the DNS of the User Domain
    6. Checking Local Hosts
    7. DNS Server Change
    For more info you can visit the blog: How to Fix DNS_PROBE_FINISHED_NXDOMAIN Error?