Ubuntu 15.04
php-v
PHP 5.6.4-4ubuntu6.2 (cli) (built: Jul 2 2015 15:29:28)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2014 Zend Technologies
apt-get install php5-gd
Leyendo lista de paquetes... Hecho
Creando árbol de dependencias
Leyendo la información de estado... Hecho
php5-gd ya está en su versión más reciente.
0 actualizados, 0 nuevos se instalarán, 0 para eliminar y 7 no actualizados.
This means "PHP5-GD is installed in its latest version"
php -m | grep gd
php -m | grep gd
shows me nothing at all. This is confusing for me, by a side it says I have the latest GD library version and the other side show me nothing at all about its presence.
Is there a special reason why you can't install PHP 7? Just a reminder that PHP 5.6 is about 6 years old, so for security reasons and long term support it would be best to use at least 7.3
.
If you are using Apache then you may need to enable the extension with something similar to:
a2enmod php5.6-gd
I hope it helps. If that doesn't work, have a look at your php.ini
(you can find the right location with phpinfo()
) and search for GD there, there is a chance you have to manually enable it for Apache in the correct INI file (not the CLI one).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.