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

    Issues after upgrading to 16.04

    Scheduled Pinned Locked Moved Unsolved
    FOG Problems
    7
    65
    26.2k
    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.
    • Q
      Quazz Moderator @Tom
      last edited by Quazz

      @Tom It’s a hidden file in /opt/fog called .fogsettings

      You can view it by

      cat /opt/fog/.fogsettings
      

      @EAHarvey

      He mentioned upgrading in his original post, so should have this file.

      T 1 Reply Last reply Reply Quote 0
      • E
        EAHarvey
        last edited by EAHarvey

        My fogsettings. Under packages its shows php5.

        Start of FOG Settings

            ## Created by the FOG Installer
            ## Version: 6177
            ## Install time: Wed 03 Feb 2016 08:16:39 AM CST
        
            ipaddress='172.29.2.250'
            interface='p4p1'
            submask='255.255.0.0'
            routeraddress='#   No router address added'
            plainrouter=''
            dnsaddress='#   No dns added'
            dnsbootimage=''
            password='R7xAlawPeDRCx6NVVnANGqytkDri/MCywCJpbsIQRNg='
            osid='2'
            osname='Debian'
            dodhcp='y'
            bldhcp='1'
            blexports='1'
            installtype='N'
            snmysqluser=''
            snmysqlpass=''
            snmysqlhost=''
            installlang='0'
            donate='0'
            storageLocation='/images'
            fogupdateloaded=1
            storageftpuser='fog'
            storageftppass='R7xAlawPeDRCx6NVVnANGqytkDri/MCywCJpbsIQRNg='
            docroot='/var/www/html/'
            webroot='fog/'
            caCreated='yes'
            startrange='172.29.0.253'
            endrange='172.29.255.254'
            bootfilename='undionly.kpxe'
            packages='apache2 php5 php5-json php5-gd php5-cli php5-curl mysql-server mysql-client isc-dhcp-server tftpd-hpa tftp-hpa nfs-kernel-server vsftpd net-tools wget xinetd sysv-rc-conf tar gzip build-essential cpp gcc g++ m4 htmldoc lftp openssh-server php-gettext php5-mcrypt php5-mysqlnd curl libc6 libcurl3 zlib1g php5-fpm libapache2-mod-php5'
            noTftpBuild=''
            notpxedefaultfile=''
            ## End of FOG Settings
        
        Q 1 Reply Last reply Reply Quote 0
        • T
          Tom @Quazz
          last edited by

          @Quazz Thank you, here are the results:

          0_1474463037410_results.JPG
          how can I change it?

          Q 1 Reply Last reply Reply Quote 0
          • Q
            Quazz Moderator @EAHarvey
            last edited by

            @EAHarvey I recommend commenting that line out (put a # in front of it).

            You’ll probably have to remove all currently installed php and apache thingies though.

            Something like

            sudo apt purge php*
            sudo apt purge apache*
            rm -rf '/etc/apache*' '/etc/php*'
            

            Then, the installer should install the correct version for ubuntu 16.04, but if you want to play it safe, you can do

            php_ver='7.0' php_verAdds='-7.0' ./installfog.sh -y
            
            T 1 Reply Last reply Reply Quote 0
            • Q
              Quazz Moderator @Tom
              last edited by

              @Tom Open the file with a text-editor, such as nano

              eg

              nano /opt/fog/.fogsettings
              

              Change 5 and 5.6 to 7.0 and save.

              E 1 Reply Last reply Reply Quote 0
              • T
                Tom @Quazz
                last edited by

                @Quazz Followed instructions, yet the fog installer insist on installing php5.

                Q 1 Reply Last reply Reply Quote 0
                • Q
                  Quazz Moderator @Tom
                  last edited by

                  @Tom Even with

                  php_ver='7.0' php_verAdds='-7.0' ./installfog.sh -y
                  

                  ?

                  T 1 Reply Last reply Reply Quote 0
                  • E
                    EAHarvey @Quazz
                    last edited by

                    @Quazz I have all the PHP5 stuff remarked out and it skips the installs as it should and install php7. Now I am crashing at Stopping web Service…Failed!!

                    Still looking for that fix.

                    Q 1 Reply Last reply Reply Quote 0
                    • E
                      EAHarvey
                      last edited by

                      I love this stuff!!!:-) Frustrating and interesting at the same time!!

                      1 Reply Last reply Reply Quote 0
                      • Q
                        Quazz Moderator @EAHarvey
                        last edited by

                        @EAHarvey Most likely some odd one out php thingy got missed when we tried to manually remove them earlier.

                        Check the error logs of the FOG installer (near the bottom) to find out which one.

                        E Tom ElliottT 2 Replies Last reply Reply Quote 0
                        • E
                          EAHarvey @Quazz
                          last edited by

                          @Quazz Failed to stop php7.0-fpm.service: Unit php7.0-fpm.service not loaded.

                          Looking for fix now.

                          1 Reply Last reply Reply Quote 0
                          • Tom ElliottT
                            Tom Elliott @Quazz
                            last edited by

                            @Quazz commenting the packages line would also be needed

                            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 1
                            • T
                              Tom @Quazz
                              last edited by

                              @Quazz Yes

                              1 Reply Last reply Reply Quote 0
                              • T
                                Tom
                                last edited by

                                Ok, deleted the values for php_ver (5) and php_verAdds(-5.6) in fodsettings and saved.
                                Ran php_ver=‘7.0’ php_verAdds=‘-7.0’ ./installfog.sh -y
                                installation stopped at this:
                                0_1474470181758_install error.JPG

                                I hope it helps.

                                Q 1 Reply Last reply Reply Quote 0
                                • Q
                                  Quazz Moderator @Tom
                                  last edited by

                                  @Tom As Tom Eliott has stated, you also need to comment out the packages = " line in your /opt/fog/.fogsettings file (simply put a # in front of packages)

                                  Because the installer ran previously, it compiled a list of packages to install based on the setting of the time and saved in the .fogsettings file for speed reasons.

                                  T 1 Reply Last reply Reply Quote 0
                                  • T
                                    Tom @Quazz
                                    last edited by

                                    @Quazz Thanks, I put # in front of php_ver and php_verAdds.
                                    Ran “php_ver=‘7.0’ php_verAdds=’-7.0’ ./installfog.sh -y” and the installation stopped at the same spot.

                                    Should I have commented something else?

                                    Q 1 Reply Last reply Reply Quote 0
                                    • Q
                                      Quazz Moderator @Tom
                                      last edited by Quazz

                                      @Tom Yes, you have to comment the packages=“list of packages here” line

                                      After that you have to remove the old php stuff from your system again.

                                      sudo apt purge php*
                                      sudo apt purge apache*
                                      rm -rf '/etc/apache*' '/etc/php*'
                                      
                                      T 1 Reply Last reply Reply Quote 0
                                      • T
                                        Tom @Quazz
                                        last edited by

                                        @Quazz Thank you, it seems that php7 was installed successfully and the values in fogsettings has been changed.
                                        Tried to access the console, and I got:
                                        0_1474472455787_fogerror2.JPG
                                        So, I uncommented the lines and ran the installer again.
                                        Yet, I get the same screen.

                                        ThiagoT 1 Reply Last reply Reply Quote 0
                                        • E
                                          EAHarvey
                                          last edited by

                                          sudo apt purge php*
                                          sudo apt purge apache*
                                          sudo apt-get autoremove
                                          rm -rf ‘/etc/apache*’ ‘/etc/php*’

                                          Along with the #out of the Packages line in the fogsettings file, worked for me. I am up and running and testing an image push right now. YAY!

                                          1 Reply Last reply Reply Quote 0
                                          • ThiagoT
                                            Thiago @Tom
                                            last edited by

                                            @Tom
                                            This happened to me, and when i was looking at /var/www/fog/lib/fog/config.class.php my db password was empty…
                                            setting my db password, then webui automatically had changed to correct page…

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 2 / 4
                                            • First post
                                              Last post

                                            157

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project