Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Commit 5125ef3

Browse files
fix: Ensure php8.2-fpm service is correctly enabled and restarted (#1952)
1 parent 155f41f commit 5125ef3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

scripts/features/php8.2.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ fi
1010

1111
export DEBIAN_FRONTEND=noninteractive
1212

13+
SERVICE_STATUS=$(systemctl is-enabled php8.2-fpm.service)
14+
15+
if [ "$SERVICE_STATUS" == "disabled" ];
16+
then
17+
systemctl enable php8.2-fpm
18+
service php8.2-fpm restart
19+
fi
20+
1321
if [ -f /home/$WSL_USER_NAME/.homestead-features/php82 ]
1422
then
1523
echo "PHP 8.2 already installed."
@@ -60,3 +68,6 @@ sed -i "s/group = www-data/group = vagrant/" /etc/php/8.2/fpm/pool.d/www.conf
6068
sed -i "s/listen\.owner.*/listen.owner = vagrant/" /etc/php/8.2/fpm/pool.d/www.conf
6169
sed -i "s/listen\.group.*/listen.group = vagrant/" /etc/php/8.2/fpm/pool.d/www.conf
6270
sed -i "s/;listen\.mode.*/listen.mode = 0666/" /etc/php/8.2/fpm/pool.d/www.conf
71+
72+
systemctl enable php8.2-fpm
73+
service php8.2-fpm restart

0 commit comments

Comments
 (0)