How do I disable IPv6 configuration for nginx in ISPConfig?

Discussion in 'Installation/Configuration' started by Rrrichard, Oct 9, 2025 at 3:46 PM.

Tags:
  1. Rrrichard

    Rrrichard New Member

    On my Ubuntu 24.04 LTS server, I disabled IPv6 because I don't need it.

    Then, following this article
    Perfect Server Automated ISPConfig 3 Installation on Debian 11 and Debian 12, Ubuntu 22.04 and Ubuntu 24.04, I started installing ISPConfig.
    The article had many options for the installation script, so I ended up creating and running the following command:

    wget -O - <link> | sh -s -- --use-nginx --no-dns --no-mail --use-ftp-ports=40110-40210 --use-php=7.4,8.0,8.1,8.2,8.3 --no-roundcube --no-mailman --monit --channel=stable --no-local-dns --no-quota

    During the Nginx installation, I got an error:
    [INFO] Installing packages nginx-full, fcgiwrap
    [ERROR] Exception occurred: ISPConfigOSException -> Installing packages failed. (/ispconfig.ai.php:15)

    It turned out that IPv6 support was enabled by default (or even at all) in ISPConfig.
    NGINX couldn't start because its configuration files contained entries like these:

    server {
    listen 80 default_server;
    # ipv6
    listen [::]:80 default_server;
    ...
    How do I disable IPv6 configuration for nginx in ISPConfig?
    Maybe there's an option like wget -O - <link> | sh -s -- --ipv6=disable

    ?
    If there's no such option, is it possible to disable IPv6 in ISPConfig after installing it?
     
  2. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    I think you should disable IPv6 in that server before installing ISPConfig, because to do so after installing it is little bit more tedious.
     

Share This Page