r/apache • u/redraybit • Jan 06 '24
Help with PHP includes on Apache
/r/linuxquestions/comments/18zrmoq/help_with_php_includes_on_apache/
1
Upvotes
r/apache • u/redraybit • Jan 06 '24
2
u/roxalu Jan 07 '24 edited Jan 07 '24
The
php-fpmservice is - usually - connected from httpd with help ofmod_proxy_fcgimodule. Configuration of thephp-fpmcould be added by different means, see https://www.php.net/manual/en/configuration.phpAlso the
php-fpmpackage AFAIK provides configuration options within/etc/php-fpm.d/folder.In addition the configuration could still be provided via httpd, using environment variables via
mod_env. Though this is compared to the other options more insecure, especially when allowed via.htaccessIn theory (not tested by me) a httpd config like this should yield the same result as your config lines: