Commit fc95ed7e authored by Christian Kuhn's avatar Christian Kuhn
Browse files

[TASK] No longer compile apcu+apcu-bc in php70, use ondrej for php71

parent 2a16c193
#!/bin/bash
set -e
source /pd_build/buildconfig
set -x
minimal_apt_get_install \
make \
re2c \
php7.0-dev \
#
cd /usr/local/src/
git clone https://github.com/krakjoe/apcu.git
cd apcu
phpize
./configure
make
make install
cd ../
git clone https://github.com/krakjoe/apcu-bc.git
cd apcu-bc
phpize
./configure
make
make install
echo "extension=apcu.so" > /etc/php/7.0/mods-available/apcu.ini
echo "apc.enable_cli=1" >> /etc/php/7.0/mods-available/apcu.ini
echo "apc.slam_defense=0" >> /etc/php/7.0/mods-available/apcu.ini
echo "extension=apc.so" > /etc/php/7.0/mods-available/apc.ini
ln -s /etc/php/7.0/mods-available/apcu.ini /etc/php/7.0/cli/conf.d/20-apcu.ini
# apc-bc module must be loaded *after* apcu, have a higher integer in front to enforce this
ln -s /etc/php/7.0/mods-available/apc.ini /etc/php/7.0/cli/conf.d/21-apc.ini
......@@ -5,6 +5,7 @@ set -x
minimal_apt_get_install \
build-essential \
php-apcu \
php7.0 \
php7.0-bcmath \
php7.0-bz2 \
......@@ -30,8 +31,6 @@ minimal_apt_get_install \
php7.0-xmlrpc \
php7.0-xsl \
php7.0-zip \
php7.0-apcu \
php7.0-apcu-bc \
php-redis \
php-memcached \
php-xdebug \
......@@ -41,8 +40,6 @@ minimal_apt_get_install \
## Enable phar writing
sed -i s/';phar.readonly = On'/'phar.readonly = Off'/ /etc/php/7.0/cli/php.ini
# /pd_build/php-apcu.sh
# mssql driver
pecl install sqlsrv
echo extension=sqlsrv.so >> /etc/php/7.0/mods-available/sqlsrv.ini
......
#!/bin/bash
set -e
source /pd_build/buildconfig
set -x
minimal_apt_get_install \
make \
re2c \
php7.1-dev \
#
cd /usr/local/src/
git clone https://github.com/krakjoe/apcu.git
cd apcu
phpize
./configure
make
make install
cd ../
git clone https://github.com/krakjoe/apcu-bc.git
cd apcu-bc
phpize
./configure
make
make install
echo "extension=apcu.so" > /etc/php/7.1/mods-available/apcu.ini
echo "apc.enable_cli=1" >> /etc/php/7.1/mods-available/apcu.ini
echo "apc.slam_defense=0" >> /etc/php/7.1/mods-available/apcu.ini
echo "extension=apc.so" > /etc/php/7.1/mods-available/apc.ini
ln -s /etc/php/7.1/mods-available/apcu.ini /etc/php/7.1/cli/conf.d/20-apcu.ini
# apc-bc module must be loaded *after* apcu, have a higher integer in front to enforce this
ln -s /etc/php/7.1/mods-available/apc.ini /etc/php/7.1/cli/conf.d/21-apc.ini
......@@ -4,12 +4,16 @@ source /pd_build/buildconfig
set -x
minimal_apt_get_install \
make \
php-apcu \
php-apcu-bc \
php7.1 \
php7.1-bcmath \
php7.1-bz2 \
php7.1-cli \
php7.1-common \
php7.1-curl \
php7.1-dev \
php7.1-gd \
php7.1-gmp \
php7.1-imap \
......@@ -31,11 +35,11 @@ minimal_apt_get_install \
php-redis \
php-memcached \
php-xdebug \
re2c \
#
## Enable phar writing
sed -i s/';phar.readonly = On'/'phar.readonly = Off'/ /etc/php/7.1/cli/php.ini
/pd_build/php-apcu.sh
/pd_build/php-finalize.sh
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment