i am getting 502 Bad Gateway while accessing db

Discussion in 'Installation/Configuration' started by Anuragg1, Jun 2, 2023.

  1. Anuragg1

    Anuragg1 New Member

    After creating database from ispconfig panel, i tryed to access phpmyadmin panel but it is not showing
    502 Bad Gateway
    nginx/1.18.0 (Ubuntu)
     
  2. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    How did you install your PMA? How did you access it - via your.server.fqdn:8081/phpmyadmin or else?
     
  3. Anuragg1

    Anuragg1 New Member

    Yes your.server.fqdn:8081/phpmyadmin in this way
     
  4. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    Are other websites working? Test your nginx (nginx -t) via terminal.
     
  5. Anuragg1

    Anuragg1 New Member

    Yes sir website is working.
    when i run this command in the terminal. i got
    nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
    nginx: configuration file /etc/nginx/nginx.conf test is successful
     
  6. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

  7. till

    till Super Moderator Staff Member ISPConfig Developer

    And please let us know which tutorial you used to set up this server.
     
  8. Anuragg1

    Anuragg1 New Member

    chatgpt
     
  9. Anuragg1

    Anuragg1 New Member

    Code:
    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    [WARN] could not determine server's ip address by ifconfig
    [INFO] OS version is Ubuntu 22.04.2 LTS
    
    [INFO] uptime:  05:29:54 up 9 days, 20:18,  1 user,  load average: 0.00, 0.00, 0
    .00
    
    [INFO] memory:
                   total        used        free      shared  buff/cache   available
    Mem:           1.9Gi       500Mi       530Mi        10Mi       905Mi       1.2Gi
    Swap:             0B          0B          0B
    
    [INFO] systemd failed services status:
      UNIT                    LOAD   ACTIVE SUB    DESCRIPTION
    ● clamav-daemon.service   loaded failed failed Clam AntiVirus userspace daemon
    ● pure-ftpd-mysql.service loaded failed failed pure-ftpd-mysql.service
    
    LOAD   = Reflects whether the unit definition was properly loaded.
    ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
    SUB    = The low-level unit activation state, values depend on unit type.
    2 loaded units listed.
     
  10. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    We'll need to see the whole report and that's only few part of it.

    Do create swap file for your server.
     
  11. till

    till Super Moderator Staff Member ISPConfig Developer

    ChatGPT is known to not be able to provide proper install instructions for ISPConfig. You should have used a tested tutorial linked on ispconfig.org documentation page. I will not provide you with any support in this case. ChatGPT caused your failure, so ask ChatGPT to fix it and not us.
     
    ahrasis likes this.

Share This Page