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
Comments Off on How to install PHP 7.0 on Ubuntu 14.04 LTS

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!

Share this

[Link] Making a website vertically responsive

Very useful tutorial by Ian Yates: How to make a website VERTICALLY responsive, adapting its content for small heights. Interesting

Soundcloud’s “VP of Engineering” about using SSDs

Excellent [german] statement from Alexander Grosse (Soundcloud’s Vice President of Engineering) about using SSDs for the main application (music data

js javascript

Push database changes to all clients in real-time (!) with AngularJS and Firebase

The coolest talk I’ve seen this week: Anant Narayanan of Firebase shows how to build a simple but really impressive

[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

Frontend Ops Conf 2014 – Rebooting Flickr On A Node.js Stack, One Page At A Time (from PHP) by Bertrand Fan

https://www.youtube.com/watch?v=vBo0aFtg1_M

Interesting stats on SONY’s hacked passwords

In 2011 SONY’s Playstation network got hacked, 77 million accounts have been compromised, and more than 1.000.000 passwords – saved

laracon-2014-eu-amsterdam

Laracon 2013 – Kapil Verma: Engineering Complex Applications with Laravel 4 (40min video)

More videos of 2013’s and 2014’s Laracon events from US and EU on their Youtube channel.

vagrant

A super-simple Vagrant LAMP stack bootstrap (installable with one command)

As I have to setup servers inside Vagrant quite often, sometimes 10 times per day, I started to use provisioning:

php

How to install latest PHP 5.4.x on Ubuntu 12.04 LTS (Precise Pangolin)

Disclaimer: Currently 5.5 is the very latest version of PHP, but the common way to install PHP 5.5 has a

php uk conference

PHP Caching Best Practices by Eli White (video from PHP UK Conference 2014)

The title says it all: PHP Caching best practices.

1/4

Categories

Search

php
How to install PHP curl extension (in 5 seconds)
How to hack time (KUNG FURY promo campaign)
phpstorm-8
PHPStorm 8 (early access version) released – for free
[Link] Making a website vertically responsive
laracon-2014-eu-amsterdam
Laracon 2013 – Jordi Boggiano: In Depth Composer (47min video)
O’Reilly sells EVERY ebook for -50% right now!
shadow dom
A quick video introduction into Shadow-DOM, the game-changing DOM-subtree-technology
hiphop php
HipHop VM reaches 100% green Unit Tests in Laravel, Drupal, Slim, CodeIgniter etc.
phpstorm-8
PHPStorm 8 has just been released
microsoft-windows-azure-cloud-hosting
Microsoft’s Azure platform gives away high money prizes for “testing out” their cloud services
Frontend Ops Conf 2014 – Paul Irish: Delivering The Goods In Under 1000ms (40min video)
Quick fix for 404 error in WordPress category / tag page
How major web companies (and banks) handle passwords quite wrong
compress-png
Compress png, jpeg, gif and svg up to 90% with Compressor.io
PHPMyAdmin not found after installation ? Here’s a fix (Ubuntu 12.04) !

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