I am using laravel web framework on centos 7 server and nginx web server, I installed php71w-gd and still getting this error when i want to upload a file
Intervention Image Exception NotSupportedException GD Library extension not available with this PHP installation.
you may need to know this
# php -i | grep gd /etc/php.d/gd.ini, gd gd.jpeg_ignore_warning => 1 => 1
Advertisement
Answer
I fixed it by reinstalling php71 and php-gd from “Remi’s RPM repository” by running this code.
# yum --enablerepo=remi-php71 install php-gd
after that you should restart nginx and php-fpm:
# systemctl restart nginx # systemctl restart php-fpm
Also look at How to Install PHP 7, NGINX & MySQL 5.6 on CentOS/RHEL 7.4 & 6.9 if you have any problem in installing and configuring your server for laravel.