xref: /imagick/docker/installPHP.sh (revision 522b27ee)
1#!/usr/bin/env bash
2
3
4set -e
5set -x
6
7# git clone https://github.com/php/php-src
8
9SRCFILE="php-7.2.11"
10SRCFILE="php-7.1.24"
11
12mkdir -p /var/app/php_src/${SRCFILE}
13tar -xzf /var/app/php_src/${SRCFILE}.tar.gz -C /var/app/php_src/${SRCFILE} --strip-components=1
14
15cd /var/app/php_src/${SRCFILE}
16
17# ./buildconf
18# ./configure --disable-all --without-pear
19./configure \
20  --without-pear \
21  --without-sqlite3 \
22  --without-pdo-sqlite \
23  --with-openssl \
24  --enable-mbstring \
25  --with-curl
26
27
28
29
30make -j 4
31
32make install
33
34
35export TEST_PHP_EXECUTABLE=`which php`
36
37# echo "extension=imagick.so" > /usr/local/lib/php.ini