roundcube/phpmyadmin on nginx

Discussion in 'Installation/Configuration' started by nhybgtvfr, Aug 29, 2024.

  1. nhybgtvfr

    nhybgtvfr Well-Known Member HowtoForge Supporter

    Hi,
    i'm investigating switching from apache to nginx for performance reasons..
    not really any previous experience of nginx, but know enough to muddle through and can google better than most...

    i've done an automated install of ispconfig 3.2 on ubuntu 24.04 and it all seems ok, the only issue has been accessing roundcube or phpmyadmin.
    i'm aware that nginx doesn't have global aliases, so need to use the server fqdn on port 8080 or 8081 appending /webmail or /phpmyadmin.

    i wasn't getting anything... just a bad gateway error.

    i've looked at the apps.vhost and ispconfig vhost.. and found these settings in the relevant location sections
    (although the whole sections are commented out in ispconfig.vhost)

    Code:
                           fastcgi_pass 127.0.0.1:9000;
                           #fastcgi_pass unix:/var/lib/php8.3-fpm/apps.sock;
    
    i've also checked the /etc/php/8.3/fpm/pool.d/apps.conf file, and according to that, php is listening on the sock address given above, port 9000, and netstat doesn't show anything currently listening on port 9000.
    if i swap the commenting on those lines around and restart, both roundcube and phpmyadmin are working and accessible on port 8081

    so i can get it all working, but as i said, i'm not very familiar with nginx, so wondering if that change was correct, and if so, why wasn't it set like that during install? or should it have worked as is.. and i have some other problem?

    either way it's not a major issue at the moment as it's just at the testing stage and i'm much more likely to install roundcube and phpmyadmin directly into their own subdomain vhost and use them there. just want to make sure i'm not storing up a problem for the future.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The change you made is ok, although it should have worked automatically. Not sure why it could not be recognized in this case.
     
  3. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    It is correct with socket but I dunno why default is like that on yours.
     

Share This Page