Hello guys,
I tried to install Icinga web 2 in CentOS, I got this error
Successfully connected to existing database "icingaweb2"...
Database schema already exists...
Login "root" already exists...
Required privileges were already granted to login "root".
The database has been fully set up!
General configuration could not be written to: /etc/icingaweb2/config.ini. An error occured:
ERROR: RuntimeException in /usr/share/php/Icinga/Util/File.php:39 with message: SplFileObject::__construct(/etc/icingaweb2/config.ini): failed to open stream: Permission denied
Authentication configuration could not be written to: /etc/icingaweb2/authentication.ini. An error occured:
ERROR: RuntimeException in /usr/share/php/Icinga/Util/File.php:39 with message: SplFileObject::__construct(/etc/icingaweb2/authentication.ini): failed to open stream: Permission denied
Unable to define account "icingaweb2admin" as initial administrator. An error occured:
ERROR: RuntimeException in /usr/share/php/Icinga/Util/File.php:39 with message: SplFileObject::__construct(/etc/icingaweb2/roles.ini): failed to open stream: Permission denied
User Group Backend configuration could not be written to: /etc/icingaweb2/groups.ini. An error occured:
ERROR: RuntimeException in /usr/share/php/Icinga/Util/File.php:39 with message: SplFileObject::__construct(/etc/icingaweb2/groups.ini): failed to open stream: Permission denied
Resource configuration could not be written to: /etc/icingaweb2/resources.ini. An error occured:
ERROR: RuntimeException in /usr/share/php/Icinga/Util/File.php:39 with message: SplFileObject::__construct(/etc/icingaweb2/resources.ini): failed to open stream: Permission denied
Monitoring backend configuration could not be written to: /etc/icingaweb2/modules/monitoring/backends.ini. An error occured:
ERROR: RuntimeException in /usr/share/php/Icinga/Util/File.php:97 with message: Failed to create missing directory "/etc/icingaweb2/modules/monitoring/" (mkdir(): Permission denied)
Resource configuration could not be udpated: /etc/icingaweb2/resources.ini. An error occured:
ERROR: RuntimeException in /usr/share/php/Icinga/Util/File.php:39 with message: SplFileObject::__construct(/etc/icingaweb2/resources.ini): failed to open stream: Permission denied
Command transport configuration could not be written to: /etc/icingaweb2/modules/monitoring/commandtransports.ini. An error occured:
ERROR: RuntimeException in /usr/share/php/Icinga/Util/File.php:97 with message: Failed to create missing directory "/etc/icingaweb2/modules/monitoring/" (mkdir(): Permission denied)
Monitoring security configuration could not be written to: /etc/icingaweb2/modules/monitoring/config.ini. An error occured:
ERROR: RuntimeException in /usr/share/php/Icinga/Util/File.php:97 with message: Failed to create missing directory "/etc/icingaweb2/modules/monitoring/" (mkdir(): Permission denied)
Module "monitoring" could not be enabled. An error occured:
ERROR: Icinga\Exception\SystemPermissionException in /usr/share/php/Icinga/Application/Modules/Manager.php:269 with message: Failed to create enabledModules directory "/etc/icingaweb2/enabledModules" (mkdir(): Permission denied)
Can you guys help me to know the issue here,
Thank’s in advance.