install php70-gd on ubuntu

To install the php70-gd package on Ubuntu, you will need to have the package manager apt-get installed.

First, you will need to add the PPA (Personal Package Archive) for PHP 7.0 to your system by running the following command:

sudo add-apt-repository ppa:ondrej/php

Then, you can update your package list by running:

sudo apt-get update

Watch a course Learn object oriented PHP

Now, you can install the php70-gd package by running:

sudo apt-get install php7.0-gd

Watch a course Learn object oriented PHP

This will install the GD extension for PHP 7.0 on your system. You will need to restart your web server after the installation is complete.

You can also check whether the php-gd is installed or not by running

php -m

and look for the gd module in the list.

It's also important to check if the version of the PHP you are installing this extension is compatible with the version of your web server or not.