diff --git a/plugins/php/versions/74/gd.sh b/plugins/php/versions/74/gd.sh index 5b407628e..b20f69ba2 100755 --- a/plugins/php/versions/74/gd.sh +++ b/plugins/php/versions/74/gd.sh @@ -49,9 +49,10 @@ Install_lib() --enable-gd \ --with-webp \ --with-xpm \ + --with-jpeg \ --with-freetype \ --enable-gd-jis-conv - + make clean && make && make install && make clean fi @@ -65,7 +66,7 @@ Install_lib() echo "[${LIBNAME}]" >> $serverPath/php/$version/etc/php.ini echo "extension=${LIBNAME}.so" >> $serverPath/php/$version/etc/php.ini - $serverPath/php/init.d/php$version reload + $serverPath/php/init.d/php${version} restart echo '===========================================================' echo 'successful!' } diff --git a/plugins/php/versions/80/gd.sh b/plugins/php/versions/80/gd.sh index 5b407628e..b20f69ba2 100755 --- a/plugins/php/versions/80/gd.sh +++ b/plugins/php/versions/80/gd.sh @@ -49,9 +49,10 @@ Install_lib() --enable-gd \ --with-webp \ --with-xpm \ + --with-jpeg \ --with-freetype \ --enable-gd-jis-conv - + make clean && make && make install && make clean fi @@ -65,7 +66,7 @@ Install_lib() echo "[${LIBNAME}]" >> $serverPath/php/$version/etc/php.ini echo "extension=${LIBNAME}.so" >> $serverPath/php/$version/etc/php.ini - $serverPath/php/init.d/php$version reload + $serverPath/php/init.d/php${version} restart echo '===========================================================' echo 'successful!' } diff --git a/plugins/php/versions/81/gd.sh b/plugins/php/versions/81/gd.sh index 5b407628e..b20f69ba2 100755 --- a/plugins/php/versions/81/gd.sh +++ b/plugins/php/versions/81/gd.sh @@ -49,9 +49,10 @@ Install_lib() --enable-gd \ --with-webp \ --with-xpm \ + --with-jpeg \ --with-freetype \ --enable-gd-jis-conv - + make clean && make && make install && make clean fi @@ -65,7 +66,7 @@ Install_lib() echo "[${LIBNAME}]" >> $serverPath/php/$version/etc/php.ini echo "extension=${LIBNAME}.so" >> $serverPath/php/$version/etc/php.ini - $serverPath/php/init.d/php$version reload + $serverPath/php/init.d/php${version} restart echo '===========================================================' echo 'successful!' }