Fresh install of Build 6333 on CentOS 7.1
-
@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
-
Looking it over again now that I’ve slept on it.
-
@sudburr I just fixed the line 134 error (I think/hope). Can you update and test?
-
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
-
This post is deleted! -
@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.
-
@sudburr look inside trunk/bin/error_logs
the installation errors are in there. Can you post the latest file from there?
-
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.
-
@sudburr Can you try to run a
yum -y --enablerepo=remi-php5-56 update
-
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
-
Can you try one more time? I edited to allow adjustments for the repo and call out specifically for remi,remi-php56.
-
Build 6347, no change.
And before you ask, the firewall is inactive (dead).
Apache2 is working. I can reach the default page.
-
I guess it should be
yum -y --enablerepo=remi-php56 update
(instead of ‘… remi-php5-56 …’), hmm? -
That did the trick. But this still means the FOG installer itself is forcing the incorrect version yes?
-
@sudburr No.
the 6347 should be forcing 56 as per what Sebastian found.
-
It didn’t, but I’ll try it again.
-
@sudburr Try again, i’m a freaking idiot. (update then install please?)
-
Build 6349 passes muster. A big thank you for your prompt attention.
-
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
-
@Sebastian-Roth Please try re-updating? I found a typo on the remi installation file.