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

    FOG 1.2 and PHP7

    Scheduled Pinned Locked Moved
    FOG Problems
    5
    11
    3.3k
    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.
    • D
      Darrell Lanson
      last edited by

      Will FOG 1.2 work with PHP7 I installed Ubuntu 16.04 without realising there were no PHP5 packages. if not its not a big deal I can install an older version of Ubuntu to get it working.

      Ubuntu 14.04.5 LTS 64bit
      Fog 1.5.3

      george1421G 1 Reply Last reply Reply Quote 0
      • Wayne WorkmanW
        Wayne Workman
        last edited by

        Most likely it will not work, not due to PHP7 but due to MySQL issues. FOG 1.2.0 used some calls that newer MySQL doesn’t work with. These are corrected for in FOG Trunk.

        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
        • george1421G
          george1421 Moderator @Darrell Lanson
          last edited by george1421

          @Darrell-Lanson The current recommendation for ubuntu is 14.04 LTS max for now. As Wayne noted there are more issues with 16.04 than just php incompatibilities.

          Also I would not expect 1.2.0 stable to support 16.04 at any time in the future. FOG 1.3.0 is near ready for release. If you want 16.04 support then I would look towards FOG 1.3.0 (not immediately upon release though). The devs are working hard to get 1.3.0 released under the currently supported systems.

          [edit] @Wayne-Workman I can’t seem to find the wiki page with the supported FOG server operating systems. I was just doing some fact checking to ensure the devs haven’t updated support and that page is running from me today.

          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!

          Wayne WorkmanW 1 Reply Last reply Reply Quote 0
          • Wayne WorkmanW
            Wayne Workman @george1421
            last edited by

            @george1421 1.2.0 will run on CentOS 6 and 7, Ubuntu 12 through 14, Debian 7, derivatives thereof, and maybe others… I’m just going off of what I’ve read in the forums. Trunk will run on CentOS 7, Debian 8, Ubuntu 12 - 16, Fedora 21 - 23, derivatives, and probably a lot of others.

            I guess we should have a page listing what versions support what.

            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/

            george1421G 1 Reply Last reply Reply Quote 0
            • george1421G
              george1421 Moderator @Wayne Workman
              last edited by

              @Wayne-Workman There was a wiki page that listed these. Tom posted the (official) supported systems and you updated the page. I saw it at least once.

              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!

              Wayne WorkmanW 1 Reply Last reply Reply Quote 0
              • Wayne WorkmanW
                Wayne Workman @george1421
                last edited by

                @george1421 This is the closest thing I’ve found. It’s not definitive, just a list of recommended ones: https://wiki.fogproject.org/wiki/index.php?title=Installation#Requirements

                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
                • Tom ElliottT
                  Tom Elliott
                  last edited by

                  FOG 1.2 might work with php 7, though I’m not sure as I am FAR FAR ahead of where 1.2.0 was.

                  To my knowledge, it will break things all over considering php 7 stopped allowing static calls via non-static defined methods. This only impacts multicast.

                  To get things to just work (so they display) should be relatively simple though.

                  In /var/www/html/fog/commons/init.php line number 96, comment it with //.

                  In /var/www/html/fog/lib/db/MySQL.class.php line number 247. Make it read as:
                  return strpos($data,'\\')) ? $this->link->escape_string(stripslashes($data)) : $this->link->escape_string($data);

                  That should get display working on php 7. I don’t know where else may be problemattic though.

                  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

                  george1421G 1 Reply Last reply Reply Quote 1
                  • george1421G
                    george1421 Moderator @Tom Elliott
                    last edited by

                    @Tom-Elliott OR we could recommend to stay at max of Ubuntu 14.04 until fog 2.0 comes out?? (said with a sheepish grin)

                    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!

                    1 Reply Last reply Reply Quote 0
                    • D
                      Darrell Lanson
                      last edited by

                      Yeah as I type this I am downloading 14.04 than I can get stuff setup and take to our other location. Can’t wait to see 1.3 you guys are doing some amazing work.

                      Ubuntu 14.04.5 LTS 64bit
                      Fog 1.5.3

                      ch3iC 1 Reply Last reply Reply Quote 0
                      • Wayne WorkmanW
                        Wayne Workman
                        last edited by

                        Ubuntu 16 works fine with FOG Trunk, not hard at all to get going, if you know how to copy/paste: https://forums.fogproject.org/topic/7131/fog-on-ubuntu-16-04-php7/26

                        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
                        • ch3iC
                          ch3i Moderator @Darrell Lanson
                          last edited by

                          @Darrell-Lanson said in FOG 1.2 and PHP7:

                          Can’t wait to see 1.3

                          Install the trunk version lol

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

                          247

                          Online

                          12.0k

                          Users

                          17.3k

                          Topics

                          155.2k

                          Posts
                          Copyright © 2012-2024 FOG Project