public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/php] private-php86: improve comment about mod_php being deprecated
@ 2026-11-27  7:28 Remi Collet
  0 siblings, 0 replies; only message in thread
From: Remi Collet @ 2026-11-27  7:28 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/php
Branch : private-php86
Commit : 45b145421bd286e0344db3f8f00bf10f6f51ca0c
Author : Remi Collet <remi@fedoraproject.org>
Date   : 2017-11-17T08:26:13+01:00
Stats  : +19/-12 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/php/c/45b145421bd286e0344db3f8f00bf10f6f51ca0c?branch=private-php86

Log:
improve comment about mod_php being deprecated

---
diff --git a/php.conf b/php.conf
index 2eb6a28..8585837 100644
--- a/php.conf
+++ b/php.conf
@@ -16,7 +16,26 @@ AddType text/html .php
 #
 DirectoryIndex index.php
 
+#
+# Redirect to local php-fpm (no mod_php in default configuration)
+#
+<IfModule !mod_php5.c>
+  <IfModule !mod_php7.c>
+    # Enable http authorization headers
+    SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
+
+    <FilesMatch \.(php|phar)$>
+        SetHandler "proxy:unix:/run/php-fpm/www.sock|fcgi://localhost"
+    </FilesMatch>
+  </IfModule>
+</IfModule>
+
+#
+# mod_php is deprecated as FPM is now used by default with httpd in event mode
+# mod_php is only used when explicitly enabled or httpd switch to prefork mode
+#
 # mod_php options
+#
 <IfModule  mod_php7.c>
     #
     # Cause the PHP interpreter to handle files with a .php extension.
@@ -43,15 +62,3 @@ DirectoryIndex index.php
 
     #php_value opcache.file_cache   "/var/lib/php/opcache"
 </IfModule>
-
-# Redirect to local php-fpm if mod_php is not available
-<IfModule !mod_php5.c>
-  <IfModule !mod_php7.c>
-    # Enable http authorization headers
-    SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
-
-    <FilesMatch \.(php|phar)$>
-        SetHandler "proxy:unix:/run/php-fpm/www.sock|fcgi://localhost"
-    </FilesMatch>
-  </IfModule>
-</IfModule>

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-27  7:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-27  7:28 [rpms/php] private-php86: improve comment about mod_php being deprecated Remi Collet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox