mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-07-09 23:47:38 +00:00
tools.func: fix an bug while php libapache2-mod breaks (#5857)
This commit is contained in:
@ -451,7 +451,7 @@ function setup_php() {
|
|||||||
MODULE_LIST+=" php${PHP_VERSION}-fpm"
|
MODULE_LIST+=" php${PHP_VERSION}-fpm"
|
||||||
fi
|
fi
|
||||||
if [[ "$PHP_APACHE" == "YES" ]]; then
|
if [[ "$PHP_APACHE" == "YES" ]]; then
|
||||||
$STD apt-get install -y apache2
|
$STD apt-get install -y apache2 libapache2-mod-php${PHP_VERSION}
|
||||||
$STD systemctl restart apache2 || true
|
$STD systemctl restart apache2 || true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -459,6 +459,8 @@ function setup_php() {
|
|||||||
if [[ -f /etc/apache2/mods-enabled/php${CURRENT_PHP}.load ]]; then
|
if [[ -f /etc/apache2/mods-enabled/php${CURRENT_PHP}.load ]]; then
|
||||||
$STD a2dismod php${CURRENT_PHP} || true
|
$STD a2dismod php${CURRENT_PHP} || true
|
||||||
fi
|
fi
|
||||||
|
$STD a2enmod php${PHP_VERSION}
|
||||||
|
$STD systemctl restart apache2 || true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$PHP_FPM" == "YES" ]] && [[ -n "$CURRENT_PHP" ]]; then
|
if [[ "$PHP_FPM" == "YES" ]] && [[ -n "$CURRENT_PHP" ]]; then
|
||||||
|
Reference in New Issue
Block a user