• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • 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.3k
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.
  • J
    JackieJack
    last edited by JackieJack Jun 14, 2018, 1:12 PM Jun 14, 2018, 6:16 PM

    Hello,
    I did fresh install of FOG server on new CentOS 7 box.

    Now
    You still need to install/update your database schema.

    • This can be done by opening a web browser and going to:

      http://192.168.25.144/fog/management

    nothing comes up.
    Firewalld stopped
    setenforce 0, getenforce permissive

    When I try to access this address from another computer I get a 500 error.

    When I hit
    http://192.168.25.144

    I see the default apache webpage

    My OS is from the CentOS7 DVD, but not the everything dvd.

    What to do?

    apache error log:
    [autoindex:error] [pid 7743] [client 192.168.25.144:35494] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
    [Thu Jun 14 14:13:56.592832 2018] [autoindex:error] [pid 7743] [client 192.168.26.32:49965] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
    [Thu Jun 14 14:14:28.629165 2018] [autoindex:error] [pid 7742] [client 127.0.0.1:36970] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive

    1 Reply Last reply Reply Quote 0
    • J
      JackieJack @JackieJack
      last edited by Jun 20, 2018, 2:25 PM

      @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
      • D
        Dahrell
        last edited by Jun 14, 2018, 9:22 PM

        My best guess is that if you navigate to cd /var/www/fog/management/ and don’t find an index.php file, there’s a chance that you didn’t run the installfog.sh script with the sudo permissions needed to write the files to the proper folders that the apache server needs to complete the request.

        1 Reply Last reply Reply Quote 0
        • J
          JackieJack
          last edited by Jun 15, 2018, 12:34 AM

          Will have to check. But I swear I did use sudo.

          Q 1 Reply Last reply Jun 15, 2018, 8:47 AM Reply Quote 0
          • Q
            Quazz Moderator @JackieJack
            last edited by Jun 15, 2018, 8:47 AM

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

            J 1 Reply Last reply Jun 15, 2018, 12:18 PM Reply Quote 0
            • J
              JackieJack @Quazz
              last edited by Jun 15, 2018, 12:18 PM

              @quazz
              Will have to check on Monday.

              1 Reply Last reply Reply Quote 0
              • J
                JackieJack
                last edited by Jun 18, 2018, 12:37 PM

                /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 Jun 18, 2018, 2:02 PM Reply Quote 0
                • Q
                  Quazz Moderator @JackieJack
                  last edited by Jun 18, 2018, 2:02 PM

                  @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 Jun 18, 2018, 4:09 PM Reply Quote 0
                  • J
                    JackieJack @Quazz
                    last edited by Jun 18, 2018, 4:09 PM

                    @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 Jun 18, 2018, 5:53 PM

                      @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 Jun 18, 2018, 6:02 PM Reply Quote 0
                      • J
                        JackieJack @Sebastian Roth
                        last edited by Jun 18, 2018, 6:02 PM

                        @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 Jun 18, 2018, 6:27 PM

                          @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 Jun 18, 2018, 6:30 PM Reply Quote 0
                          • J
                            JackieJack @Sebastian Roth
                            last edited by Jun 18, 2018, 6:30 PM

                            @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 Jun 18, 2018, 7:26 PM Reply Quote 0
                            • J
                              JackieJack @JackieJack
                              last edited by Jun 18, 2018, 7:26 PM

                              @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 Jun 20, 2018, 2:25 PM Reply Quote 0
                              • J
                                JackieJack @JackieJack
                                last edited by Jun 20, 2018, 2:25 PM

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

                                235

                                Online

                                12.0k

                                Users

                                17.3k

                                Topics

                                155.2k

                                Posts
                                Copyright © 2012-2024 FOG Project