Installing PHP 7.0
Installing PHP 7.0
PHP 7.0.0 | Colin O'Dell
(/)
Colin O'Dell
Web Developer
Home (/) Blog (/blog) Books (/books) Podcasts (/podcasts) Projects (/projects) Talks (/talks)
About (/about)
sudo add‐apt‐repository ppa:ondrej/php
sudo apt‐get update
sudo apt‐get install php7.0
Debian 8 (Jessie)
PHP 7.0.0 can be installed using the Dotdeb repository (https://www.dotdeb.org/).
deb http://packages.dotdeb.org jessie all
deb‐src http://packages.dotdeb.org jessie all
wget https://www.dotdeb.org/dotdeb.gpg
sudo apt‐key add dotdeb.gpg
Install PHP 7:
sudo apt‐get update
sudo apt‐get install php7.0
https://www.colinodell.com/blog/201512/installingphp700 1/4
10/21/2016 Installing PHP 7.0.0 | Colin O'Dell
Debian 7 (Wheezy)
PHP 7 can be compiled from source by following the instructions outlined here: Install PHP 7 on Debian Wheezy
(https://github.com/drj-io/php7-debian-build)
CentOS / RHEL
PHP 7.0.0 can be installed using the Webstatic Yum repository (https://webtatic.com/projects/yum-repository/).
If you're using CentOS/RHEL 7.x, run these three commands to add the repository and install PHP 7:
rpm ‐Uvh https://dl.fedoraproject.org/pub/epel/epel‐release‐latest‐7.noarch.rpm
rpm ‐Uvh https://mirror.webtatic.com/yum/el7/webtatic‐release.rpm
yum install php70w
If you're using CentOS/RHEL 6.x, run these two commands to add the repository and install PHP 7:
rpm ‐Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
yum install php70w
brew tap homebrew/dupes
brew tap homebrew/versions
brew tap homebrew/homebrew‐php
brew install php70
curl ‐s http://php‐osx.liip.ch/install.sh | bash ‐s 7.0
Windows
PHP 7.0.0 distributions for Windows can be found on the windows.php.net (http://windows.php.net/) website:
http://windows.php.net/download#php-7.0 (http://windows.php.net/download#php-7.0)
New features
Changes & BC breaks
Deprecations
Removed functionality
https://www.colinodell.com/blog/201512/installingphp700 2/4
10/21/2016 Installing PHP 7.0.0 | Colin O'Dell
It also provides instructions on how to install PHP 7 on your machine so you can start coding with it today!
You can read the free preview or grab a discounted copy here:
https://leanpub.com/php7/c/getstarted (https://leanpub.com/php7/c/getstarted)
Happy coding!
Popular Tags
Credits
Original template by Xiaoying Riley at 3rd Wave Media (http://themes.3rdwavemedia.com/); used under the
Creative Commons Attribution 3.0 License (http://creativecommons.org/licenses/by/3.0/)
(http://twitter.com/colinodell) (https://plus.google.com/107895682424085410306/posts)
(http://www.linkedin.com/in/colinodell) (https://github.com/colinodell) (https://joind.in/user/colinodell/talks)
(https://stackover ow.com/users/158766/colin-odell) (https://stackexchange.com/users/53116/colin-odell)
(http://www.phpgolf.org/user/colinodell) (https://coderwall.com/colinodell)
(https://www.coinbase.com/colinodell) (https://keybase.io/colinodell)
https://www.colinodell.com/blog/201512/installingphp700 4/4