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

    /Fog/management page not coming up

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    4
    14
    1.4k
    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 @JackieJack
      last edited by

      @jackiejack Anything in the /var/log/php-fpm error logs maybe? (error.log and www-error.log)

      J 1 Reply Last reply Reply Quote 0
      • J
        JackieJack @Quazz
        last edited by

        @quazz
        Will have to check on Monday.

        1 Reply Last reply Reply Quote 0
        • J
          JackieJack
          last edited by

          /var/www/fog has an index.php file

          cat /var/log/php-fpm/www-error.log-20180617
          [14-Jun-2018 18:28:23 UTC] PHP Parse error: syntax error, unexpected ‘&’ in /var/www/html/fog/commons/init.php on line 132
          [14-Jun-2018 18:28:28 UTC] PHP Parse error: syntax error, unexpected ‘&’ in /var/www/html/fog/commons/init.php on line 132
          [14-Jun-2018 19:11:33 UTC] PHP Parse error: syntax error, unexpected ‘&’ in /var/www/html/fog/commons/init.php on line 132

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

            @jackiejack I’m not very intimate with the code, but if I had to take a guess there’s an issue with your fog folder in the /var/www/html directory.

            ls -lah /var/www/html/fog
            

            Should tell us a bit more.

            J 1 Reply Last reply Reply Quote 0
            • J
              JackieJack @Quazz
              last edited by

              @quazz
              First I reinstalled everything using Everything DVD CentOS. Ran yum update but still same error.

              ls -lah /var/www/html/fog
              total 372K
              drwxr-xr-x. 11 apache apache 184 Jun 18 11:43 .
              drwxr-xr-x. 3 root root 17 Jun 18 11:43 …
              drwxr-xr-x. 2 apache apache 23 Jun 18 11:43 api
              drwxr-xr-x. 2 apache apache 133 Jun 18 11:48 client
              drwxr-xr-x. 2 apache apache 93 Jun 18 11:43 commons
              -rw-r–r–. 1 apache apache 362K Jun 18 11:43 favicon.ico
              lrwxrwxrwx. 1 apache apache 18 Jun 18 11:43 fog -> /var/www/html/fog/
              drwxr-xr-x. 2 apache apache 125 Jun 18 11:43 fogdoc
              -rw-r–r–. 1 apache apache 572 Jun 18 11:43 index.php
              drwxr-xr-x. 13 apache apache 173 Jun 18 11:43 lib
              drwxr-xr-x. 2 apache apache 86 Jun 18 11:43 maintenance
              drwxr-xr-x. 10 apache apache 143 Jun 18 11:43 management
              drwxr-xr-x. 3 apache apache 4.0K Jun 18 11:43 service
              drwxr-xr-x. 2 apache apache 269 Jun 18 11:43 status

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

                @jackiejack said in /Fog/management page not coming up:

                PHP Parse error: syntax error, unexpected ‘&’ in /var/www/html/fog/commons/init.php on line 132

                Possibly PHP version is too old? Run rpm -qa | grep php and post results here.

                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

                J 1 Reply Last reply Reply Quote 0
                • J
                  JackieJack @Sebastian Roth
                  last edited by

                  @sebastian-roth

                  rpm -qa | grep php
                  php-ldap-5.4.16-45.el7.x86_64
                  php-mysqlnd-5.4.16-45.el7.x86_64
                  php-common-5.4.16-45.el7.x86_64
                  php-bcmath-5.4.16-45.el7.x86_64
                  php-mcrypt-5.4.16-7.el7.x86_64
                  php-gd-5.4.16-45.el7.x86_64
                  php-process-5.4.16-45.el7.x86_64
                  php-cli-5.4.16-45.el7.x86_64
                  php-fpm-5.4.16-45.el7.x86_64
                  php-pdo-5.4.16-45.el7.x86_64
                  php-5.4.16-45.el7.x86_64
                  php-mbstring-5.4.16-45.el7.x86_64

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

                    @JackieJack Yeah, your PHP version is definitely too old. Something prevented the installer from using the REMI repo. See here for example: https://forums.fogproject.org/topic/9413/http-500-error

                    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

                    J 1 Reply Last reply Reply Quote 0
                    • J
                      JackieJack @Sebastian Roth
                      last edited by

                      @sebastian-roth
                      Well what I did was install yum priorities and then install epel.

                      I put epel at a priority of 10 and CentOS-Base at a priority of 1.

                      I did not install remi repo.

                      What to do?
                      Run this command?
                      yum -y update php* --enablerepo=remi,remi-php56

                      Should I do a fresh OS install? I am not at the stage where I’m supposed to hit enter after updating database schema.

                      J 1 Reply Last reply Reply Quote 0
                      • J
                        JackieJack @JackieJack
                        last edited by

                        @jackiejack I disabled the yum priorities, config file enabled = 0 .

                        But now when I re run the script I get:
                        Backing up database … failed.

                        J 1 Reply Last reply Reply Quote 0
                        • J
                          JackieJack @JackieJack
                          last edited by

                          @jackiejack Reinstalled my centos 7 and did not tamper with anything. Fresh install of fog. Works perfect.

                          My adding repos and setting the priorities of them caused the confusion. Just let fog do its thing.

                          1 Reply Last reply Reply Quote 2
                          • 1 / 1
                          • First post
                            Last post

                          185

                          Online

                          12.0k

                          Users

                          17.3k

                          Topics

                          155.2k

                          Posts
                          Copyright © 2012-2024 FOG Project