Created
January 11, 2017 18:17
-
-
Save carlwiedemann/304f2b2598bce6a64788c635ec7c92cf to your computer and use it in GitHub Desktop.
PHP7 on probo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Add php7 | |
plugin: Script | |
script: | | |
echo 'exit 0' > /usr/sbin/policy-rc.d | |
apt-get update | |
apt-get install -y software-properties-common language-pack-en-base | |
LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php | |
apt-get update | |
DEBIAN_FRONTEND=noninteractive apt-get install -y php7.0 libapache2-mod-php7.0 php7.0-gd php7.0-curl php7.0-json php7.0-mbstring php7.0-mysql php7.0-mcrypt php7.0-imagick php7.0-dev php7.0-gmp php7.0-xml php7.0-bcmath php7.0-redis php7.0-uploadprogress php7.0-soap php7.0-pgsql | |
cp /etc/php5/mods-available/general_settings.ini /etc/php/7.0/apache2/conf.d/20-general_settings.ini | |
a2dismod php5 | |
a2enmod php7.0 | |
a2enmod mpm_prefork | |
apache2ctl graceful | |
- name: opcache | |
plugin: Script | |
script: | | |
echo 'opcache.enable=1' >> /etc/php/7.0/mods-available/opcache.ini | |
echo 'opcache.enable_cli=1' >> /etc/php/7.0/mods-available/opcache.ini | |
echo 'opcache.memory_consumption=192' >> /etc/php/7.0/mods-available/opcache.ini | |
echo 'opcache.interned_strings_buffer=16' >> /etc/php/7.0/mods-available/opcache.ini | |
echo 'opcache.max_accelerated_files=3907' >> /etc/php/7.0/mods-available/opcache.ini | |
echo 'opcache.validate_timestamps=0' >> /etc/php/7.0/mods-available/opcache.ini | |
echo 'opcache.fast_shutdown=1' >> /etc/php/7.0/mods-available/opcache.ini | |
apache2ctl graceful |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment