• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Fog Trunk Install - Database Problem?

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    5
    8
    5.5k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      Motech09
      last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott
        last edited by

        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.

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        1 Reply Last reply Reply Quote 0
        • S
          Sebastian Roth Moderator
          last edited by

          Is this Ubuntu 16.04? See here: https://wiki.fogproject.org/wiki/index.php?title=Ubuntu_16.04#MySQL_password_behavior

          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

          M 1 Reply Last reply Reply Quote 3
          • M
            Motech09
            last edited by

            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…

            1 Reply Last reply Reply Quote 0
            • M
              Motech09 @Sebastian Roth
              last edited by

              @Sebastian-Roth

              Sebasitan, you did it! Thanks x20. Bookmarked for future reference.

              1 Reply Last reply Reply Quote 1
              • cnewman402C
                cnewman402
                last edited by

                sudo su -
                setsebool -P httpd_can_network_connect 1

                Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                • Wayne WorkmanW
                  Wayne Workman @cnewman402
                  last edited by Wayne Workman

                  @cnewman402 said in Fog Trunk Install - Database Problem?:

                  sudo su -
                  setsebool -P httpd_can_network_connect 1

                  Ubuntu doesn’t have SELinux. Why are you replying to 2 month old threads that are already solved?

                  Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
                  Daily Clean Installation Results:
                  https://fogtesting.fogproject.us/
                  FOG Reporting:
                  https://fog-external-reporting-results.fogproject.us/

                  cnewman402C 1 Reply Last reply Reply Quote 0
                  • cnewman402C
                    cnewman402 @Wayne Workman
                    last edited by

                    @Wayne-Workman sorry I didn’t see it was Ubuntu.

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post

                    216

                    Online

                    12.0k

                    Users

                    17.3k

                    Topics

                    155.2k

                    Posts
                    Copyright © 2012-2024 FOG Project