Skip to content

Commit

Permalink
fix: Ensure php8.2-fpm service is correctly enabled and restarted (#1952
Browse files Browse the repository at this point in the history
)
  • Loading branch information
PanisSupraOmnia authored Feb 12, 2024
1 parent 155f41f commit 5125ef3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions scripts/features/php8.2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ fi

export DEBIAN_FRONTEND=noninteractive

SERVICE_STATUS=$(systemctl is-enabled php8.2-fpm.service)

if [ "$SERVICE_STATUS" == "disabled" ];
then
systemctl enable php8.2-fpm
service php8.2-fpm restart
fi

if [ -f /home/$WSL_USER_NAME/.homestead-features/php82 ]
then
echo "PHP 8.2 already installed."
Expand Down Expand Up @@ -60,3 +68,6 @@ sed -i "s/group = www-data/group = vagrant/" /etc/php/8.2/fpm/pool.d/www.conf
sed -i "s/listen\.owner.*/listen.owner = vagrant/" /etc/php/8.2/fpm/pool.d/www.conf
sed -i "s/listen\.group.*/listen.group = vagrant/" /etc/php/8.2/fpm/pool.d/www.conf
sed -i "s/;listen\.mode.*/listen.mode = 0666/" /etc/php/8.2/fpm/pool.d/www.conf

systemctl enable php8.2-fpm
service php8.2-fpm restart

0 comments on commit 5125ef3

Please sign in to comment.