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

    Cant access management portal

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    4
    34
    7.8k
    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.
    • C
      CoxM @Tom Elliott
      last edited by

      @tom-elliott No luck šŸ˜ž

      is it going to be easier to backup what I have and reinstall? I even have a working snapshot of the server, if I could ensure it using the newer up to date Db then I could roll back?

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

        You could aire. Though I’d first see what the problem is. What’s the output of df -h

        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

        C 1 Reply Last reply Reply Quote 0
        • K
          kwisher @Tom Elliott
          last edited by

          @tom-elliott That did not work for me. I even ran the installer after doing the mysql commands.

          1 Reply Last reply Reply Quote 0
          • K
            kwisher @Tom Elliott
            last edited by

            @tom-elliott said in Cant access management portal:

            /var/www/fog/lib/fog/config.class.php

            Thank you, that was the solution to my problem šŸ™‚

            1 Reply Last reply Reply Quote 0
            • C
              CoxM @Tom Elliott
              last edited by

              @tom-elliott
              Hi,
              Have run df -h and have space on all partitions.

              Getting desperate now, need to image some machine for our new users. Any other ideas? What about exporting the Db and reinstalling?

              Just need to find a way back to a working Fog install with my existing Db.
              Thanks,

              1 Reply Last reply Reply Quote 0
              • C
                CoxM
                last edited by

                This is my current apache2 log
                0_1518694579851_fog8.JPG

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

                  @CoxM The message ... Uncaught Error: Call to a member function lastInsertId() ... in the logs most certainly means that the database connection information set in /var/www/fog/lib/fog/config.class.php is not correct and therefore the PHP web UI cannot connect to the database!

                  Did you follow Tom’s suggestions on altering/resetting the database passwords (... mysql_native_password ...) as well as comparing the username/password in the mentioned files? Your answer to that was ā€œNo luckā€. But what did you do and what happened. We can’t really help if we don’t know what exactly you tried and why it did not work from your point of view.

                  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

                  C 1 Reply Last reply Reply Quote 0
                  • C
                    CoxM @Sebastian Roth
                    last edited by

                    @sebastian-roth
                    Hi,
                    Sorry for the lack of useful feedback!
                    Here are the shots of both files, its worth noting that originally the mysql password in the class.php file was blank. I have since edited.
                    1_1518701676498_fog10.JPG 0_1518701676497_fog9.JPG

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

                      @CoxM Check the line snmysqlpass=... in .fogsettings. That’s the mysql database password. If it is blank leave it like that and change it back to blank in the config.class.php as well.

                      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

                      C 1 Reply Last reply Reply Quote 0
                      • C
                        CoxM @Sebastian Roth
                        last edited by

                        @sebastian-roth @Tom-Elliott
                        Thank you both so much, through a combination of things I have it working. you guys ROCK!

                        Thanks again!

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

                        252

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright Ā© 2012-2024 FOG Project