Web Setup - URL and access

Hi All,

New here and newly setting up a CENT OS 8 Stream Monitoring Server.

I have been following the standard guide on the Icinga website (https://icinga.com/docs/icinga-web-2/latest/doc/02-Installation/#installation) and has been going ok, I have however gotten to this part of trying to access via the web, I try the following:

http://IPAddressHere/icingaweb2/setup

And get met with “Not found” The requested URL was not found on this server.

I have installed Apache web server and appears to be running via the Chrome Browser > IPAddress

Icinga --version = 2.12.3

Php --version = 7.1.24

At this point I am not sure how to access the GUI of this and not sure if I have missed something or need to do something, any help would be greatly appreciated and I hope I have provided enough details.

Many thanks!

UPDATE:

I rebooted the Server and then retried the http://IPAddressHere/icingaweb2/setup and it now displays the web interface.

Not sure why a reboot was required though, any thoughts?

UPDATE:

I finished the installation, and for the final GUI config section I referred to this helpful guide:

https://www.itzgeek.com/post/how-to-setup-icinga-web-2-on-centos-8-rhel-8

Hello I have the same problem after installing on RHEL9 (with subscription).
Apache OK,…
http://myip/icingaweb2/setup → not found
this directory is empty !!! /var/www/html/ ??
Did I miss a step in the installation ? Why nothing, no files on the apache web server

Thanks for advice !!

Did you tell Apache to reread the configuration?

Why should there by anything in /var/www/html/?
Most of the time it’s only used for personal experiments and static placeholder pages.

In your /etc/httpd/sites-enabled/icingaweb2 or something like that, it should be declared, what Apache is supposed to do if a browser requests a page under http://myip/icingaweb2.

Maybe retrace your steps trough the icingaweb2 install instructions or go the other way and trace the request from the browser, trough the server config, the php config and down to the code files.

Thanks for reply, yes right about /var/www…

under /etc/httpd/ nothing about icingaweb2 neither !

ls /etc/httpd/
conf  conf.d  conf.modules.d  logs  modules  run  state

I do not remember have it declared… I already reinstalled icngawebdb / icingaweb2.
I still dig around…

Try grep -r icinga /etc/httpd/

I guess, you’re stuck at:
https://icinga.com/docs/icinga-web/latest/doc/02-Installation/04-RHEL/#install-the-web-server

I can’t help much more as I utilize the Ansible roles of the Linuxfabrik for deployments. Maybe you can read trough it to figure out, what’s missing.

Ansible is quite readable as it’s a step by step declaration of states of packages, services, config files etc.

I previousely did the steps related to the link (webserver) !

Indeed I can find some icinga keyword there

grep -r icinga /etc/httpd/
/etc/httpd/conf.d/icingaweb2.conf:Alias /icingaweb2 "/usr/share/icingaweb2/public"
/etc/httpd/conf.d/icingaweb2.conf:<Directory "/usr/share/icingaweb2/public">
/etc/httpd/conf.d/icingaweb2.conf:    SetEnv ICINGAWEB_CONFIGDIR "/etc/icingaweb2"
/etc/httpd/conf.d/icingaweb2.conf:        RewriteBase /icingaweb2/
/etc/httpd/conf.d/icingaweb2.conf:        ErrorDocument 404 /icingaweb2/error_norewrite.html

but don’t know how to link them with php, apache,… looks like it is only a .conf file, but physically not the pages…
thanks for the clue anyway.

Can you also tell me more about ansible step by step, how to set it up, any link,… sounds good :slight_smile:

/etc/httpd/conf.d/icingaweb2.conf is also fine and should work.
The first line above states that all /icinagweb2 is actually /usr/share/icingaweb2/public so now you know where the pages are coming from.

Did you setup php-fpm?
Do you see anything related to icingaweb2 in the apache/httpd logs?

Ansible is packaged by most distributions, so you can just install it.
First you need to build your inventory and then you can run add-hock or playbooks against your machines.

https://docs.ansible.com/ansible/latest/getting_started/index.html