Unable to login to Web portal
jamilahsan opened this issue · comments
I have installed and configured FiercePhish. When I try to connect to http://my-public-ip:80 I am prompted for user name and password.
When I enter admin as user name and my password which I entered in the configuration file, I get "Whoops, looks like something went wrong". Any suggestion - Idea?
I get the same thing
Look in /var/www/fiercephish/storage/logs/laravel.log, that will direct you to what is wrong. It sounds like a service isn't starting (like mysql) or something causing that issue. Double check your mysql creds in /var/www/fiercephish/.env and make sure your system has enough RAM to run mysql
SQLSTATE[HY000] [1045] Access denied for user 'fiercephish'@'localhost' (using password: YES) in /var/www/fiercephish/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:18
Yeah sounds like your mysql password is incorrect, check /var/www/fiercephish/.env and maybe try manually logging into the mysql server using the "mysql" cli
root@kphisher:~# mysqladmin -u root -p status
Enter password:
Uptime: 381 Threads: 2 Questions: 17 Slow queries: 0 Opens: 169 Flush tables: 3 Open tables: 88 Queries per second avg: 0.044
password does work
that's logging in as root. If you want to do that, update the /var/www/fiercephish/.env DB_USERNAME and DB_PASSWORD variables to make sure its using the root user, then run "cd /var/www/fiercephish/; php artisan config:cache"
but in the .env, it shows fiercephish as the user
Does that need to be changed to root?
I think I got it. I was reusing the same config, and I think that was causing the issue. I rebuilt the server and re-ran the install and it works fine