Fog Trunk Install - Database Problem?
-
I’ve installed Fog Trunk version and when I access the web UI I get the below message:
Database Schema Installer / Updater
Your database connection appears to be invalid. FOG is unable to communicate with the database. There are many reasons why this could be the case. Please check your credentials in /var/www/html/fog/lib/fog/config.class.php. Also confirm that the database is indeed running. If credentials are correct, and the Database service is running, check to ensure your filesystem has enough space.
The SQL password is blank. Would that cause a problem?
-
What version did you install?
Most likely the config.class.php (either located in /var/www/fog/lib/fog/config.class.php or /var/www/html/fog/lib/fog/config.class.php) doesn’t have db values for the host and user. Just guessing here.
-
Is this Ubuntu 16.04? See here: https://wiki.fogproject.org/wiki/index.php?title=Ubuntu_16.04#MySQL_password_behavior
-
I installed version 8140.
In the php file it shows the type as ‘mysql’, host is local 127.0.0.1, then fog as the name, and root then the blank password for root. This looks correct to me…
-
Sebasitan, you did it! Thanks x20. Bookmarked for future reference.
-
sudo su -
setsebool -P httpd_can_network_connect 1 -
@cnewman402 said in Fog Trunk Install - Database Problem?:
sudo su -
setsebool -P httpd_can_network_connect 1Ubuntu doesn’t have SELinux. Why are you replying to 2 month old threads that are already solved?
-
@Wayne-Workman sorry I didn’t see it was Ubuntu.