Skip to content

Commit 6d1813e

Browse files
author
Alexander Paliarush
committed
Added installation of missing PHP 7.0 packages
1 parent 46e2ada commit 6d1813e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

scripts/vagrant/install_magento_environment.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ apt-get install -y git
1313
# Setup Apache
1414
apt-get install -y apache2
1515
a2enmod rewrite
16+
a2dismod mpm_event
17+
a2enmod mpm_prefork
1618
# Make sure Apache is run from 'vagrant' user to avoid permission issues
1719
sed -i 's|www-data|vagrant|g' /etc/apache2/envvars
1820

@@ -21,7 +23,13 @@ sed -i 's|www-data|vagrant|g' /etc/apache2/envvars
2123
apt-get install -y language-pack-en-base
2224
LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
2325
apt-get update
24-
apt-get install -y php7.0 php7.0-mcrypt php7.0-curl php7.0-cli php7.0-mysql php7.0-gd php7.0-intl php7.0-xsl
26+
27+
# TODO: Install PHP 5.6 and disable it by default
28+
29+
# Install PHP 7.0 and enable it by default
30+
apt-get install -y php7.0 php7.0-mcrypt php7.0-curl php7.0-cli php7.0-mysql php7.0-gd php7.0-intl php7.0-xsl php7.0-bcmath php7.0-mbstring php7.0-soap php7.0-zip libapache2-mod-php7.0
31+
a2enmod php7.0
32+
2533
# Install XDebug
2634
apt-get install -y php7.0-dev
2735
cd /usr/lib

0 commit comments

Comments
 (0)