Skip to content

Instantly share code, notes, and snippets.

@mrjosh
Created September 26, 2017 08:31
Show Gist options
  • Save mrjosh/453dd445d092730647801a8e973b50ad to your computer and use it in GitHub Desktop.
Save mrjosh/453dd445d092730647801a8e973b50ad to your computer and use it in GitHub Desktop.
PHP 7 Installer
#!/bin/bash
wget http://de1.php.net/get/php-7.0.0.tar.bz2/from/this/mirror
tar -xvjf mirror
cd php-7.0.0/
./configure \
--with-readline \
--enable-pcntl \
--with-gettext \
--enable-phpdbg \
--enable-phpdbg-webhelper \
--enable-mbstring \
--enable-zip \
--enable-bcmath \
--enable-ftp \
--enable-exif \
--enable-calendar \
--enable-sockets \
--enable-sysvmsg \
--enable-sysvsem \
--enable-sysvshm \
--enable-wddx \
--with-curl \
--with-mcrypt \
--with-iconv \
--with-pspell \
--with-gd \
--enable-gd-native-ttf \
--enable-gd-jis-conv \
--with-openssl \
--enable-soap \
--with-zlib-dir=/usr \
--with-zlib=/usr \
--with-bz2=/usr
make -j `nproc`
sudo make install
php -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment