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

    [3639] php5-json failed

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    4
    10
    6.4k
    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.
    • Polii123P
      Polii123
      last edited by

      Hi

      I just tried to upgrade to 3639, but i always get the error

      Checking package: php5-json.................................Failed!
      

      Does anyone now how to solve this?

      1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott
        last edited by

        What operating system? If Debian or Ubuntu what’s the output of apt-cache search php5-json?

        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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        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

        ch3iC 1 Reply Last reply Reply Quote 0
        • Polii123P
          Polii123
          last edited by

          Debian 7

          php5-common - Common files for packages built from the php5 source
          
          ch3iC 1 Reply Last reply Reply Quote 0
          • ch3iC
            ch3i Moderator @Polii123
            last edited by

            @Polii123 Same here

            1 Reply Last reply Reply Quote 0
            • ch3iC
              ch3i Moderator @Tom Elliott
              last edited by

              @Tom-Elliott said:

              What operating system? If Debian or Ubuntu what’s the output of apt-cache search php5-json?

              php5-json is in the php5-common package.

              1 Reply Last reply Reply Quote 0
              • ch3iC
                ch3i Moderator
                last edited by ch3i

                To test if json is available in php, I’ve modified confirmPackageInstallation() in svn/trunk/lib/ubuntu/functions.sh :

                confirmPackageInstallation() {
                    for x in $packages; do
                        dots "Checking package: $x"
                        if [ "$osid" -eq 1 ]; then
                            rpm -q $x >/dev/null 2>&1
                        elif [ "$osid" -eq 2 ]; then
                			if [ "$x" = "php5-json" ]; then
                				php -m $x 2>/dev/null | grep '^json' >/dev/null 2>&1
                			else
                				dpkg -l $x 2>/dev/null | grep '^ii' >/dev/null 2>&1
                			fi
                        elif [ "$osid" -eq 3 ]; then
                            pacman -Q $x >/dev/null 2>&1
                        fi
                        errorStat $?
                    done
                }
                

                Not sure if redhat based have the same problem (@Wayne-Workman ? 😄 )

                1 Reply Last reply Reply Quote 0
                • Tom ElliottT
                  Tom Elliott
                  last edited by

                  This should be fixed in the latest trunk.

                  Please have a look and let us know how it goes.

                  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! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                  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

                  ch3iC 1 Reply Last reply Reply Quote 1
                  • ch3iC
                    ch3i Moderator @Tom Elliott
                    last edited by

                    @Tom-Elliott said:

                    Please have a look and let us know how it goes

                    On my debian 7 it’s OK. Thx for the fix.

                    1 Reply Last reply Reply Quote 0
                    • Polii123P
                      Polii123
                      last edited by

                      Now it is working again, thanks.

                      1 Reply Last reply Reply Quote 0
                      • W
                        Wolfbane8653 Developer
                        last edited by

                        Ran into this again with r3706–>r3711

                        Debian GNU/Linux 7 \n \l

                        needed:

                        apt-get install libapache2-mod-php5 
                        

                        Tom fixed this in r3712. Thanks again Tom.

                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        • First post
                          Last post

                        148

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project