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

[3639] php5-json failed

Scheduled Pinned Locked Moved Solved
FOG Problems
4
10
6.5k
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.
  • P
    Polii123
    last edited by Jun 29, 2015, 8:19 AM

    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
    • T
      Tom Elliott
      last edited by Jun 29, 2015, 8:25 AM

      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

      C 1 Reply Last reply Jun 29, 2015, 9:19 AM Reply Quote 0
      • P
        Polii123
        last edited by Jun 29, 2015, 8:27 AM

        Debian 7

        php5-common - Common files for packages built from the php5 source
        
        C 1 Reply Last reply Jun 29, 2015, 9:16 AM Reply Quote 0
        • C
          ch3i Moderator @Polii123
          last edited by Jun 29, 2015, 9:16 AM

          @Polii123 Same here

          1 Reply Last reply Reply Quote 0
          • C
            ch3i Moderator @Tom Elliott
            last edited by Jun 29, 2015, 9:19 AM

            @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
            • C
              ch3i Moderator
              last edited by ch3i Jun 29, 2015, 5:22 AM Jun 29, 2015, 10:25 AM

              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
              • T
                Tom Elliott
                last edited by Jun 29, 2015, 5:19 PM

                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

                C 1 Reply Last reply Jun 30, 2015, 6:07 AM Reply Quote 1
                • C
                  ch3i Moderator @Tom Elliott
                  last edited by Jun 30, 2015, 6:07 AM

                  @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
                  • P
                    Polii123
                    last edited by Jun 30, 2015, 6:54 AM

                    Now it is working again, thanks.

                    1 Reply Last reply Reply Quote 0
                    • W
                      Wolfbane8653 Developer
                      last edited by Jul 7, 2015, 12:03 PM

                      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

                      181

                      Online

                      12.0k

                      Users

                      17.3k

                      Topics

                      155.2k

                      Posts
                      Copyright © 2012-2024 FOG Project