mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-20 10:34:30 +00:00
apache: Handle transition to php 7.4
Directory /etc/php/7.4 became available before php7.4-fpm became available. Handle this by checking the run time socket of the fpm daemon instead of the directory. Discussed and tested in https://discuss.freedombox.org/t/mediawiki-service-unavailable/711/23 Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
296f6dbe85
commit
2ed47b047d
@ -14,30 +14,18 @@
|
|||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
<FilesMatch ".+\.ph(ar|p|tml)$">
|
<FilesMatch ".+\.ph(ar|p|tml)$">
|
||||||
<IfFile /etc/php/7.3>
|
<If "-e '/run/php/php-fpm.sock'">
|
||||||
SetHandler "proxy:unix:/run/php/php7.3-fpm.sock|fcgi://localhost"
|
SetHandler "proxy:unix:/run/php/php-fpm.sock|fcgi://localhost"
|
||||||
</IfFile>
|
</If>
|
||||||
<IfFile /etc/php/7.4>
|
<ElseIf "-e '/run/php/php7.4-fpm.sock'">
|
||||||
SetHandler "proxy:unix:/run/php/php7.4-fpm.sock|fcgi://localhost"
|
SetHandler "proxy:unix:/run/php/php7.4-fpm.sock|fcgi://localhost"
|
||||||
</IfFile>
|
</ElseIf>
|
||||||
<IfFile /etc/php/7.5>
|
<ElseIf "-e '/run/php/php7.3-fpm.sock'">
|
||||||
SetHandler "proxy:unix:/run/php/php7.5-fpm.sock|fcgi://localhost"
|
SetHandler "proxy:unix:/run/php/php7.3-fpm.sock|fcgi://localhost"
|
||||||
</IfFile>
|
</ElseIf>
|
||||||
<IfFile /etc/php/7.6>
|
<Else>
|
||||||
SetHandler "proxy:unix:/run/php/php7.6-fpm.sock|fcgi://localhost"
|
Require all denied
|
||||||
</IfFile>
|
</Else>
|
||||||
<IfFile /etc/php/8.0>
|
|
||||||
SetHandler "proxy:unix:/run/php/php8.0-fpm.sock|fcgi://localhost"
|
|
||||||
</IfFile>
|
|
||||||
<IfFile /etc/php/8.1>
|
|
||||||
SetHandler "proxy:unix:/run/php/php8.1-fpm.sock|fcgi://localhost"
|
|
||||||
</IfFile>
|
|
||||||
<IfFile /etc/php/8.2>
|
|
||||||
SetHandler "proxy:unix:/run/php/php8.2-fpm.sock|fcgi://localhost"
|
|
||||||
</IfFile>
|
|
||||||
<IfFile /etc/php/8.3>
|
|
||||||
SetHandler "proxy:unix:/run/php/php8.3-fpm.sock|fcgi://localhost"
|
|
||||||
</IfFile>
|
|
||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
<FilesMatch ".+\.phps$">
|
<FilesMatch ".+\.phps$">
|
||||||
# Deny access to raw php sources by default
|
# Deny access to raw php sources by default
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user