# Bug report: RHEL 8 Apache/PHP-FPM misconfiguration

**URL:** <https://community.icinga.com/t/bug-report-rhel-8-apache-php-fpm-misconfiguration/5319>\
**Category:** Icinga Web\
**Tags:** icingaweb2\
**Created:** [August 19, 2020, 7:16pm UTC](https://community.icinga.com/t/bug-report-rhel-8-apache-php-fpm-misconfiguration/5319 "2020-08-19T19:16:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamesh](https://community.icinga.com/letter_avatar_proxy/v4/letter/j/3d9bf3/32.png) [@jamesh](https://community.icinga.com/u/jamesh)\
**Post date:** [August 19, 2020, 7:16pm UTC](https://community.icinga.com/t/bug-report-rhel-8-apache-php-fpm-misconfiguration/5319/1 "2020-08-19T19:16:59Z")

</div>

Hello,

While installing Icinga Web on RHEL 8 using Apache httpd as my web server with PHP-FPM as recommended in the installation documentation, I encountered a problem. By default, the PHP-FPM installed as a dependency on RHEL 8 from the stock repos by running `dnf install icingaweb2 icingacli` listens on a Unix domain socket at/run/php-fpm/www.sock, whereas the supplied Apache configuration expects it to be listening on localhost:9000; see line 54 of /etc/httpd/conf.d/icingaweb2.conf, which reads:

SetHandler “proxy:fcgi://127.0.0.1:9000”

To work out of the box, it should be:

SetHandler “proxy:unix:/run/php-fpm/www.sock|fcgi://localhost/”

Alternately, I suppose an alternate PHP-FPM configuration could be supplied, but I didn’t research that option; anyway using the default Unix-domain socket is likely to be more performant, though I haven’t measured it at all. Thanks and please let me know if I need to follow this up or file this report elsewhere.

---

<div class="post-metadata">

**Author:** ![nilmerg](https://community.icinga.com/user_avatar/community.icinga.com/nilmerg/32/277_2.png) [@nilmerg](https://community.icinga.com/u/nilmerg)\
**Post date:** [August 20, 2020, 6:23am UTC](https://community.icinga.com/t/bug-report-rhel-8-apache-php-fpm-misconfiguration/5319/2 "2020-08-20T06:23:01Z")

</div>

Hi, thanks for the report! Please open an issue in our issue tracker for [packages.icinga.com](http://packages.icinga.com): [https://github.com/icinga/icinga-packaging/issues](https://github.com/icinga/icinga-packaging/issues)
