Installation fails
-
@aperiamb Thinking about it a little bit, a 500 error is frequently caused by incorrect permissions.
What’s the output of
ls -lah /var/www/html
and
ls -lah /var/www/html/fog
-
-
@aperiamb Looks like it should be to me.
Perhaps the problem is with the Mysql server instead.
There should be an error log of it in /var/log somewhere (possibly in a mysql folder)
-
@quazz This brings up something that confused me during installation. The docs mention both mysql and mariadb. Which one does fog use?
When I looked for the logs in /var/log/ there was only a mariadb folder, which had the mariadb.log inside.0_1530104131221_fogmariadb.txt
-
@aperiamb Mariadb is a Mysql fork, which should be fully compatible with its standards, but they include certain fixes, changes, optimizations that are really nice.
Sometimes the logfiles and references will still say mysql, sometimes mariadb, the distinction isn’t terribly important in most cases.
Logfile seems clean as well, this should mean that your database is in good shape which is good news.
So the question remains why you’re getting a 500 error then.
Do you have a lot of clients and such?
I’m going to presume that the problem is actually down to PHP.
-
@aperiamb Please check your apache error logs. See my signature…
-
@sebastian-roth
My apache log :[Sun Jun 24 03:24:02.916850 2018] [auth_digest:notice] [pid 60779] AH01757: generating secret for digest authentication ... [Sun Jun 24 03:24:02.921576 2018] [lbmethod_heartbeat:notice] [pid 60779] AH02282: No slotmem from mod_heartmonitor [Sun Jun 24 03:24:03.028341 2018] [mpm_prefork:notice] [pid 60779] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16 configured -- resuming normal operations [Sun Jun 24 03:24:03.028403 2018] [core:notice] [pid 60779] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND' [Wed Jun 27 07:50:42.863944 2018] [autoindex:error] [pid 4619] [client 192.168.60.55:50892] 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 28 03:40:02.555202 2018] [mpm_prefork:notice] [pid 60779] AH00171: Graceful restart requested, doing restart [Thu Jun 28 03:40:02.900762 2018] [auth_digest:notice] [pid 60779] AH01757: generating secret for digest authentication ... [Thu Jun 28 03:40:02.904632 2018] [lbmethod_heartbeat:notice] [pid 60779] AH02282: No slotmem from mod_heartmonitor [Thu Jun 28 03:40:03.021614 2018] [mpm_prefork:notice] [pid 60779] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16 configured -- resuming normal operations [Thu Jun 28 03:40:03.021780 2018] [core:notice] [pid 60779] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
-
@quazz Thanks for clearing that up for me.
I have zero clients, as I haven’t been able to finish the installation script.
-
@aperiamb Did you disable SELinux and the firewall?
-
@quazz I followed the guides for firewall and SELinux in this guide :
https://wiki.fogproject.org/wiki/index.php?title=CentOS_7So no to firewall (set rules) and yes to SELinux.
I can reach the apache test page, but when I add /fog, it redirects me to the /fog/management/index.php page, which is blank. I suspect this has something to do with my installation not being complete.
-
@aperiamb Try disabling the firewall as a test (and leave it disabled while we try to figure out what is the cause here so we don’t have to go back and forth)
I personally suspect PHP-FPM to be the real culprit, a PHP error would produce a blank page on index.php (as opposed to an apache error page which will give an error code)
What’s the output of
tail -50 /var/log/php-fpm/www-error.log
and
tail -50 /var/log/php-fpm/error.log