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

    Installation fails

    Scheduled Pinned Locked Moved
    General Problems
    3
    17
    2.1k
    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.
    • A
      aperiamb @aperiamb
      last edited by

      @Quazz

      It looks like the web server is up, but returning a 500 on requests.

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

        @aperiamb Thinking about it a little bit, a 500 error is frequently caused by incorrect permissions.

        What’s the output of

        ls -lah /var/www/html
        

        and

        ls -lah /var/www/html/fog
        
        A 1 Reply Last reply Reply Quote 0
        • A
          aperiamb @Quazz
          last edited by

          @quazz 0_1529932499440_6f63c4fc-7eb0-4bff-b64a-734dfdde79eb-image.png

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

            @aperiamb Looks like it should be to me.

            Perhaps the problem is with the Mysql server instead.

            There should be an error log of it in /var/log somewhere (possibly in a mysql folder)

            A 1 Reply Last reply Reply Quote 0
            • A
              aperiamb @Quazz
              last edited by

              @quazz This brings up something that confused me during installation. The docs mention both mysql and mariadb. Which one does fog use?

              When I looked for the logs in /var/log/ there was only a mariadb folder, which had the mariadb.log inside.0_1530104131221_fogmariadb.txt

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

                @aperiamb Mariadb is a Mysql fork, which should be fully compatible with its standards, but they include certain fixes, changes, optimizations that are really nice.

                Sometimes the logfiles and references will still say mysql, sometimes mariadb, the distinction isn’t terribly important in most cases.

                Logfile seems clean as well, this should mean that your database is in good shape which is good news.

                So the question remains why you’re getting a 500 error then.

                Do you have a lot of clients and such?

                I’m going to presume that the problem is actually down to PHP.

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

                  @aperiamb Please check your apache error logs. See my signature…

                  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

                  A 1 Reply Last reply Reply Quote 0
                  • A
                    aperiamb @Sebastian Roth
                    last edited by

                    @sebastian-roth
                    My apache log :

                    
                    
                    [Sun Jun 24 03:24:02.916850 2018] [auth_digest:notice] [pid 60779] AH01757: generating secret for digest authentication ...
                    
                    [Sun Jun 24 03:24:02.921576 2018] [lbmethod_heartbeat:notice] [pid 60779] AH02282: No slotmem from mod_heartmonitor
                    
                    [Sun Jun 24 03:24:03.028341 2018] [mpm_prefork:notice] [pid 60779] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16 configured -- resuming normal operations
                    
                    [Sun Jun 24 03:24:03.028403 2018] [core:notice] [pid 60779] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
                    
                    [Wed Jun 27 07:50:42.863944 2018] [autoindex:error] [pid 4619] [client 192.168.60.55:50892] 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 28 03:40:02.555202 2018] [mpm_prefork:notice] [pid 60779] AH00171: Graceful restart requested, doing restart
                    
                    [Thu Jun 28 03:40:02.900762 2018] [auth_digest:notice] [pid 60779] AH01757: generating secret for digest authentication ...
                    
                    [Thu Jun 28 03:40:02.904632 2018] [lbmethod_heartbeat:notice] [pid 60779] AH02282: No slotmem from mod_heartmonitor
                    
                    [Thu Jun 28 03:40:03.021614 2018] [mpm_prefork:notice] [pid 60779] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16 configured -- resuming normal operations
                    
                    [Thu Jun 28 03:40:03.021780 2018] [core:notice] [pid 60779] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
                    
                    1 Reply Last reply Reply Quote 0
                    • A
                      aperiamb @Quazz
                      last edited by

                      @quazz Thanks for clearing that up for me.

                      I have zero clients, as I haven’t been able to finish the installation script.

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

                        @aperiamb Did you disable SELinux and the firewall?

                        A 1 Reply Last reply Reply Quote 0
                        • A
                          aperiamb @Quazz
                          last edited by

                          @quazz I followed the guides for firewall and SELinux in this guide :
                          https://wiki.fogproject.org/wiki/index.php?title=CentOS_7

                          So no to firewall (set rules) and yes to SELinux.

                          I can reach the apache test page, but when I add /fog, it redirects me to the /fog/management/index.php page, which is blank. I suspect this has something to do with my installation not being complete.

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

                            @aperiamb Try disabling the firewall as a test (and leave it disabled while we try to figure out what is the cause here so we don’t have to go back and forth)

                            I personally suspect PHP-FPM to be the real culprit, a PHP error would produce a blank page on index.php (as opposed to an apache error page which will give an error code)

                            What’s the output of

                            tail -50  /var/log/php-fpm/www-error.log
                            

                            and

                            tail -50  /var/log/php-fpm/error.log
                            
                            1 Reply Last reply Reply Quote 0
                            • 1 / 1
                            • First post
                              Last post

                            223

                            Online

                            12.0k

                            Users

                            17.3k

                            Topics

                            155.2k

                            Posts
                            Copyright © 2012-2024 FOG Project