Skip to content

Commit 4d5ce01

Browse files
committed
Fix php.ini path on multiphp setup
1 parent 9c74bcc commit 4d5ce01

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/v-list-sys-php-config

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ csv_list() {
6262
config_path=$(find /etc/php* -name php.ini)
6363
config_count=$(echo "$config_path" |wc -l)
6464
if [ "$config_count" -gt 1 ]; then
65-
if [ "$WEB_SYSTEM" = "nginx" ]; then
65+
multiphp_versions=$(ls -d /etc/php/*/fpm/pool.d 2>/dev/null |wc -l)
66+
if [ "$WEB_BACKEND" = 'php-fpm' ] || [ "$multiphp_versions" -gt 0 ] ; then
6667
config_path=$(echo "$config_path"| grep fpm)
6768
else
6869
config_path=$(echo "$config_path"| grep apache)

0 commit comments

Comments
 (0)