We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd248e0 commit 0b949c8Copy full SHA for 0b949c8
misc/tools.func
@@ -451,14 +451,16 @@ function setup_php() {
451
MODULE_LIST+=" php${PHP_VERSION}-fpm"
452
fi
453
if [[ "$PHP_APACHE" == "YES" ]]; then
454
- $STD apt-get install -y apache2
+ $STD apt-get install -y apache2 libapache2-mod-php${PHP_VERSION}
455
$STD systemctl restart apache2 || true
456
457
458
if [[ "$PHP_APACHE" == "YES" ]] && [[ -n "$CURRENT_PHP" ]]; then
459
if [[ -f /etc/apache2/mods-enabled/php${CURRENT_PHP}.load ]]; then
460
$STD a2dismod php${CURRENT_PHP} || true
461
462
+ $STD a2enmod php${PHP_VERSION}
463
+ $STD systemctl restart apache2 || true
464
465
466
if [[ "$PHP_FPM" == "YES" ]] && [[ -n "$CURRENT_PHP" ]]; then
0 commit comments