Unable to access WebUI:

Hi guys
Unable to login to the webGUI
Have rebooted but nothing changed
The file has been completely updated
Fix is executed by executing ./validate.php
Please help me to correct the mistakes. Thank you.

====================================

Component Version
LibreNMS 1.43-106-gdaec72f
DB Schema 268
PHP 7.2.9
MySQL 5.5.60-MariaDB
RRDTool 1.4.8
SNMP NET-SNMP 5.7.2
====================================

[OK] Composer Version: 1.7.2
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[WARN] You have not added any devices yet.
[FIX] You can add a device in the webui or with ./addhost.php
[WARN] Your local git contains modified files, this could prevent automatic updates.
[FIX] You can fix this with ./scripts/github-remove

System Centos 7

Have you checked the logs? It would be useful if you pasted those.
/opt/librenms/logs/librenms.log

[2018-09-20 22:42:01] production.ERROR: PDOException: SQLSTATE[HY000] [1044] Access denied for user ‘librenms’@‘localhost’ to database ‘librenmsdb’ in /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:68
Stack trace:
#0 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(68): PDO->__construct(‘mysql:host=loca…’, ‘librenms’, ‘password’, Array)
#1 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\Database\Connectors\Connector->createPdoConnection(‘mysql:host=loca…’, ‘librenms’, ‘password’, Array)
#2 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\Database\Connectors\Connector->createConnection(‘mysql:host=loca…’, Array, Array)
#3 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(183): Illuminate\Database\Connectors\MySqlConnector->connect(Array)
#4 [internal function]: Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors{closure}()
#5 /opt/librenms/vendor/laravel/framework/src/Illuminate/Database/Connection.php(883): call_user_func(Object(Closure))
#6 /opt/librenms/LibreNMS/DB/Eloquent.php(110): Illuminate\Database\Connection->getPdo()
#7 /opt/librenms/LibreNMS/DB/Eloquent.php(96): LibreNMS\DB\Eloquent::isConnected()
#8 /opt/librenms/LibreNMS/DB/Eloquent.php(73): LibreNMS\DB\Eloquent::setStrictMode(false)
#9 /opt/librenms/includes/init.php(106): LibreNMS\DB\Eloquent::boot()
#10 /opt/librenms/alerts.php(31): require(’/opt/librenms/i…’)
#11 {main}

Can you make sure that you have properly set database settings in config.php?
validate.php does not return an error about DB so that’s a bit weird.

https://docs.librenms.org/Support/FAQ/#where-do-i-update-my-database-credentials

Yes sir , I also changed the permissions to 775, or the same screen

config.php

<?php ## Have a look in defaults.inc.php for examples of settings you can set here. DO NOT EDIT defaults.inc.php! ### Database config $config['db_host'] = 'localhost'; $config['db_port'] = '3306'; $config['db_user'] = 'librenms'; $config['db_pass'] = 'password'; $config['db_name'] = 'librenms'; $config['db_socket'] = ''; $config['user'] = 'librenms'; $config['snmp']['community'] = array("public"); $config['auth_mechanism'] = "mysql"; # default, other options: ldap, http-auth $config['fping'] = "/usr/sbin/fping"; #// This is the user LibreNMS will run as #//Please ensure this user is created and has the correct permissions to your install #$config['user'] = 'librenms'; ### Locations - it is recommended to keep the default #$config['install_dir'] = "/opt/librenms"; ### This should *only* be set if you want to *force* a particular hostname/port ### It will prevent the web interface being usable form any other hostname #$config['base_url'] = "http://librenms.company.com"; ### Enable this to use rrdcached. Be sure rrd_dir is within the rrdcached dir ### and that your web server has permission to talk to rrdcached. #$config['rrdcached'] = "unix:/var/run/rrdcached.sock"; ### Default community #$config['snmp']['community'] = array("public"); ### Authentication Model #$config['auth_mechanism'] = "mysql"; # default, other options: ldap, http-auth #$config['http_auth_guest'] = "guest"; # remember to configure this user if you use http-auth ### List of RFC1918 networks to allow scanning-based discovery #$config['nets'][] = "10.0.0.0/8"; #$config['nets'][] = "172.16.0.0/12"; #$config['nets'][] = "192.168.0.0/16"; # Update configuration #$config['update_channel'] = 'release'; # uncomment to follow the monthly release channel #$config['update'] = 0; # uncomment to completely disable updates

Hi Sir

Yes, the config.php and .env settings are the same

APP_KEY=

DB_HOST=localhost
DB_DATABASE=librenmsdb
DB_USERNAME=librenms
DB_PASSWORD=password

#APP_URL=
NODE_ID=5ba3520462dcd
DB_PORT=3306
LIBRENMS_USER=librenms