Control Web Panel
WebPanel => CentOS Configuration => Topic started by: Nagataka on December 21, 2015, 07:10:22 AM
-
Hi all,
I am using php 7 and trying to install magento 2.
During the install i get this:
[ERROR] exception 'Exception' with message 'Warning: call_user_func() expects parameter 1 to be a valid callback, function 'imagecreatefromjpeg' not found or invalid function name in /home/magento2/public_html/vendor/magento/framework/Image/Adapter/Gd2.php on line 63' in /home/magento2/public_html/vendor/magento/framework/App/ErrorHandler.php:61
I have the gdlib and imagemagick installed, but i guess i have to add them when compiling php 7?
-
Hi
Did you restart httpd after installing GD and ImageMagick ?
-
Yep, totally done that.
Having the same issue btw when installing TYPO3:
PHP GD library jpg support missing
GD must be compiled with jpg support. This is essential for TYPO3 CMS to work properly.
PHP GD library freetype support missing
Some core functionality and extension rely on the GD to render fonts on images. This support is missing in your environment. Install it.
PHP GD library freetype2 support missing
The core relies on GD library compiled into PHP with freetype2 support. This is missing on your system. Please install it.
-
add these lines when you recompile your php:
--with-jpeg-dir \
--enable-gd-native-ttf \
--with-freetype-dir \