• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

installing package : php-mysqlnd failed

Scheduled Pinned Locked Moved Solved
Linux Problems
4
5
2.0k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I
    infotc
    last edited by Oct 26, 2023, 12:31 PM

    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 Reply Last reply Reply Quote 1
    • I
      infotc
      last edited by Nov 8, 2023, 11:43 AM

      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 Reply Last reply Nov 14, 2023, 7:04 PM Reply Quote 1
      • W
        Wayne Workman
        last edited by Wayne Workman Oct 27, 2023, 4:24 PM Oct 27, 2023, 10:23 PM

        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 Reply Last reply Reply Quote 0
        • S
          Sebastian Roth Moderator
          last edited by Sebastian Roth Oct 28, 2023, 11:07 AM Oct 28, 2023, 5:06 PM

          @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 Reply Last reply Reply Quote 2
          • I
            infotc
            last edited by Nov 8, 2023, 11:43 AM

            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 Reply Last reply Nov 14, 2023, 7:04 PM Reply Quote 1
            • M
              mretg @infotc
              last edited by Nov 14, 2023, 7:04 PM

              @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 Reply Last reply Reply Quote 0
              • [[undefined-on, I infotc, Nov 15, 2023, 12:31 PM]]
              • I infotc referenced this topic on Nov 30, 2023, 8:54 AM
              • 1 / 1
              • First post
                Last post

              172

              Online

              12.0k

              Users

              17.3k

              Topics

              155.2k

              Posts
              Copyright © 2012-2024 FOG Project