gustawdaniel

PHP_BunsenLabs_Script

Dec 18th, 2016
87
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. cd /usr/src && git clone -b PHP-7.0.14 https://github.com/php/php-src --depth 1
  4.  
  5. apt-get install make autoconf gcc bison apache2-dev libxml2-dev \
  6.    libssl-dev pkg-config libbz2-dev libcurl4-gnutls-dev libjpeg-dev \
  7.    libpng-dev libxpm-devel libfreetype6-dev libgmp-dev libicu-dev \
  8.    libmcrypt-dev mysql-server libmysqlclient-dev libpspell-dev \
  9.    librecode-dev libtool libtool-bin
  10.  
  11. ln -sf /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h
  12. ln -sf /usr/lib/x86_64-linux-gnu/libldap.so /usr/lib/libldap.so
  13. ln -sf /usr/lib/x86_64-linux-gnu/liblber.so /usr/lib/liblber.so
  14.  
  15. ./buildconf --force
  16. ./configure --prefix=/usr/local/php/7.0 \
  17.     --with-config-file-path=/etc/php/7.0/apache2 \
  18.     --with-config-file-scan-dir=/etc/php/7.0/apache2/conf.d \
  19.     --enable-mbstring \
  20.     --enable-zip \
  21.     --enable-bcmath \
  22.     --enable-pcntl \
  23.     --enable-ftp \
  24.     --enable-exif \
  25.     --enable-calendar \
  26.     --enable-sysvmsg \
  27.     --enable-sysvsem \
  28.     --enable-sysvshm \
  29.     --enable-wddx \
  30.     --enable-intl \
  31.     --with-curl \
  32.     --with-mcrypt \
  33.     --with-iconv \
  34.     --with-gmp \
  35.     --with-pspell \
  36.     --with-gd \
  37.     --with-jpeg-dir=/usr \
  38.     --with-png-dir=/usr \
  39.     --with-zlib-dir=/usr \
  40.     --with-xpm-dir=/usr \
  41.     --with-freetype-dir=/usr \
  42.     --enable-gd-native-ttf \
  43.     --enable-gd-jis-conv \
  44.     --with-openssl \
  45.     --with-pdo-mysql=/usr \
  46.     --with-gettext=/usr \
  47.     --with-zlib=/usr \
  48.     --with-bz2 \
  49.     --with-recode=/usr \
  50.     --with-apxs2=/usr/bin/apxs \
  51.     --with-mysqli=/usr/bin/mysql_config \
  52.     --with-ldap
  53.  
  54. sudo make clean
  55. sudo make -j `cat /proc/cpuinfo | grep processor | wc -l`
  56. make test
RAW Paste Data