Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure php8.2-fpm service is properly enabled and restarted #1952

Merged
merged 1 commit into from
Feb 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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