Error with a2enmod stops autoinstaller

Discussion in 'Installation/Configuration' started by MarvinFreeman, Mar 3, 2026.

  1. MarvinFreeman

    MarvinFreeman New Member

    I am installing ispconfig (having uninstalled an earlier installation) using the autoinstaller. It breaks with this error:
    Code:
    ISPConfigOSException -> Command a2enmod suexec rewrite ssl actions include dav_fs dav auth_digest cgi headers proxy_fcgi proxy_http alias http2 mpm_event 2>&1 failed. (/ispconfig.ai.php:15)
    
    I've tried removing and re-installing apache2.
    Running the command directly gives this error:
    Code:
    ERROR: Module mpm_prefork is enabled - cannot proceed due to conflicts. It needs to be disabled first
    Can you help me get past this?

    Thank you.
     
    Last edited: Mar 3, 2026
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Seems as if you had Apache2 installed before you ran the auto installer. It is important to start with an empty system as described in system prerequisites for the auto installer: https://www.howtoforge.com/ispconfig-autoinstall-debian-ubuntu/ When you start the auto installer for the first time, the system must be empty. You may not have a service like Apache or MariaDB installed. The server has to have just ssh installed.

    To fix your current setup, try this:

    Code:
    sudo a2dismod php* || true
    sudo a2dismod mpm_prefork
    sudo a2enmod mpm_event
    sudo a2enmod suexec rewrite ssl actions include dav_fs dav auth_digest cgi headers proxy_fcgi proxy_http alias http2
    Then run the autoinstaller again.
     
  3. MarvinFreeman

    MarvinFreeman New Member

    Got it! Thanks very much!
     

Share This Page