Commit 29e6eb9d authored by Christian Kuhn's avatar Christian Kuhn
Browse files

[TASK] Compile php53

parent 1a443421
......@@ -7,6 +7,6 @@ set -x
/pd_build/mysql.sh
/pd_build/redis-server.sh
/pd_build/memcached.sh
#/pd_build/php.sh
/pd_build/php.sh
/pd_build/finalize.sh
#!/bin/bash
set -e
source /pd_build/buildconfig
set -x
## This script is to be run after php.sh.
## Install common tools
minimal_apt_get_install \
graphicsmagick \
zip \
unzip \
#
# Install composer
curl -sSL https://getcomposer.org/download/1.1.2/composer.phar -o /usr/bin/composer
chmod +x /usr/bin/composer
......@@ -3,37 +3,197 @@ set -e
source /pd_build/buildconfig
set -x
cd /usr/local/src/
minimal_apt_get_install \
php5.5 \
php5.5-bcmath \
php5.5-bz2 \
php5.5-cli \
php5.5-common \
php5.5-curl \
php5.5-gd \
php5.5-gmp \
php5.5-imap \
php5.5-intl \
php5.5-json \
php5.5-mbstring \
php5.5-mcrypt \
php5.5-mysql \
php5.5-opcache \
php5.5-pgsql \
php5.5-pspell \
php5.5-readline \
php5.5-recode \
php5.5-sqlite3 \
php5.5-xml \
php5.5-xmlrpc \
php5.5-xsl \
php5.5-zip \
php-redis \
php-memcached \
php-xdebug \
graphicsmagick \
zip \
unzip \
make \
gcc \
autoconf \
bison \
re2c \
file \
flex \
mcrypt \
aspell \
bsdmainutils \
libxpm-dev \
libsasl2-dev \
libpspell-dev \
libreadline-dev \
libaspell-dev \
libxml2 \
libxml2-dev \
libbz2-dev \
libzip-dev \
libzip4 \
zlib1g \
zlib1g-dev \
libcurl4-openssl-dev \
libcurl3 \
libcurl3-gnutls \
libc-client-dev \
libfreetype6 \
libfreetype6-dev \
libpng12-0 \
libpng12-dev \
libmcrypt-dev \
libmcrypt4 \
libtidy-dev \
libxslt1-dev \
libgnutls-dev \
krb5-multidev \
libapparmor-dev \
libapr1 \
libapr1-dev \
libaprutil1 \
libaprutil1-dev \
libarchive-zip-perl \
libasprintf0v5 \
libbsd-dev \
libcroco3 \
libct4 \
libdb-dev \
libdb5.3-dev \
libelf1 \
libexpat1-dev \
libfontconfig1-dev \
libgcrypt11-dev \
libgcrypt20-dev \
libgd-dev \
libgd3 \
libglib2.0-bin \
libglib2.0-data \
libglib2.0-dev \
libgmp3-dev \
libgpg-error-dev \
libhunspell-1.3-0 \
libib-util \
libice-dev \
libice6 \
libjbig-dev \
libjbig0 \
libjpeg-dev \
libjpeg-turbo8-dev \
libjpeg8-dev \
libkrb5-dev \
libldap2-dev \
libltdl-dev \
libltdl7 \
liblzma-dev \
libmagic-dev \
libmhash-dev \
libmysqlclient-dev \
libodbc1 \
libonig-dev \
libonig2 \
libpcre16-3 \
libpcre3-dev \
libpcre32-3 \
libpcrecpp0v5 \
libpipeline1 \
libpq-dev \
libpq5 \
libpython-stdlib \
libpython2.7-minimal \
libpython2.7-stdlib \
libqdbm-dev \
libqdbm14 \
librecode-dev \
librecode0 \
libsctp-dev \
libsctp1 \
libsm-dev \
libsm6 \
libsqlite3-dev \
libsybdb5 \
libsystemd-dev \
libtiff5 \
libtiff5-dev \
libtiffxx5 \
libtimedate-perl \
libtool \
libunistring0 \
libvpx-dev \
libvpx3 \
libwebp-dev \
libwebp5 \
libwebpdemux1 \
libwebpmux1 \
libxmlrpc-epi-dev \
libxmlrpc-epi0 \
libxmltok1 \
libxmltok1-dev \
libxt-dev \
libxt6 \
unixodbc \
unixodbc-dev \
uuid-dev \
#
## Enable phar writing
sed -i s/';phar.readonly = On'/'phar.readonly = Off'/ /etc/php/5.5/cli/php.ini
curl -SL --progress-bar https://www.openssl.org/source/old/0.9.x/openssl-0.9.8v.tar.gz -o openssl-0.9.8v.tar.gz
tar xvf openssl-0.9.8v.tar.gz
cd openssl-0.9.8v
./config
make
make install_sw
cd ..
curl -SL --progress-bar http://in1.php.net/distributions/php-5.3.29.tar.bz2 -o php-5.3.29.tar.bz2
tar -xvf php-5.3.29.tar.bz2
cd php-5.3.29
./configure \
--without-t1lib \
--disable-short-tags \
--enable-pcntl \
--with-tsrm-pthreads \
--with-mysqli=mysqlnd \
--with-mysql=mysqlnd \
--with-pdo-mysql \
--with-zlib \
--enable-sysvmsg \
--enable-sysvsem \
--enable-sysvshm \
--enable-bcmath \
--with-bz2 \
--enable-calendar \
--enable-exif \
--enable-ftp \
--with-gd \
--enable-gd-native-ttf \
--enable-gd-jis-conv \
--with-iconv-dir \
--with-gettext \
--enable-mbstring \
--with-mcrypt \
--with-mhash \
--with-pspell \
--with-readline \
--enable-soap \
--enable-sockets \
--with-sqlite \
--enable-sqlite-utf8 \
--enable-wddx \
--with-xmlrpc \
--with-xsl \
--with-openssl=/usr/local/ssl/ \
--enable-zip \
--with-tidy \
--with-curl \
#
make -j 10
make install
cp /usr/local/src/php-5.3.29/php.ini-development /usr/local/lib/php.ini
# more memory
sed -i s/'memory_limit = 128M'/'memory_limit = 1280M'/ /usr/local/lib/php.ini
sed -i s/';phar.readonly = On'/'phar.readonly = Off'/ /usr/local/lib/php.ini
/pd_build/php-finalize.sh
# Install composer
curl -sSL https://getcomposer.org/download/1.1.2/composer.phar -o /usr/bin/composer
chmod +x /usr/bin/composer
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