Created
December 6, 2015 12:26
-
-
Save Webist/e7a34ab133d052b03c66 to your computer and use it in GitHub Desktop.
Install PHP7 on Raspberry PI or Debian or Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo pear install PHP_Codesniffer | |
phpcs -i |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
phpinfo(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo php -S 0.0.0.0:80 phpinfo.php |
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
ty