admin/ April 19, 2016/ Linux/ 0 comments

Install Php-7.0 on Ubuntu Server.

Adding a PPA for PHP 7.0 Packages
A Personal Package Archive, or PPA, is an Apt repository hosted on Launchpad. PPAs allow third-party developers to build and distribute packages for Ubuntu outside of the official channels. They’re often useful sources of beta software, modified builds, and backports to older releases of the operating system.

Ondřej Surý maintains the PHP packages for Debian, and offers a PPA for PHP 7.0 on Ubuntu. Before doing anything else, log in to your system, and add Ondřej’s PPA to the system’s Apt sources:

$ sudo add-apt-repository ppa:ondrej/php

When ppa successfully installed, update the local package cache to include its contents:

$ sudo apt-get update

Install the new packages of Php and its modules.

$ sudo apt-get install -y php7.0 libapache2-mod-php7.0 php7.0-mysql php7.0-curl php7.0-json php7.0-common

Note-: If you want to upgrade Php7.0, that will remove your older packages.

Share this Post

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.