There are a lot of images to be processed, but an error is reported when the gd function is written in cli mode, that is, the gd-related functions are not defined in the package. In this case, how can I install the gd library or modify the configuration? PS: the gd library can be used in cgi mode. There are a lot of images to be processed, but an error is reported when the gd function is written in cli mode, that is, the gd-related functions are not defined in the package.
In this case, how can I install the gd library or modify the configuration?
PS: the gd library can be used in cgi mode.
Reply content:
There are a lot of images to be processed, but an error is reported when the gd function is written in cli mode, that is, the gd-related functions are not defined in the package.
In this case, how can I install the gd library or modify the configuration?
PS: the gd library can be used in cgi mode.
RunPhp -- ini
Check whether the configuration used by php-cli is the same as that used by php-cgi. Using the same configuration should ensure that php-cli can also load the PECL module of php-cgi. alternatively, find the gd module and load it explicitly in the configuration:
Extension = php_gd.so
Phpize