public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/php] private-php86: fix conf (mod_php not built / used)
@ 2026-11-27  7:32 Remi Collet
  0 siblings, 0 replies; only message in thread
From: Remi Collet @ 2026-11-27  7:32 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/php
            Branch : private-php86
            Commit : f3afad23d2a8e5520dfe82b6ffc378fc5a7e64d9
            Author : Remi Collet <remi@fedoraproject.org>
            Date   : 2022-06-09T10:19:52+02:00
            Stats  : +7/-8 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/php/c/f3afad23d2a8e5520dfe82b6ffc378fc5a7e64d9?branch=private-php86

            Log:
            fix conf (mod_php not built / used)

(cherry picked from commit 74e575ddb5d7c89f4d34633ad33027be7011f3eb)

---
diff --git a/php.conf b/php.conf
index 8585837..639652b 100644
--- a/php.conf
+++ b/php.conf
@@ -19,15 +19,13 @@ DirectoryIndex index.php
 #
 # Redirect to local php-fpm (no mod_php in default configuration)
 #
-<IfModule !mod_php5.c>
-  <IfModule !mod_php7.c>
+<IfModule !mod_php.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>
 
 #
@@ -36,7 +34,7 @@ DirectoryIndex index.php
 #
 # mod_php options
 #
-<IfModule  mod_php7.c>
+<IfModule  mod_php.c>
     #
     # Cause the PHP interpreter to handle files with a .php extension.
     #

diff --git a/php.modconf b/php.modconf
index 3377f72..966dbfe 100644
--- a/php.modconf
+++ b/php.modconf
@@ -3,10 +3,11 @@
 # easy for developers to write dynamically generated webpages.
 #
 
-# Cannot load both php5 and php7 modules
+# Cannot load both php5, php7 and php modules
 <IfModule !mod_php5.c>
-  <IfModule prefork.c>
-    LoadModule php7_module modules/libphp7.so
+  <IfModule !mod_php7.c>
+    <IfModule prefork.c>
+      LoadModule php7_module modules/libphp7.so
+    </IfModule>
   </IfModule>
 </IfModule>
-

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

only message in thread, other threads:[~2026-11-27  7:32 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:32 [rpms/php] private-php86: fix conf (mod_php not built / used) Remi Collet

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