/Fog/management page not coming up
-
Hello,
I did fresh install of FOG server on new CentOS 7 box.Now
You still need to install/update your database schema.-
This can be done by opening a web browser and going to:
nothing comes up.
Firewalld stopped
setenforce 0, getenforce permissiveWhen I try to access this address from another computer I get a 500 error.
When I hit
http://192.168.25.144I see the default apache webpage
My OS is from the CentOS7 DVD, but not the everything dvd.
What to do?
apache error log:
[autoindex:error] [pid 7743] [client 192.168.25.144:35494] 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 14 14:13:56.592832 2018] [autoindex:error] [pid 7743] [client 192.168.26.32:49965] 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 14 14:14:28.629165 2018] [autoindex:error] [pid 7742] [client 127.0.0.1:36970] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive -
-
@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.
-
My best guess is that if you navigate to
cd /var/www/fog/management/
and don’t find an index.php file, there’s a chance that you didn’t run the installfog.sh script with the sudo permissions needed to write the files to the proper folders that the apache server needs to complete the request. -
Will have to check. But I swear I did use sudo.
-
@jackiejack Anything in the /var/log/php-fpm error logs maybe? (error.log and www-error.log)
-
@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.