Command a2enconf php8.1-fpm failed

Discussion in 'Installation/Configuration' started by Slawka, Nov 30, 2022.

  1. Slawka

    Slawka New Member

    Code:
    ./ispconfig.sh
    WARNING! This script will reconfigure your complete server!
    It should be run on a freshly installed server and all current configuration that you have done will most likely be lost!
    Type 'yes' if you really want to continue: yes
    [INFO] Starting perfect server setup for Ubuntu 22.04.1 LTS
    .................
    [INFO] Disabling conflicting apache modules.
    [INFO] Enabling apache modules.
    [INFO] Enabling default PHP-FPM config.
    [ERROR] Exception occured: ISPConfigOSException -> Command a2enconf php8.1-fpm 2>&1 failed. (/ispconfig.ai.php:15)
    
    please need help
     
    Last edited: Nov 30, 2022
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    What are you trying to do?
    What Tutorial or other instructions are you following? Have you verified the starting conditions of the Tutorial are met? For example
    At what part does the situation you describe occur?
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    I agree that he probably started wit an unclean system.
     
  4. Slawka

    Slawka New Member

    Now
    Code:
    └─# wget -O - https://get.ispconfig.org | sh -s -- --help
    --2022-12-02 21:12:46--  https://get.ispconfig.org/
    Resolving get.ispconfig.org (get.ispconfig.org)... 188.114.99.234, 188.114.98.234, 2a06:98c1:3122:e000::a, ...
    Connecting to get.ispconfig.org (get.ispconfig.org)|188.114.99.234|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 2003 (2.0K) [application/octet-stream]
    Saving to: ‘STDOUT’
    
    -                                                   100%[=================================================================================================================>]   1.96K  --.-KB/s    in 0.001s
    
    2022-12-02 21:12:48 (3.23 MB/s) - written to stdout [2003/2003]
    
    
    Fatal error: Uncaught Error: Call to undefined function mb_strlen() in /tmp/ispconfig-ai/lib/class.ISPConfigLog.inc.php:74
    Stack trace:
    #0 /tmp/ispconfig-ai/lib/class.ISPConfig.inc.php(367): ISPConfigLog::print('\n\n{FW}*\nISPConf...')
    #1 /tmp/ispconfig-ai/lib/class.ISPConfig.inc.php(398): ISPConfig::printHelp()
    #2 /tmp/ispconfig-ai/ispconfig.ai.php(13): ISPConfig::run()
    #3 {main}
      thrown in /tmp/ispconfig-ai/lib/class.ISPConfigLog.inc.php on line 74
    
    You have new mail.
    
    
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    You seem to be running the installer again on a system that has already components like PHP or even ISPConfig parts installed, otherwise, you would have seen the installer downloading and installing PHP. The auto-installer can not be run on such unclean systems, it must fail then. Like in your case where you manually installed PHP upfront but missed installing various PHP modules. Get a clean and empty system to start with.
     
  6. Slawka

    Slawka New Member

    Now auto-installer
    Code:
    .....
    Deprecated: Function strftime() is deprecated in /tmp/ispconfig-ai/lib/os/class.ISPConfigBaseOS.inc.php on line 317
    [INFO] Configuring SSHd
    [INFO] Installing roundcube.
    [INFO] Installing packages roundcube, roundcube-core, roundcube-mysql, roundcube-plugins
    [INFO] Installed packages roundcube, roundcube-core, roundcube-mysql, roundcube-plugins
    
    Deprecated: Function strftime() is deprecated in /tmp/ispconfig-ai/lib/os/class.ISPConfigBaseOS.inc.php on line 317
    
    Deprecated: Function strftime() is deprecated in /tmp/ispconfig-ai/lib/os/class.ISPConfigBaseOS.inc.php on line 317
    [INFO] Installing ISPConfig3.
    [INFO] Adding PHP version(s) to ISPConfig.
    [ERROR] Exception occured: ISPConfigOSException -> Could not read ISPConfig settings file. (/ispconfig.ai.php:15)
    You have new mail in /var/mail/root
    
     
  7. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Those functions are deprecated indeed, we should replace that.
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    But they do not cause any issues and you must have manually altered PHP configuration (or still use a manually installed PHP) as deprecated warnings are disabled in the config that the installer is using.
     
  9. Slawka

    Slawka New Member

    The problem is not in the deprecated function, but in the error that appears if you use the autoinstaller without the interactive argument
    Code:
    [ERROR] Exception occured: ISPConfigOSException -> Could not read ISPConfig settings file. (/ispconfig.ai.php:15)
    You have new mail in /var/mail/root
    
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    Please read the answers you received before posting again. Scroll up and reread post #8 for the reason of this message. This message is expected and simply means that the installation failed, you just suppressed the real error by switching to noninteractive mode. First, start with a clean system if you want to be able to use the auto-installer and if you want to see the reason for this error, do not suppress it actively by switching to noninteractive mode.
     
  11. Slawka

    Slawka New Member

    Code:
    [INFO] Installing ISPConfig3.
    [INFO] Adding PHP version(s) to ISPConfig.
    
    It turns out at these steps, there are no errors, but at the same time we do not receive a configuration file

    Code:
    ISPConfigLog::info('Adding PHP version(s) to ISPConfig.', true);
    
    $server_id = 0;
    $ispc_config = ISPConfigConnector::getLocalConfig();
    
    if(!$ispc_config || !isset($ispc_config['server_id']) || !$ispc_config['server_id']) {
                   throw new ISPConfigOSException('Could not read ISPConfig settings file.');
    }
    
     
  12. till

    till Super Moderator Staff Member ISPConfig Developer

    The error does not has to be at this step. Run in noninteractive mode and post the whole output of the installer incl. the original command to start it and ensure you start from a clean system, you can not run it a second time.
     

Share This Page