I searched this forum several times with different search terms and still have not found the answer to this (although I found a post that said the user used chmod and chown extensively and got it to work but didn't say where, what or how)
I have not run a web server on unix since the 90s and so I'm not completely clear that I'm not missing something here.
I am on centos 7 with apache (2.4.6) and mariadb(MySQL) and used the package install of icinga2, maria and icingaweb2 following these directions:
http://docs.icinga.org/icinga2/latest/do…getting-started
https://github.com/Icinga/icingaweb2/blo…installation.md
I followed both sets of directions twice. Plus I did a lot of chgrp and chmod on pretty much any icinga folder and file I could find, so if I have missed a step i'd be a bit surprised, but not uncommonly so. I am getting the following message from /icingaweb2/setup
The directory /etc/icingaweb2 is not writable.
I started by verifiying the groups on my apache user
The ownership and write ability of the specific folder is as follows:
and within the directory I see the following:
and when I go to each successive directory the permissions continue to be 666 or 777
The generated icingweb2.conf file is unmodified from what was generated by icingacli using this command (I tried copying in to the post but some of the xml tags are getting swallowed.)
It definitely contains the SetEnv ICINGAWEB_CONFIGDIR and the variable is set to /etc/icingaweb2
I checked the /etc/httpd/conf.d/icingaweb2.conf and found no issues I could see. The file itself has following permissions.
everything in public has same owner and group and is 777....
If anybody can help me get past this problem, I'd really appreciate it. Any link to further documentation would also help, mostly what i'm seeing in my google and portal searches is that this particular problem gets solved outside of the forum. So I do apologize for asking a question that I should probably already know how to fix.
I have not run a web server on unix since the 90s and so I'm not completely clear that I'm not missing something here.
I am on centos 7 with apache (2.4.6) and mariadb(MySQL) and used the package install of icinga2, maria and icingaweb2 following these directions:
http://docs.icinga.org/icinga2/latest/do…getting-started
https://github.com/Icinga/icingaweb2/blo…installation.md
I followed both sets of directions twice. Plus I did a lot of chgrp and chmod on pretty much any icinga folder and file I could find, so if I have missed a step i'd be a bit surprised, but not uncommonly so. I am getting the following message from /icingaweb2/setup
The directory /etc/icingaweb2 is not writable.
I started by verifiying the groups on my apache user
![]() |
Quellcode |
1 2 3 |
id apache uid=48(apache) gid=48(apache) groups=48(apache),995(icingacmd),994(icingaweb2) |
The ownership and write ability of the specific folder is as follows:
![]() |
Quellcode |
1 2 |
ls -lad icingaweb2 drwxrwsrwx. 3 root icingaweb2 38 Dec 10 14:56 icingaweb2 |
and within the directory I see the following:
![]() |
Quellcode |
1 2 3 4 5 6 |
ls -la total 16 drwxrwsrwx. 3 root icingaweb2 38 Dec 10 14:56 . drwxr-xr-x. 90 root root 8192 Dec 11 16:34 .. drwxrwsrwx. 4 root icingaweb2 36 Dec 10 14:40 modules -rw-rw-rw-. 1 root icingaweb2 16 Dec 10 14:56 setup.token |
and when I go to each successive directory the permissions continue to be 666 or 777
The generated icingweb2.conf file is unmodified from what was generated by icingacli using this command (I tried copying in to the post but some of the xml tags are getting swallowed.)
![]() |
Quellcode |
1 |
icingacli setup config webserver apache --document-root /usr/share/icingaweb2/public > /etc/httpd/conf.d/icingaweb2.conf |
It definitely contains the SetEnv ICINGAWEB_CONFIGDIR and the variable is set to /etc/icingaweb2
I checked the /etc/httpd/conf.d/icingaweb2.conf and found no issues I could see. The file itself has following permissions.
![]() |
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 |
ls -lad /usr/share/icingaweb2 drwxrwxrwx. 7 root icingaweb2 75 Dec 10 14:40 /usr/share/icingaweb2 ls -la /usr/share/icingaweb2 total 12 drwxrwxrwx. 7 root icingaweb2 75 Dec 10 14:40 . drwxr-xr-x. 96 root root 4096 Dec 10 14:40 .. drwxrwxrwx. 9 root icingaweb2 4096 Dec 10 14:40 application drwxrwxrwx. 4 root icingaweb2 4096 Dec 10 14:40 doc drwxrwxrwx. 3 root icingaweb2 19 Dec 10 14:38 library drwxrwxrwx. 7 root icingaweb2 76 Dec 10 14:40 modules drwxrwxrwx. 5 root icingaweb2 78 Dec 10 14:40 public |
everything in public has same owner and group and is 777....
If anybody can help me get past this problem, I'd really appreciate it. Any link to further documentation would also help, mostly what i'm seeing in my google and portal searches is that this particular problem gets solved outside of the forum. So I do apologize for asking a question that I should probably already know how to fix.