Skip to content

Commit

Permalink
Update PHP FCGID wrapper for 7.4
Browse files Browse the repository at this point in the history
Adds a check to see whether we've got 7.3 or 7.4 for transition to
Bullseye.
  • Loading branch information
sagepe committed Mar 7, 2024
1 parent adbf94f commit c74187f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion web/fcgi/php-basic
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#!/bin/sh
PHP_FCGI_CHILDREN=0 PHPRC=/etc/php/7.3/fcgi exec /usr/bin/php-cgi -d apc.enabled=1
if [ -e "/etc/php/7.4/fcgi" ]; then
PHP_FCGI_CHILDREN=0 PHPRC=/etc/php/7.4/fcgi exec /usr/bin/php-cgi -d apc.enabled=1
elif [ -e "/etc/php/7.3/fcgi" ]; then
PHP_FCGI_CHILDREN=0 PHPRC=/etc/php/7.3/fcgi exec /usr/bin/php-cgi -d apc.enabled=1
fi

0 comments on commit c74187f

Please sign in to comment.