Help/Ansible/Skripty/php_enabled_status
2025-05-29 21:55:04 +02:00

6 lines
268 B
Bash
Executable File

#!/bin/bash
phpversion=`systemctl | grep running | grep php | grep fpm | cut -d "-" -f 1 | cut -b 6-8`
sed -i 's/\;ping.path/ping.path/' /etc/php/`echo $phpversion`/fpm/pool.d/www.conf
sed -i 's/\;pm.status/pm.status/' /etc/php/`echo $phpversion`/fpm/pool.d/www.conf