ANS Documentation

Improve This Doc
  • Cloud
  • Domains and DNS management
  • Backup and High Availability
  • eCommerce Stacks
  • Security
  • Email
  • Monitoring and usage management
  • Networking
  • Operating systems
    • Linux
      • Basics
      • Apache
      • Control Panels
      • FTP
      • Magento
      • Miscellaneous
      • MySQL
      • NGINX
      • PHP
      • PHP-FPM
      • Setting up Websites
      • NFS
      • VPN
      • Percona
      • SSH
      • SSL
      • Git
      • Redis
      • Elasticsearch
      • MongoDB
      • Ncdu
    • VMware ESXi
    • Windows
  • Webcelerator
  • MyUKFast
  • Home >
  • Operating systems >
  • Linux >
  • PHP >
  • Installing PHP 7 on Ubuntu 14.04

Installing PHP 7 on Ubuntu 14.04¶

Installation¶

By default, Ubuntu 14.04 ships with PHP 5.5.9 as the latest available version. If you would like to install PHP 7.x then you will need to do so using additional software repositories. For this guide we will be using an excellent 3rd party PPA.

First you need to ensure you have the software-properties-common package installed:

apt-get install software-properties-common

Then you can add the repository in:

add-apt-repository ppa:ondrej/php
apt-get update

Now you can install PHP 7:

apt-get install php7.1 php7.1-common php7.1-mysqli php7.1-dev php7.1-mcrypt

Configuration¶

Configuration files are located in specific directories for the version you installed. In the example above, 7.1 this would be:

/etc/php/7.1/

Next Article > Changing your installed PHP version

  • Useful Links
  • SMB
  • Enterprise
  • Channel
  • Public Sector
  • ANS Data Centres
  • About ANS
  • Careers
  • Blog
  • Get in touch
  •  
  • Sales 0800 458 4545
  • Support 0800 230 0032
  • Get in touch

© ANS Group Limited | Terms and Conditions | Corporate Guidance | Sitemap
ANS Group Limited, registered in England and Wales, company registration number 03176761, registered office 1 Archway, Birley Fields, Manchester M15 5QJ