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

    Error upgrading from 1.2 to 1.3 rc 25

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    4
    13
    2.5k
    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
      last edited by

      The apache server returns a 500 error. Can you tail the apache error log? (var/log/httpd/error_log)

      1 Reply Last reply Reply Quote 0
      • L
        lebrun78
        last edited by

        Hello,

        Here is the apache error:

        [Thu Nov 24 10:34:48 2016] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
        [Thu Nov 24 10:34:48 2016] [notice] Digest: generating secret for digest authentication …
        [Thu Nov 24 10:34:48 2016] [notice] Digest: done
        [Thu Nov 24 10:34:48 2016] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 mod_ssl/2.2.15 OpenSSL/1.0.1e-fips configured – resuming normal operations
        [Thu Nov 24 10:34:55 2016] [error] [client 192.168.122.3] PHP Parse error: syntax error, unexpected ‘&’ in /var/www/html/fog/commons/init.php on line 109
        [Thu Nov 24 10:37:27 2016] [error] [client 192.168.122.1] PHP Parse error: syntax error, unexpected ‘&’ in /var/www/html/fog/commons/init.php on line 109
        [Thu Nov 24 10:37:35 2016] [error] [client 192.168.122.1] PHP Parse error: syntax error, unexpected ‘&’ in /var/www/html/fog/commons/init.php on line 109

        Fog Version: Fog 1.5.10
        Server OS: AlmaLinux release 8.8

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

          @lebrun78 Hi, please do

          rm -rf /var/www/html/fog
          rm -rf /var/www/fog
          

          Then try running the installer again.

          1 Reply Last reply Reply Quote 1
          • L
            lebrun78
            last edited by

            Error is in the file /opt/fogproject/packages/web/commons/init.php, no ?

            Fog Version: Fog 1.5.10
            Server OS: AlmaLinux release 8.8

            1 Reply Last reply Reply Quote 0
            • L
              lebrun78
              last edited by

              other problem, php version seems to not be checked before installation,

              so when I’m connect to http://192.168.122.3/fog/management/ to valid myslq backup and update, I got that:
              “FOG Requires PHP v5.5.0 or higher. You have PHP v5.3.3”

              Fog Version: Fog 1.5.10
              Server OS: AlmaLinux release 8.8

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

                @lebrun78 You will need to remove the packages line from /opt/.fogsettings and remove PHP.

                Something like

                yum remove php*
                
                1 Reply Last reply Reply Quote 0
                • L
                  lebrun78
                  last edited by

                  yum remove php* did not make me have a succes
                  So I edited lib/redhat/config.sh, lib/common/functions.sh and lib/redhat/.svn/text-base/config.sh.svn-base to change php to php55w after
                  rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
                  yum install yum-plugin-replace
                  yum replace php-common --replace-with=php55w-common

                  But now I have this error:

                  • Setting up fog user…Already setup
                  • Setting up fog password…OK
                  • Stopping FOGMulticastManager Service…OK
                  • Stopping FOGImageReplicator Service…OK
                  • Stopping FOGSnapinReplicator Service…OK
                  • Stopping FOGScheduler Service…OK
                  • Stopping FOGPingHosts Service…OK
                  • Setting up and starting MySQL…OK
                  • Backing up user reports…Done
                  • Stopping web service…Failed!

                  Here is the tail of error_logs/fog_error_1.3.0-RC-25.log

                  Arrêt de FOGMulticastManager : [ÉCHOUÉ]
                  Arrêt de FOGImageReplicator : [ÉCHOUÉ]
                  Arrêt de FOGTaskScheduler : [ÉCHOUÉ]
                  Arrêt de mysqld : [ OK ]
                  Démarrage de mysqld : [ OK ]
                  mysqld (pid 6322) en cours d’exécution…
                  Arrêt de httpd : [ OK ]
                  php55w-fpm: service non reconnu

                  Fog Version: Fog 1.5.10
                  Server OS: AlmaLinux release 8.8

                  1 Reply Last reply Reply Quote 0
                  • L
                    lebrun78
                    last edited by

                    I was to much violent with sed .
                    Repaired …
                    Now Setting up Apache and PHP files…Failed
                    ###########################################

                    PHP Failed to install properly

                    ###########################################

                    Could not find !

                    Fog Version: Fog 1.5.10
                    Server OS: AlmaLinux release 8.8

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

                      Please try:

                      wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm ; sudo rpm -Uvh remi-release-6*.rpm

                      Then run:

                      yum -y update --enablerepo=remi,remi-php56

                      Then rerun the installer.

                      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
                        last edited by

                        You shouldn’t alter the installation files. I have no idea what state they’re in or what they’re actually doing now, making it impossible to assist.

                        The only problem you had was that PHP5.3 was installed and that a newer version needed to get installed. The installer has ways of managing that, no need to alter the scripts themselves.

                        So, remove your FOG svn folder and pull a fresh version to make sure everything is as it should be.

                        Then remove the packages= line from /opt/fog/.fogsettings (otherwise it will continue to select PHP5.3 packages as previously defined by 1.2 installer)

                        Remove every trace of PHP 5.3 from your system.

                        Run the commands Tom gave.

                        Then run the installer.

                        L 1 Reply Last reply Reply Quote 1
                        • L
                          lebrun78 @Quazz
                          last edited by

                          Thank you
                          As you told me, I upgraded PHP to 5.6 and it works
                          I tried with 26 released

                          Fog Version: Fog 1.5.10
                          Server OS: AlmaLinux release 8.8

                          1 Reply Last reply Reply Quote 0
                          • S
                            Sebastian Roth Moderator
                            last edited by

                            Ok, thanks for letting us know. Marking this as solved then.

                            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
                            • 1 / 1
                            • First post
                              Last post

                            130

                            Online

                            12.1k

                            Users

                            17.3k

                            Topics

                            155.4k

                            Posts
                            Copyright © 2012-2024 FOG Project