Cant access management portal
-
@coxm The
/var/www/fog/lib/fog/config.class.php
DATABASE_PASSWORD line should look like:define('DATABASE_PASSWORD', '<whateveryourfogguipasswordishere>');
You may also need to edit the
/opt/fog/.fogsettings
line withsnmysqlpass=''
to:snmysqlpass='<whateveryourfogguipasswordishere>'
-
@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?
-
You could aire. Though I’d first see what the problem is. What’s the output of
df -h
-
@tom-elliott That did not work for me. I even ran the installer after doing the mysql commands.
-
@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
-
@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, -
This is my current apache2 log
-
@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. -
@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.
-
@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 theconfig.class.php
as well. -
@sebastian-roth @Tom-Elliott
Thank you both so much, through a combination of things I have it working. you guys ROCK!Thanks again!