0% found this document useful (0 votes)
41 views

Installing PHP 7.0

Uploaded by

Samuel Pilay
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views

Installing PHP 7.0

Uploaded by

Samuel Pilay
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

10/21/2016 Installing 

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)

Installing PHP 7.0.0


Installing PHP 7.0.0 is easier than ever.  Here are instructions for installing the latest version on August 30th, 2016
different platforms:

PHP 5.x Con icts


You may encounter con icts if you already have PHP 5.x installed. If so, make sure to completely remove PHP
5.x from your system before installing 7.0.0. On Ubuntu, this is as simple as running: sudo apt‐get purge
php5‐* .

Ubuntu 14.04, 15.04, 15.10, and 16.04:


PHP 7.0.0 can be installed using Ondřej Surý's PPA (https://launchpad.net/~ondrej/+archive/ubuntu/php):

sudo add‐apt‐repository ppa:ondrej/php
sudo apt‐get update
sudo apt‐get install php7.0

View full list of available packages (https://launchpad.net/~ondrej/+archive/ubuntu/php-7.0/+packages?field.name_filter=php7.0)

Debian 8 (Jessie)
PHP 7.0.0 can be installed using the Dotdeb repository (https://www.dotdeb.org/).

Add these two lines to your /etc/apt/sources.list le:

deb http://packages.dotdeb.org jessie all
deb‐src http://packages.dotdeb.org jessie all

Add the GPG key:

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/2015­12/installing­php­7­0­0 1/4
10/21/2016 Installing PHP 7.0.0 | Colin O'Dell

View full list of available packages (http://packages.dotdeb.org/pool/all/p/php7.0/)

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

View full list of available packages (https://webtatic.com/packages/php70/#sapi)

Mac OS X 10.6 - 10.11


PHP 7.0.0 can be installed using homebrew (https://github.com/Homebrew/homebrew-php):

brew tap homebrew/dupes
brew tap homebrew/versions
brew tap homebrew/homebrew‐php
brew install php70

Or you can install it via Liip's php-osx tool (http://php-osx.liip.ch/):

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)

You can nd instructions for installing the distribution here: https://www.webtechgadgetry.com/install-php-7-


windows/ (https://www.webtechgadgetry.com/install-php-7-windows/)

PHP 7 (/tags/php-7) PHP (/tags/php)

Learn More About PHP 7


If you'd like to learn more about PHP 7, check out my PHP 7 Upgrade Guide e-book
(https://leanpub.com/php7/c/getstarted). It covers everything you'll need to know about migrating to PHP 7,
including:

New features
Changes & BC breaks
Deprecations
Removed functionality

https://www.colinodell.com/blog/2015­12/installing­php­7­0­0 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)

You can also check out other community resources including:


Getting Ready for PHP 7 (https://www.digitalocean.com/company/blog/getting-ready-for-php-7/)
What to Expect When You're Expecting: PHP 7, Part 1 (https://blog.engineyard.com/2015/what-to-expect-
php-7)
What to Expect When You're Expecting: PHP 7, Part 2 (https://blog.engineyard.com/2015/what-to-expect-
php-7-2)
PHP 7: 10 Things You Need to Know (http://www.hongkiat.com/blog/php7/)
PHP Manual: Migrating from PHP 5.6.x to PHP 7.0.x (https://secure.php.net/manual/en/migration70.php)

Happy coding!

About Colin O'Dell


Colin O'Dell (http://www.colinodell.com/) is a Lead Web Developer at Unleashed Technologies
(https://www.unleashed-technologies.com/), a web and hosting rm based in Maryland. In
addition to being an active member of the PHP League (http://thephpleague.com/) and
maintainer of the league/commonmark (http://commonmark.thephpleague.com/) project,
Colin is also a PHP docs (https://secure.php.net/docs.php) contributor, conference speaker
(http://www.colinodell.com/talks), and author of the PHP 7 Migration Guide
(http://www.php7book.com/).

Popular Tags

PHP (/tags/php) (29)


PHP League (/tags/php-league) (9)
CommonMark (/tags/commonmark) (8)
Debugging (/tags/debugging) (7)
Markdown (/tags/markdown) (6)
PHP 7 (/tags/php-7) (6)
Security (/tags/security) (5)
Hacking (/tags/hacking) (4)
Composer Library (/tags/composer-library) (3)
Node.js (/tags/node-js) (3)
.NET (/tags/net) (2)
Android (/tags/android) (2)
Arduino (/tags/arduino) (2)
C# (/tags/c) (2)
Git (/tags/git) (2)

Credits

Drupal 8.0 (https://www.drupal.org/8)

Bootstrap 3.2 (http://getbootstrap.com/)


https://www.colinodell.com/blog/2015­12/installing­php­7­0­0 3/4
10/21/2016 Installing PHP 7.0.0 | Colin O'Dell

FontAwesome 4.2 (http://fortawesome.github.io/Font-Awesome/)

jQuery 1.11.1 (http://jquery.com/)

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)

© 2016 Colin O'Dell. All rights reserved, unless otherwise noted. 

https://www.colinodell.com/blog/2015­12/installing­php­7­0­0 4/4

You might also like