• Récent
    • Unsolved
    • Mots-clés
    • Populaire
    • Utilisateurs
    • Groupes
    • Recherche
    • S'inscrire
    • Se connecter

    installing package : php-mysqlnd failed

    Planifier Épinglé Verrouillé Déplacé Résolu
    Linux Problems
    4
    5
    2.0k
    Charger plus de messages
    • Du plus ancien au plus récent
    • Du plus récent au plus ancien
    • Les plus votés
    Répondre
    • Répondre à l'aide d'un nouveau sujet
    Se connecter pour répondre
    Ce sujet a été supprimé. Seuls les utilisateurs avec les droits d'administration peuvent le voir.
    • I
      infotc
      dernière édition par

      Hello everyone,
      i’ve juste upgraded my ubuntu from 20.04 LTS to 22.04 TS, and i’ve got this error when i run ./installfog.sh (I am with 1.5.10 version of fog)

      537a8595-07b7-473c-840c-bea8eb781595-image.png

      the version of php :
      befd80ce-ad39-4154-b524-da609092bf8c-image.png

      how can i make it work ?
      Thanks,
      Stéphane

      1 réponse Dernière réponse Répondre Citer 1
      • I
        infotc
        dernière édition par

        Hi,
        sorry for my late response, i was very busy at work.
        Thanks for your commentaries.
        So here what i’ve got with dpkg -l | grep php
        fog-php.png
        in fossettings, there was no php-mysqlnd, but php_ver was on 7.4
        I change to 8.2, but no change, the same error again.

        I try install manually php-mysql, it works, but same error again when i run installfog.sh

        I finally found in /lib/common/functions.sh a line (line 829)

        hp-mysql*)
        for phpmysql in $(echo php-mysqlnd php-mysql); do
        eval $packagelist “$phpmysql” >>$error_log 2>&1
        if [[ $? -eq 0 ]]; then

        I changed it to
        hp-mysql*)
        for phpmysql in $(echo php-mysql); do
        eval $packagelist “$phpmysql” >>$error_log 2>&1
        if [[ $? -eq 0 ]]; then

        and installfog.sh went to the end without error.
        I have access now to the GUI.

        Have a nice day,
        Stéphane

        M 1 réponse Dernière réponse Répondre Citer 1
        • Wayne WorkmanW
          Wayne Workman
          dernière édition par Wayne Workman

          Hi, this is an old problem people continue to walk into. The problem is people upgrade their OS, and then the fog installer fails.

          While some people have had success with this, I need more fingers and toes than I currently have to count those who’ve had issues with this approach.

          The most safe and sure way to move to a newer operating system is to build a new fog server using that new operating system, and then migrate to it.

          I’ve put a lot of time and effort creating an article on how to do this, I believe all the steps should still be valid. It is here:
          https://wiki.fogproject.org/wiki/index.php?title=Migrate_FOG

          It’s possible you can resolve your issue - but this isn’t guaranteed. It’s also possible that you resolve this one issue, only to immediately face yet another issue. I would advise migrating to a completely new server because this is the safe and sure pathway. I can also tell you that 22.04 daily clean installation tests are passing, meaning that you’d have good results with a clean install on 22.04 (results in my signature).

          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
          Daily Clean Installation Results:
          https://fogtesting.fogproject.us/
          FOG Reporting:
          https://fog-external-reporting-results.fogproject.us/

          1 réponse Dernière réponse Répondre Citer 0
          • S
            Sebastian Roth Moderator
            dernière édition par Sebastian Roth

            @infotc While a clean migration would surely get you to a nice clean system you can first try to get this fixed manually.

            There is some logic in the FOG installer that should take care of the different package names that have changed over the years (php-mysql vs. php-mysqlnd).

            Please run the following command to see what PHP packages exactly are installed at the moment:

            dpkg -l | grep php
            

            Post the output here.

            Edit /opt/fog/.fogsettings and make sure only php-mysql (but not php-mysqlnd) is in the packages line.

            As well you might want to manually install the package needed - see if that gives you an error as well:

            apt install php-mysql
            

            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

            1 réponse Dernière réponse Répondre Citer 2
            • I
              infotc
              dernière édition par

              Hi,
              sorry for my late response, i was very busy at work.
              Thanks for your commentaries.
              So here what i’ve got with dpkg -l | grep php
              fog-php.png
              in fossettings, there was no php-mysqlnd, but php_ver was on 7.4
              I change to 8.2, but no change, the same error again.

              I try install manually php-mysql, it works, but same error again when i run installfog.sh

              I finally found in /lib/common/functions.sh a line (line 829)

              hp-mysql*)
              for phpmysql in $(echo php-mysqlnd php-mysql); do
              eval $packagelist “$phpmysql” >>$error_log 2>&1
              if [[ $? -eq 0 ]]; then

              I changed it to
              hp-mysql*)
              for phpmysql in $(echo php-mysql); do
              eval $packagelist “$phpmysql” >>$error_log 2>&1
              if [[ $? -eq 0 ]]; then

              and installfog.sh went to the end without error.
              I have access now to the GUI.

              Have a nice day,
              Stéphane

              M 1 réponse Dernière réponse Répondre Citer 1
              • M
                mretg @infotc
                dernière édition par

                @infotc

                @infotc Hey! This worked. I actually did the same thing but slightly different - you can leave the line just do php-msqlnd* if it is already installed because it is actually php-mysqlnd-ms or php-mysqlnd-ms-all-dev.

                Great find though as it really helped me get this installed.

                1 réponse Dernière réponse Répondre Citer 0
                • [[undefined-on, I infotc, ]]
                • I infotc referenced this topic on
                • 1 / 1
                • Premier message
                  Dernier message

                261

                En ligne

                12.0k

                Utilisateurs

                17.3k

                Sujets

                155.2k

                Messages
                Copyright © 2012-2024 FOG Project