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

FOG on Ubuntu 16.04 (php7)?

Scheduled Pinned Locked Moved
Linux Problems
8
34
31.8k
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.
  • T
    Tom Elliott
    last edited by Apr 11, 2016, 10:31 AM

    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.

    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

    3 B T 3 Replies Last reply Apr 12, 2016, 7:33 AM Reply Quote 0
    • 3
      30000MONKEYS @Tom Elliott
      last edited by 30000MONKEYS Apr 12, 2016, 3:17 AM Apr 12, 2016, 7:33 AM

      @Tom-Elliott Thanks for the quick reply. I tried your first suggestion, which seems to install php7.0 just fine. However, I am facing another problem now. The installer stops at ‘Updating Database’:

       * Resetting SSL Permissions...................................OK
       * Setting up SSL FOG Server...................................OK
       * Restarting Apache2 for fog vhost............................OK
       * Changing permissions on apache log files....................OK
       * Backing up database.........................................OK
       * Updating Database...........................................Failed!
      

      This is the Error Log:
      0_1460446291738_fog_error_7142.log

      UPDATE:
      The ‘-y’ option was the problem, because it didn’t ask for the MySQL Password. Without the option we did the following:

      • Follow the installer to the point where it asks for the MySQL-Password

      • Manually set the root password via MySQL

      • Enter the password in the FOG installation process

      Now we’re stuck at Updating the database. When we click ‘Update’ in the web management, it leads to an Error 500.

      Apache Log:

      [Tue Apr 12 10:53:43.790626 2016] [mpm_prefork:notice] [pid 31869] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured -- resuming normal operations
      [Tue Apr 12 10:53:43.854389 2016] [core:notice] [pid 31869] AH00094: Command line: '/usr/sbin/apache2'
      [Tue Apr 12 10:54:38.980451 2016] [:error] [pid 31875] [client 192.168.0.139:54785] PHP Fatal error:  Uncaught Error: Call to a member function save() on null in /var/www/fog/lib/pages/schemaupdaterpage.class.php:51\nStack trace:\n#0 /var/www/fog/lib/fog/fogpagemanager.class.php(73): SchemaUpdaterPage->index_post()\n#1 /var/www/fog/management/index.php(24): FOGPageManager->render()\n#2 {main}\n  thrown in /var/www/fog/lib/pages/schemaupdaterpage.class.php on line 51, referer: http://192.168.0.60/fog/management/?node=schemaupdater
      

      PHP Info File:
      0_1460451784179_phpinfo.html

      Any ideas?

      W 1 Reply Last reply Apr 12, 2016, 3:56 PM Reply Quote 0
      • W
        Wayne Workman @30000MONKEYS
        last edited by Apr 12, 2016, 3:56 PM

        @30000MONKEYS Unless you have set a MySQL password previously, there is no mysql password. Typing in a password when there ins’t one would only cause more complications.

        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/

        3 1 Reply Last reply Apr 13, 2016, 6:24 AM Reply Quote 0
        • 3
          30000MONKEYS @Wayne Workman
          last edited by 30000MONKEYS Apr 13, 2016, 12:44 AM Apr 13, 2016, 6:24 AM

          @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…

          1 Reply Last reply Reply Quote 0
          • S
            Sebastian Roth Moderator
            last edited by Apr 30, 2016, 5:40 PM

            @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

            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

            W 1 Reply Last reply Apr 30, 2016, 5:56 PM Reply Quote 0
            • W
              Wayne Workman @Sebastian Roth
              last edited by Apr 30, 2016, 5:56 PM

              @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/

              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
              • I
                iyoung
                last edited by iyoung May 3, 2016, 2:37 PM May 3, 2016, 8:34 PM

                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

                T 1 Reply Last reply May 3, 2016, 8:47 PM Reply Quote 0
                • T
                  Tom Elliott @iyoung
                  last edited by May 3, 2016, 8:47 PM

                  @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.

                  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

                  I Q 2 Replies Last reply May 6, 2016, 7:13 PM Reply Quote 0
                  • I
                    iyoung @Tom Elliott
                    last edited by May 6, 2016, 7:13 PM

                    @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.

                    1 Reply Last reply Reply Quote 0
                    • Q
                      Quazz Moderator @Tom Elliott
                      last edited by May 6, 2016, 7:40 PM

                      @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?

                      T 1 Reply Last reply May 6, 2016, 7:42 PM Reply Quote 0
                      • T
                        Tom Elliott @Quazz
                        last edited by May 6, 2016, 7:42 PM

                        @Quazz what do you mean?

                        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

                        Q 1 Reply Last reply May 6, 2016, 7:42 PM Reply Quote 0
                        • Q
                          Quazz Moderator @Tom Elliott
                          last edited by May 6, 2016, 7:42 PM

                          @Tom-Elliott It seems like mysql 5.7 broke a few things, but I’m guessing not enough to bother with this?

                          T 1 Reply Last reply May 6, 2016, 7:44 PM Reply Quote 0
                          • T
                            Tom Elliott @Quazz
                            last edited by May 6, 2016, 7:44 PM

                            @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.

                            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

                            1 Reply Last reply Reply Quote 0
                            • B
                              Blacknutso @Tom Elliott
                              last edited by May 11, 2016, 3:36 PM

                              @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

                              Q 1 Reply Last reply May 11, 2016, 3:48 PM Reply Quote 0
                              • T
                                Tom Elliott @Tom Elliott
                                last edited by May 11, 2016, 3:38 PM

                                @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.

                                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

                                1 Reply Last reply Reply Quote 0
                                • Q
                                  Quazz Moderator @Blacknutso
                                  last edited by May 11, 2016, 3:48 PM

                                  @Blacknutso The /lib folder is relative to the where you downloaded FOG, not in the root location.

                                  B 1 Reply Last reply May 13, 2016, 7:49 PM Reply Quote 0
                                  • B
                                    Blacknutso @Quazz
                                    last edited by May 13, 2016, 7:49 PM

                                    @Quazz Thank you i find the fold then the config.sh but can you tell me what can i change for dont have the error “php 5 failed”.

                                    Thx again for answer me
                                    (sorry for my english, im a french student)!

                                    http://img15.hostingpics.net/pics/412779UBUNTU1604FOG.png

                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      Sebastian Roth Moderator
                                      last edited by May 13, 2016, 10:00 PM

                                      @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

                                      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

                                      B 1 Reply Last reply May 13, 2016, 11:12 PM Reply Quote 1
                                      • B
                                        Blacknutso @Sebastian Roth
                                        last edited by May 13, 2016, 11:12 PM

                                        @Sebastian-Roth i trying you method but it didnt work for me !
                                        always have php5-json…Failed!

                                        T 1 Reply Last reply May 13, 2016, 11:17 PM Reply Quote 0
                                        • S
                                          Sebastian Roth Moderator
                                          last edited by May 13, 2016, 11:16 PM

                                          @Blacknutso What do you have in the last 10 lines of the install error log file? fogproject/bin/error_log/…

                                          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

                                          B 1 Reply Last reply May 13, 2016, 11:29 PM Reply Quote 0
                                          • 1
                                          • 2
                                          • 1 / 2
                                          • First post
                                            Last post

                                          159

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project