Update ISPConfig 3.2.11p1 error

Discussion in 'Installation/Configuration' started by Jef_ispconfig_jef, Oct 31, 2023.

  1. Jef_ispconfig_jef

    Jef_ispconfig_jef New Member

    Dear support,

    I have tried to update to the version 3.2.11p1 . But some strange thing occur when it's has been updated.
    When i try to change a config in the ISPconfig. It look like it won't change the setting. (see screenshot)

    Background information:
    OS: Debian 12
    Webserver: Nginx (not Apache)
    PHP default: PHP 8.2

    When i try to run the script manially. /usr/local/ispconfig/server/server.sh i get the following message.
    it look like it's trying to open the vhost file in the apache directory instead of the NGINX dir.

    Did i do something wrong?
    Can you define somewhere that i'm running nginx instead of apache? Or do i miss something?

    /usr/local/ispconfig/server/server.sh
    31.10.2023-10:31 - WARNING - There is already a lockfile set, but no process running with this pid (6948). Continuing.
    setquota: Not setting block grace time on /dev/mapper/ispconfig01--vg-root because softlimit is not exceeded.
    setquota: Not setting inode grace time on /dev/mapper/ispconfig01--vg-root because softlimit is not exceeded.
    PHP Warning: file_put_contents(/etc/apache2/sites-available/test.nl.vhost): Failed to open stream: No such file or directory in /usr/local/ispconfig/server/lib/classes/system.inc.php on line 865
    PHP Warning: fopen(/etc/apache2/sites-available/test.nl.vhost): Failed to open stream: No such file or directory in /usr/local/ispconfig/server/plugins-available/apache2_plugin.inc.php on line 2982
    PHP Fatal error: Uncaught TypeError: fgets(): Argument #1 ($stream) must be of type resource, bool given in /usr/local/ispconfig/server/plugins-available/apache2_plugin.inc.php:2989
    Stack trace:
    #0 /usr/local/ispconfig/server/plugins-available/apache2_plugin.inc.php(2989): fgets()
    #1 /usr/local/ispconfig/server/plugins-available/apache2_plugin.inc.php(1897): apache2_plugin->_patchVhostWebdav()
    #2 /usr/local/ispconfig/server/lib/classes/plugins.inc.php(120): apache2_plugin->update()
    #3 /usr/local/ispconfig/server/mods-available/web_module.inc.php(141): plugins->raiseEvent()
    #4 /usr/local/ispconfig/server/lib/classes/modules.inc.php(302): web_module->process()
    #5 /usr/local/ispconfig/server/lib/classes/modules.inc.php(235): modules->raiseTableHook()
    #6 /usr/local/ispconfig/server/server.php(180): modules->processDatalog()
    #7 {main}
    thrown in /usr/local/ispconfig/server/plugins-available/apache2_plugin.inc.php on line 2989

    Please advise what to do! thanks in advance!

    Greetz,
    Jef
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    So it seems you've activated the Apache module instead of the nginx module. Might be that you were not correctly logged in as root user during update, Debian 12 requires it that you use 'su -' to become root user and not just 'su' without the minus. using just su would result in applications that are run as root might be unable to find other apps on your system due to wrong PATH being set.

    To fix your problem, delete the symlink to the Apache plugin in the folder /usr/local/ispconfig/server/plugins-enabled/

    If the problem persists or the Nginx plugin is disabled, then rerun the ISPConfig update after logging in correctly as root user using --force commandline option and let the updater reconfigure your system.
     
  3. Jef_ispconfig_jef

    Jef_ispconfig_jef New Member

    Till,

    Your a great guy.
    su - ... did the trick.. I am ashamed of my self..

    Thank you very much!!
    Jef
     
    Taleman likes this.

Share This Page