Calling second php from console not loads the exif extension

Started by wpmagic70, June 09, 2017, 08:42:59 AM

Previous topic - Next topic

wpmagic70

Hi,
I installed php 7.1 as secondary php version and i use it for one of my projects. Now i want update that project and add one dependency to it using composer.
Composer says one of dependencies needs php 7.0 and above, then i tried call composer this way :
/usr/local/cwp/php71/bin/php /usr/local/bin/composer.phar require 2amigos/yii2-tinymce-widget

The problem with above command is that php loads without exif extension which is needed by one of dependencies.
Also i tried /usr/local/cwp/php71/bin/php -m but all extensions are loaded except exif !
Also i checked the list of extensions in cwp and --enable-exif is in flags file, so it is active, maybe not active in console ?
Anyway how i can load that extension ?
Thanks.

Sandeep


wpmagic70



wpmagic70

When i install a second php version in php switcher, there is a flags file which contains --enable-exif, but after install and compile when i access the compiled php from console it says exif extension not exists in the php.
I think i must install libexif-dev in my machine ? Or this is needed while compiling php ?


Sandeep

I just checked and found exif is installing correctly. And for your kind information exif will install by default in cwp "php switcher".