FOG 1.2 and PHP7
-
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.
-
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.
-
@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.
-
@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.
-
@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.
-
@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
-
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.
-
@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)
-
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 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
-