Sani Kamal
Sani Kamal

Reputation: 1238

How to install/enable GD in xampp Ubuntu 18.04?

I Can't figure out how to install php-gd for PHP7.2.11. Is there any way to install/enable GD extension in xampp Ubuntu 18.04? I checked the php.ini file but I can't find php_gd2.so line.Any suggestions??

Upvotes: 1

Views: 2105

Answers (2)

Luis Sambrano
Luis Sambrano

Reputation: 1

sudo add-apt-repository ppa:ondrej/php
sudo apt-get install php7.2-gd

Upvotes: 0

René Höhle
René Höhle

Reputation: 27325

Under Linux you have ".so" files. You can install it very easy over the package manager. Check before if the package is installed:

dpkg -l|grep php7.2-gd

If not then install it via apt.

apt install php7.2-gd

If you have an oder version then use apt-get install. It is possible that this package is used and installed by default that is thy you should check, if it's already installed.

Upvotes: 3

Related Questions