Missing services in ispconfig after update Bullseye to Bookworm

Discussion in 'ISPConfig 3 Priority Support' started by fmarton, Nov 28, 2024.

  1. fmarton

    fmarton New Member HowtoForge Supporter

    [UPDATE]
    After further investigations I realized that my web and email services was turned off during ispconfig update. Under ISPC -> System -> Server service -> my server I saw that web and email checkboxes are not checked.
    After checking them, and under Additional PHP Settings, I removed the previous PHP7.4 entry (without server) and added again, now I could select the server.
    After that I could set my main websites to use PHP7.4, and currently looks like they are working fine.
    So for now problem solved, sorry for the early post!
    I need to keep on checking everything works fine, I will report later if I find other issuez.
    Thank you for your time if you read this :)



    Hello Guys,
    Sorry, I need some help here. :)
    My server was installed and since then being maintained only on the official ispconfig tutorials, so as far as I know my server is "stock" ispconfig perfect server.
    I updated my debian from 11 to 12 according to this tutorial:
    https://www.howtoforge.com/how-to-upgrade-from-debian-11-to-debian-12/
    The update went OK no problem, but I believe that php7.4 was removed during the update.
    I wanted to update ispconfig like in this manual:
    https://www.howtoforge.com/update-the-ispconfig-perfect-server-from-debian-11-to-debian-12/
    It was successful but apache cannot be started, it was complaining about not finding php7.4 module, so I made an a2dismod for php7.4 and then an a2enmod for 8.2
    Then apache is started and I could access ispconfig.
    As my main websites used php 7.4, I expected that there could be problems when default php is changed 8.2 and I actually found that this is the case, my most important websites was very slow, and dropped a lot of warnings (but works more or less)
    I thought I need to install php 7.4 to make them running again then I will have the time to update sites on a test environment, so I tried to install php7.4 as additional php, following this manual:
    https://www.howtoforge.com/ispconfig-php-debian/
    It went all right until I wanted to add new php version on the ispconfig area, the server was missing from the drop down list, I could only select the client, and after entering the php 7.4 path (except PHP-FPM socket directory, because there was no reference in the manual, so I left that blank).
    After this I noticed that the upper menu items for website and email are missing, so even if everything was all right i couldnt configure my websites to set their php version back to 7.4.

    Can you help me please with any ideas? :)

    Thank you a million in advance!

    fmarton
     
    Last edited: Nov 28, 2024
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    In case you login to your server to do a system or ISPConfig update and the login user is not root, then take care to use the command:

    su -

    to become root and not just:

    su

    The su command changed some time ago, and when you use it without "-" or "--login" option, it will not load the full PATH variable for the root user. This results in services not being seen by root when updating PConfig, which can result in disabling these services as the updater can not find them when the root user does not see the binaries when searching for them in the PATH.
     
  3. fmarton

    fmarton New Member HowtoForge Supporter

    Hello Till,
    Oh that's good to know! I indeed used just 'su', so I made myself an exciting morning. :)
    Thank you very much for your explanation so quickly!
    Have a wonderful day!
    fmarton

     
    till likes this.
  4. fmarton

    fmarton New Member HowtoForge Supporter

    Hello Guys,
    I think I'm having another issue: I just wanted to change a php ini setting in ISPC admin area for a site that is changed to use PHP7.4 after the system update. The site is working great since I could set it to use php7.4. But after changing a display_errors setting in Options -> 'custom php ini setting' for this site, the pending process is not finishing, the red circle on the top of the ISPC admin page never disappears.
    I tried to search for it, and found a topic about how to debug this, and I tried to comment out the cron job for server.sh and run it manually. That gave me these messages:

    # /usr/local/ispconfig/server/server.sh
    04.12.2024-16:33 - WARNING - There is already a lockfile set, but no process running with this pid (1820730). Continuing.
    PHP Fatal error: Uncaught Error: Call to undefined function mysqli_init() in /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php:83
    Stack trace:
    #0 /usr/local/ispconfig/server/lib/app.inc.php(76): db->__construct()
    #1 /usr/local/ispconfig/server/lib/app.inc.php(387): app->__construct()
    #2 /usr/local/ispconfig/server/server.php(54): require('...')
    #3 {main}
    thrown in /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php on line 83

    For me it looks like ispconfig itself is trying to run in php8?
    But then how could I set the sites successfully before? Or does it only uses php for php ini settings and that is why I did not face this issue earlier?
    Is there a way that I can try to make it work? :)

    Many thanks in advance for any suggestions!

    Kind regards,
    fmarton
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    It seems that if you installed PHP without MySQL support now, this can't work. Your system's PHP version must be able to use MySQL databases, so you must install the PHP MySQL extension.

    Your issue is not related to changes in the custom PHP settings of a website that you made.

    See chapter 6 here: https://forum.howtoforge.com/threads/please-read-before-posting.58408/
     
    fmarton likes this.
  6. fmarton

    fmarton New Member HowtoForge Supporter

    Hello Till,
    Thanks very much for your answer!
    But I installed php with mysql, phpmyadmin works fine, saying it runs under php version 8.2.26
    So I guess there is mysql support for php8.
    I guess otherwise ispconfig wouldnt be able to read my databases, which it does just fine.
    Is there anything else I could check? :)


     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    Please see chapter 6 here: https://forum.howtoforge.com/threads/please-read-before-posting.58408/ and take care you set the right default PHP version. The error message is clear, the current default PHP version of the operating system for the shell has no mysql support. So either mysql extension is not installed or you set the default PHP to a wrong version without mysql support.
     
    fmarton likes this.
  8. fmarton

    fmarton New Member HowtoForge Supporter

    Yes, you are right! A week ago (when I opened this topic) the server update installed php 8.2 for the system.
    It seems like php8.4 was also installed somehow silently, at least I can't recall I saw any php versions newer than 8.2 a week ago, but still I must have missed something...
    The point is that the 8.4 version was indeed missing mysql, so I just needed to install php8.4-mysql and php8.4-mbstring packages to make it work again. Now it looks like running fine, I only get a few dozens of 'Deprecated' messages when I run server.sh, but I guess that can be normal and/or maybe disappear after a future update.

    Code:
    PHP Deprecated:  Function mysqli_ping() is deprecated since 8.4, because the reconnect feature has been removed in PHP 8.2 and this function is now redundant in /usr/local/ispconfig/server/lib/classes/db_mysql.inc.php on line 270
    
    Thank you very much for your kind help!!!
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    You are still using the wrong default PHP version. Please follow the instructions in the link I posted and set the correct default PHP version for your OS.
     
    fmarton likes this.
  10. fmarton

    fmarton New Member HowtoForge Supporter

    Oops, I was so happy that it worked, that I forgot to set update-alternatives again... :)
    Now it's perfect, no deprecated messages anymore.
    Thank you very much, you are awesome!
     

Share This Page