xiidea / ezRbac

A simple yet easy to implement Role Based Access Control Library for popular PHP framework Codeigniter
http://xiidea.github.io/ezRbac/
86 stars 39 forks source link

Installation Error #33

Closed tejkweku closed 5 years ago

tejkweku commented 5 years ago

I have tried installing the ezRbac pakcage in my CodeIgniter -3.1.10 installation by following the 5-step procedure. However, I receive this error anytime I try to access any URL after the installing the package (including http://{server_name}/{project_name}/index.php/welcome/index/rbac/gui)

ezRbac install error

I request how to go about fixing this issue. Thanks.

ronisaha commented 5 years ago

It is related to your db configuration. Try to access database from your application, without using this library. If everything works, then use this library.

solution by guessing: Change dns value from application/config/database.php

'dsn'   => 'host=DB_HOST;dbname=DATABASE_NAME',

to

'dsn'   => 'mysql:host=DB_HOST;dbname=DATABASE_NAME',