FOG on Ubuntu 16.04 (php7)?
-
@Wayne-Workman Well, without setting a password it didn’t work at all, and the apache logs don’t show authentification problems as far as I can see…
-
@30000MONKEYS We are working on it. Seems like 16.04 is a huge mess: https://wiki.fogproject.org/wiki/index.php?title=Ubuntu_16.04
-
@Sebastian-Roth Not only that, but has major security vulnerabilities: http://www.zdnet.com/article/linux-expert-matthew-garrett-ubuntu-16-04s-new-snap-format-is-a-security-risk/
-
Not sure if this is the post we should be using to talk about testing FOG on 16.04 but anyway…
I was able to install FOG’s latest, as of today, trunk 7468 without issue. I just substituted the regular installfog.sh with Tom’s suggestion and the install ran without issue. It didn’t ask me for a password for MySQL and choose left password blank.
I get to the first time schema setup, I clicked the button on the webpage, the page loads to say the process was successful. I completed the install, however when I go to log into the web portal at host/fog/management it keeps redirecting to the Schema Installation upgrade page. After click the button and getting the complete page a few times, I restarted the server.
After restart, I ran the install/update schema button again and that time I was able to get to the login screen. I’ll spin up another vm to see if that always happens or was just a one time quirk.
P.S. I like the new menu icons
-
@iyoung You shouldn’t have to replace the installfog.sh file at all, especially now that it did install.
Once it’s installed successfully once, the php_ver and php_verAdds variables are stored in the /opt/fog/.fogsettings file. Even the packages variable is stored there.
-
@Tom-Elliott Sorry, I phrased that wrong. I meant to say that instead of just typing “./installfog.sh”, I typed what you have in the second post.
-
@Tom-Elliott On this note, would it be possible to add something similar for mysql or would it be wiser/simpler to simply fix the issues at hand instead?
-
@Quazz what do you mean?
-
@Tom-Elliott It seems like mysql 5.7 broke a few things, but I’m guessing not enough to bother with this?
-
@Quazz I’ve done what I can with the schema to make the corrections as needed. The only part I haven’t done yet is set the native password to blank for 5.7 yet. As that’s only one step I don’t think it’s too much to do it by hand.
-
@Tom-Elliott Hi,
Can you help me please, im on ubuntu 16.04 server lts , i run the script of FOG but i have the same error that 30000MONKEYS
and when you say edit /lib/ubuntu/config.sh i cant find the folder !
“/lib” exist but “ubuntu” not in the list -
@Tom-Elliott said in FOG on Ubuntu 16.04 (php7)?:
Because it failed, you haven’t successfully installed yet, I think you could run the installer with:
php_ver='7.0' php_verAdds='-7.0' ./installfog.sh -y
Not 100% on the syntax, but should be pretty straight forward. In the case that doesn’t work, you can edit the trunk/lib/ubuntu/config.sh and look for php_ver= and php_verAdds= and make then read as: ‘7.0’ and ‘-7.0’ respectively.
Then rerun the installer and it should all work.
Read the forum.
-
@Blacknutso The /lib folder is relative to the where you downloaded FOG, not in the root location.
-
-
@Blacknutso As Tom already said, you should not need to change the installer. Just run it like this:
php_ver='7.0' php_verAdds='-7.0' ./installfog.sh
-
@Sebastian-Roth i trying you method but it didnt work for me !
always have php5-json…Failed! -
@Blacknutso What do you have in the last 10 lines of the install error log file? fogproject/bin/error_log/…
-
@Blacknutso Please run:
sudo apt-get purge php5* lib*php* -yq
I’m just guessing but this is an upgrade?
If so, please open/edit the /opt/fog/.fogsettings file and remove the line that has packages.
Then re-run the installer.
-
@Sebastian-Roth can you tell me the exact way to find the error_log (sorry iam a beginner)
@Tom-Elliott there is nothing to uninstall when i do the command and still have the error even when i remove the line -
The error log files are in the directory where the installer script is too!