Learn about Centmin Mod LEMP Stack today
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

    56
    6
    8
    Jan 31, 2018
    Ratings:
    +6
    Local Time:
    11:51 AM
    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

    39,811
    8,779
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,513
    Local Time:
    11:51 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    uncomment this one
    Code (Text):
    fastcgi_pass   unix:/tmp/phpfpm_myadmin.sock;
    
     
  3. eva2000

    eva2000 Administrator Staff Member

    39,811
    8,779
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,513
    Local Time:
    11:51 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    uncomment this one
    Code (Text):
    fastcgi_pass   unix:/tmp/phpfpm_myadmin.sock;
    
     
  4. gamal

    gamal Member

    56
    6
    8
    Jan 31, 2018
    Ratings:
    +6
    Local Time:
    11:51 AM
    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

    39,811
    8,779
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,513
    Local Time:
    11:51 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
  6. gamal

    gamal Member

    56
    6
    8
    Jan 31, 2018
    Ratings:
    +6
    Local Time:
    11:51 AM
    1.13.8
    i tried everything, nothing worked actually
     
  7. eva2000

    eva2000 Administrator Staff Member

    39,811
    8,779
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,513
    Local Time:
    11:51 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    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

    56
    6
    8
    Jan 31, 2018
    Ratings:
    +6
    Local Time:
    11:51 AM
    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

    39,811
    8,779
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,513
    Local Time:
    11:51 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    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

    56
    6
    8
    Jan 31, 2018
    Ratings:
    +6
    Local Time:
    11:51 AM
    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

    39,811
    8,779
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,513
    Local Time:
    11:51 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    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

    56
    6
    8
    Jan 31, 2018
    Ratings:
    +6
    Local Time:
    11:51 AM
    1.13.8
    Yes true, now it works after installation in incontigo mode
     
    • Like Like x 1
..