/Fog/management page not coming up
-
@quazz
Will have to check on Monday. -
/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 -
@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.
-
@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 -
@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. -
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 -
@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
-
@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-php56Should I do a fresh OS install? I am not at the stage where I’m supposed to hit enter after updating database schema.
-
@jackiejack I disabled the yum priorities, config file enabled = 0 .
But now when I re run the script I get:
Backing up database … failed. -
@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.