install php70-gd on ubuntu
To install the php70-gd package on Ubuntu, you will need to have the package manager apt-get installed.
To install the php7.0-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. If add-apt-repository is not available, install it first with sudo apt-get install software-properties-common, then run the following command:
sudo add-apt-repository ppa:ondrej/phpNote: PHP 7.0 reached end-of-life in January 2019. Consider using a supported PHP version for production environments.
Then, you can update your package list by running:
sudo apt-get updateNow, you can install the php7.0-gd package by running:
sudo apt-get install php7.0-gdThis 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. For Apache, run sudo systemctl restart apache2 (or sudo systemctl restart nginx if you use Nginx).
You can also check whether the gd module is installed or not by running
php -mand look for the gd module in the list.
Verify that your web server is configured to use the correct PHP version by running php -v.