Skip to content

Instantly share code, notes, and snippets.

@Webist
Created December 6, 2015 12:26
Show Gist options
  • Save Webist/e7a34ab133d052b03c66 to your computer and use it in GitHub Desktop.
Save Webist/e7a34ab133d052b03c66 to your computer and use it in GitHub Desktop.
Install PHP7 on Raspberry PI or Debian or Ubuntu
#!/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
#!/bin/bash
sudo pear install PHP_Codesniffer
phpcs -i
<?php
phpinfo();
sudo php -S 0.0.0.0:80 phpinfo.php
@mycloa
Copy link

mycloa commented Dec 27, 2015

ty

@sven-hash
Copy link

I've some problems when I run ./configure and I found this thread: http://stackoverflow.com/questions/30987883/how-do-i-install-php-7-php-next-generation-on-ubuntu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment