• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • 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.
  • S
    sudburr
    last edited by Feb 19, 2016, 5:21 AM

    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 Feb 19, 2016, 9:37 AM

      @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

      S 2 Replies Last reply Feb 19, 2016, 9:18 PM Reply Quote 2
      • S
        sudburr
        last edited by sudburr Feb 19, 2016, 9:39 AM Feb 19, 2016, 3:31 PM

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

        T 1 Reply Last reply Feb 19, 2016, 3:36 PM Reply Quote 0
        • T
          Tom Elliott @sudburr
          last edited by Feb 19, 2016, 3:36 PM

          @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
          • S
            sudburr
            last edited by Feb 19, 2016, 9:14 PM

            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
            • S
              sudburr @Sebastian Roth
              last edited by Feb 19, 2016, 9:18 PM

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • S
                sudburr @Sebastian Roth
                last edited by Feb 19, 2016, 9:20 PM

                @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.

                W 1 Reply Last reply Feb 19, 2016, 9:29 PM Reply Quote 0
                • W
                  Wayne Workman @sudburr
                  last edited by Feb 19, 2016, 9:29 PM

                  @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
                  • S
                    sudburr
                    last edited by Feb 19, 2016, 9:56 PM

                    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.
                    
                    T 1 Reply Last reply Feb 19, 2016, 9:57 PM Reply Quote 0
                    • T
                      Tom Elliott @sudburr
                      last edited by Feb 19, 2016, 9:57 PM

                      @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
                      • S
                        sudburr
                        last edited by sudburr Feb 19, 2016, 4:01 PM Feb 19, 2016, 9:58 PM

                        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
                        • T
                          Tom Elliott
                          last edited by Feb 19, 2016, 10:12 PM

                          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
                          • S
                            sudburr
                            last edited by sudburr Feb 19, 2016, 4:27 PM Feb 19, 2016, 10:26 PM

                            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 Feb 19, 2016, 10:32 PM

                              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
                              • S
                                sudburr
                                last edited by Feb 19, 2016, 10:38 PM

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

                                T 1 Reply Last reply Feb 19, 2016, 10:39 PM Reply Quote 0
                                • T
                                  Tom Elliott @sudburr
                                  last edited by Feb 19, 2016, 10:39 PM

                                  @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
                                  • S
                                    sudburr
                                    last edited by Feb 19, 2016, 10:40 PM

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

                                    T 1 Reply Last reply Feb 19, 2016, 10:46 PM Reply Quote 0
                                    • T
                                      Tom Elliott @sudburr
                                      last edited by Feb 19, 2016, 10:46 PM

                                      @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
                                      • S
                                        sudburr
                                        last edited by Feb 19, 2016, 11:00 PM

                                        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 Mar 15, 2016, 4:51 AM Mar 15, 2016, 10:45 AM

                                          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

                                          T 1 Reply Last reply Mar 15, 2016, 11:07 AM Reply Quote 0
                                          • 1
                                          • 2
                                          • 1 / 2
                                          • First post
                                            Last post

                                          143

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project