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

    Fresh install of Build 6333 on CentOS 7.1

    Scheduled Pinned Locked Moved Solved
    Bug Reports
    4
    22
    6.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.
    • sudburrS
      sudburr
      last edited by

      From one fire to the next.

      When it comes time during the installation to visit the fog/management web page, a fat ol’ HTTP 500 error comes up.

      From /var/log/httpd/error_log (CentOS)

      PHP Fatal error:  Cannot create references to elements of a temporary array expression in /var/www/html/fog/lib/fog/fogbase.class.php on line 134
      
      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
      • S
        Sebastian Roth Moderator
        last edited by

        @sudburr said:

        PHP Fatal error:  Cannot create references to elements of a temporary array expression in ...
        

        To me this sounds like you have an older version of PHP installed. Maybe something went wrong in the installer when external repos were added. Check to see which version of php is installed rpm -qa | grep php

        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

        sudburrS 2 Replies Last reply Reply Quote 2
        • sudburrS
          sudburr
          last edited by sudburr

          Looking it over again now that I’ve slept on it.

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

            @sudburr I just fixed the line 134 error (I think/hope). Can you update and test?

            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
            • sudburrS
              sudburr
              last edited by

              With Build 6339,

              HTTP Error 500

              extract from /var/log/httpd/error_log (centos)

              PHP Fatal error:  Cannot create references to elements of a temporary array expression in /var/www/html/fog/lib/fog/fogbase.class.php on line 193
              
              1 Reply Last reply Reply Quote 0
              • sudburrS
                sudburr @Sebastian Roth
                last edited by

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • sudburrS
                  sudburr @Sebastian Roth
                  last edited by

                  @Sebastian-Roth said:

                  To me this sounds like you have an older version of PHP installed. Maybe something went wrong in the installer when external repos were added. Check to see which version of php is installed rpm -qa | grep php

                  PhP was installed by the FOG installer. Six times now I’ve tried, in progressively cleaner environments until now I’m basically installing FOG immediately after installing CentOS without any updates. Same result every time.

                  Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                  • Wayne WorkmanW
                    Wayne Workman @sudburr
                    last edited by

                    @sudburr look inside trunk/bin/error_logs

                    the installation errors are in there. Can you post the latest file from there?

                    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!
                    Daily Clean Installation Results:
                    https://fogtesting.fogproject.us/
                    FOG Reporting:
                    https://fog-external-reporting-results.fogproject.us/

                    1 Reply Last reply Reply Quote 0
                    • sudburrS
                      sudburr
                      last edited by

                      The only thing of consequence I could find in /opt/trunkgit/fogproject/bin/error_logs/fog_error_6339.log regarding anything php up to the website view request is:

                      WARNING : PHP 5.4 have reached its "End of Life".
                      Even, if this package includes some security fix, backported from 5.5,
                      The upgrade to a maintained version is very strongly recommended.
                      
                      WARNING : These php-* RPMs are not official Fedora / Red Hat build and
                      overrides the official ones. Don't file bugs on Fedora Project nor Red Hat.
                      
                      Tom ElliottT 1 Reply Last reply Reply Quote 0
                      • Tom ElliottT
                        Tom Elliott @sudburr
                        last edited by

                        @sudburr Can you try to run a yum -y --enablerepo=remi-php5-56 update

                        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
                        • sudburrS
                          sudburr
                          last edited by sudburr

                          In behind the installer? This is what FOG is installing, not me.

                          * Installing package: httpd...................................OK
                           * Installing package: php.....................................OK
                          

                          Dumping:

                          yum -y --enablerepo=remi-php5-56 update
                          

                          … behind the installer through a second session I get:

                          Error getting repository data for remi-php5-56, repository not found
                          
                          1 Reply Last reply Reply Quote 0
                          • Tom ElliottT
                            Tom Elliott
                            last edited by

                            Can you try one more time? I edited to allow adjustments for the repo and call out specifically for remi,remi-php56.

                            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
                            • sudburrS
                              sudburr
                              last edited by sudburr

                              Build 6347, no change.

                              And before you ask, the firewall is inactive (dead).

                              Apache2 is working. I can reach the default page.

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

                                I guess it should be yum -y --enablerepo=remi-php56 update (instead of ‘… remi-php5-56 …’), hmm?

                                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 2
                                • sudburrS
                                  sudburr
                                  last edited by

                                  That did the trick. But this still means the FOG installer itself is forcing the incorrect version yes?

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

                                    @sudburr No.

                                    the 6347 should be forcing 56 as per what Sebastian found.

                                    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
                                    • sudburrS
                                      sudburr
                                      last edited by

                                      It didn’t, but I’ll try it again.

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

                                        @sudburr Try again, i’m a freaking idiot. (update then install please?)

                                        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
                                        • sudburrS
                                          sudburr
                                          last edited by

                                          Build 6349 passes muster. A big thank you for your prompt attention.

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

                                            Sorry, marking unsolved again as I see this same issue happening on my fresh CentOS 7 install right now!

                                            $ rpm -qa | grep php
                                            php-common-5.4.16-36.el7_1.x86_64
                                            ...
                                            

                                            Fixing it by hand - not sure if this is what we want people to do by themselves?!?

                                            rpm -Uvh  http://rpms.remirepo.net/enterprise/remi-release-7.rpm
                                            yum-config-manager --enable remi-php70
                                            yum -y update
                                            

                                            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

                                            Tom ElliottT 1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post

                                            156

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project