# Install PHP 7.1 - Ubuntu

# Assumptions

  * Apache2 is already installed
  
# Steps

### Adding packages repositories and dependencies

```sh 
# The original tutorial used this one:
sudo apt-get install -y python-software-properties

# Aparently the above has been obsoleted and we need to use this one:
sudo apt-get install -y software-properties-common
```

```sh 
sudo add-apt-repository -y ppa:ondrej/php
sudo apt-get update -y
```

### Checking

This should list _some_ PHP packages

```sh
apt-cache pkgnames | grep php7.1
```

### Installing

```sh
apt-get install -y php7.1 # and any other package you need
```

## References

> https://www.vultr.com/docs/how-to-install-and-configure-php-70-or-php-71-on-ubuntu-16-04