How does one enable (or perhaps I need to install) GD when my phpinfo() output in "Configure Command" says; --without-gd ?
I also have nothing in my phpinfo() output "Core" that lists "gd"
PHP Version 5.2.4 on AWS.
How does one enable (or perhaps I need to install) GD when my phpinfo() output in "Configure Command" says; --without-gd ?
I also have nothing in my phpinfo() output "Core" that lists "gd"
PHP Version 5.2.4 on AWS.
For PHP7.0 use (php7.1-gd, php7.2-gd and php7.3-gd are also available):
and than restart your webserver.
All previous answers are correct but were not sufficient for me on ArchLinux. I also needed to edit
/etc/php/php.ini
and to uncomment :The initial
;
on the line needs to be removed. After restarting Nginx viasystemctl restart nginx
, I was good to go.In CentOS (but the same may apply to other distros too) if you install the php7x-gd module followed by Apache restart and still the
php -i
does not show theGD Support => enabled
it might mean that the php.ini was not automatically configured to support this extension.All you have to to is either to edit the
/etc/php/php.ini
or to create a/etc/php.d/gd.ini
file with the following content:If You're using php5.6 and Ubuntu 18.04 Then run these two commands in your terminal your errors will be solved definitely.
then restart your apache server by this command.
For
php7.1
do:and restart webserver. For
apache
doCheck if in your php.ini file has the following line:
if exists, change it to
and restart apache
(it works on MAC)