Logo
  • PHP
    • HipHop / HHVM
    • Modern PHP
    • PHPStorm
    • LAMP
    • Laravel
    • Composer
    • PDO
  • JavaScript
    • node.js
    • AngularJS
  • CSS
    • SASS
    • “CSS4” (CSS level 4)
  • HTML
  • Git
  • LAMP
  • Vagrant
  • UI / UX
  • Architecture of …
  • Off-Topic
With ♥ from Berlin
December 6, 2015
Chris
PHP
0

How to install PHP 7.0 on Ubuntu 14.04 LTS

Previous

You want to install PHP 7 within 60 seconds ? No problem, but first make sure you have a fresh installation of Ubuntu 14.04 (LTS) here, sudo rights and no existing version of PHP on this system. Please note that this is only for Ubuntu, not for other operating systems! It might work too on Debian.

 

1. Add package source to your system:

It always takes some time until new versions of PHP (and other languages) are available via regular packages on Ubuntu systems, so this awesome guy called Ondřej Surý offers pre-packaged builds of new PHP versions right after they have been released. This is awesome, and we should be thankful for these excellent packages, so if this works for you, consider spending him a beer or a coffee via his donation page. However, please keep in mind that this is a superfresh version and an unofficial package!

On the command line, simply type

sudo add-apt-repository ppa:ondrej/php

and confirm the upcoming dialog with ENTER. If you get an error here, you need to install python-software-properties first (and then do the line above again):

sudo apt-get update
sudo apt-get install python-software-properties

 

2. Update Ubuntu package sources

Then download and update the Ubuntu package lists via

sudo apt-get update

 

3. Install PHP 7.0.x

And now install PHP via

sudo apt-get install php

Confirm with “y” and ENTER. Done! Make sure you are typing “php”, not “php5”, this might be confusing as in the last 10(?) years it has always been php5. To check if everything has been installed properly, do

php -v

The result should be something like this:

PHP7

Boom! Have fun with the awesome new version!

This article was written quite a while ago (7 years), please keep this in mind when using the information written here. Links, code and commands might be outdated or broken.

Random articles

  • How to setup / install PHP 5.6 on Ubuntu 14.04 LTSHow to setup / install PHP 5.6 on Ubuntu 14.04 LTS
  • The difference between “composer install” and “composer update” – nailed on the headThe difference between “composer install” and “composer update” – nailed on the head
  • Install Laravel 4 on Ubuntu 12.04 LTS (a how-to tutorial)Install Laravel 4 on Ubuntu 12.04 LTS (a how-to tutorial)
  • How to install Composer (and update) on Windows 7 / 8 or Ubuntu / DebianHow to install Composer (and update) on Windows 7 / 8 or Ubuntu / Debian
  • A preinstalled Vagrant box with PHP HipHop / HHVM and Ubuntu 13.10 (Saucy Salamander)A preinstalled Vagrant box with PHP HipHop / HHVM and Ubuntu 13.10 (Saucy Salamander)
  • PHP 6.0 will be PHP 7PHP 6.0 will be PHP 7
  • How to show the available version of a package (before doing apt-get install)How to show the available version of a package (before doing apt-get install)
  • Facebook releases HipHop (HHVM) 3.0, adds mysqli and support for Hack languageFacebook releases HipHop (HHVM) 3.0, adds mysqli and support for Hack language
  • A super-simple pre-configured Vagrant box with HipHop, Hack and Hack code examplesA super-simple pre-configured Vagrant box with HipHop, Hack and Hack code examples
Share this

Leave A Comment Cancel reply

php

Postmodern PHP: appserver.io, a multithreaded application server for PHP, written in PHP

There’s a lot of very interesting stuff going on in the PHP scene right now, I have the feeling this

The architecture of StackOverflow

One of the most interesting talks these weeks, and a rare insight into one of the most active pages on

phpstorm 7.0 php

How to setup and use XDEBUG with PHPStorm 6/7 (locally in Windows 7/8 and Mac OS X)

Real debugging is probably one of the most coolest things that are possible in software development: Remember the times where

php

“Belt” adds very clever everyday functions to PHP, comes with JavaScript naming styles and eventually solves the needle/haystack problem

This little projects is basically super-simple, but somehow really really clever and definitly a time-saver: Belt is a typical Composer-loaded

Meet the developers behind Ableton (14min video)

An excellent short documentation about the developers behind Ableton, the legendary creators of Ableton Live and Push. Without doubt, Live

Symfony devs: Creator of Symfony framework is hiring (Cologne, Germany)!

Probably one of the most interesting companies for a PHP developer is currently hiring Juniors and Seniors in Cologne, Germany.

Increase your HTML / CSS coding speed with EMMET

Codeninja.com just published a very interesting article about the excellent free code-completion/code-generation tool EMMET, which allows you to create huge

JavaScript ECMAScript6 – A short video introduction (5min)

Excellent introduction into the new ECMAScript6, the spec behind JavaScript. This article was written quite a while ago (8 years),

[Link] Redesigning SoundCloud by Evan Simoni

Again, an interesting approach / proof-of-concept on a redesign of a major website. Evan Simoni has overthought SoundCloud’s UI and

Hacked french TV channel exposed passwords in TV interview (video, screenshots, links)

This week a major french TV networks was hacked (Article on CNN #1, #2), resulting in 11 channels being completely

1/4

Categories

Search

Awesome next-gen PS4 graphics in “The Order: 1886”
hack-php
The first micro framework written in Hack is there: hack-mvc !
composer
A short & simple Composer tutorial
phpstorm-8
PHPStorm 8 (early access version) released – for free
phpstorm 7.0 php
A perfect video tutorial to get started with xdebug in PHPStorm
phpstorm-8
When PHPStorm’s cache eats up your harddisk space
logo-internet-explorer
How to professionally test on old Internet Explorer versions
angularjs
Two excellent introductions into AngularJS by Todd Motto
hearthbleed-ssl-bug
The SSL Heartbleed bug explained in 30 seconds
hiphop php
[Link] How to set up HipHop, Nginx and Laravel in Ubuntu 12.04 LTS (in a Vagrant box)
php uk conference
PHP Caching Best Practices by Eli White (video from PHP UK Conference 2014)
offf-2014
Europeans: Get ready for OFFF conference / festival in Barcelona, May 2014
Joshua Davis – my hero of Flash – in two excellent interviews (audio, video)
[Link] Improving Smashing Magazine’s Performance: A Case Study
php
A super-simple introduction into PHP namespaces (7min video)

Tags

apache bash centos composer conference coupon CSS debian fonts framework git GitHub hack HHVM HipHop HTML HTML5 IDE JavaScript JS LAMP laravel linux mod_rewrite MVC MySQL Nginx optimization PHP PHP 5.5 PHP 5.6 phpmyadmin PHPStorm security server SSD Ubuntu UI UX vagrant video virtual machine voucher VPS wordpress
Side-Project: Wordle-Solver:
www.wordle-helper.info

Pages

  • Privacy Policy
 
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT