Author Topic: Calling second php from console not loads the exif extension  (Read 14494 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
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 :
Code: [Select]
/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
Code: [Select]
/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.

Offline
*****
Re: Calling second php from console not loads the exif extension
« Reply #1 on: June 09, 2017, 03:32:12 PM »
are you talking about php selector of php switcher ?

Offline
*
Re: Calling second php from console not loads the exif extension
« Reply #2 on: June 10, 2017, 06:49:31 AM »
are you talking about php selector of php switcher ?

yes

Offline
*****
Re: Calling second php from console not loads the exif extension
« Reply #3 on: June 10, 2017, 02:41:41 PM »
are you talking about php selector of php switcher ?

yes
i still not getting you

Offline
*
Re: Calling second php from console not loads the exif extension
« Reply #4 on: June 10, 2017, 03:42:46 PM »
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 ?


Offline
*****
Re: Calling second php from console not loads the exif extension
« Reply #5 on: June 10, 2017, 04:57:17 PM »
I just checked and found exif is installing correctly. And for your kind information exif will install by default in cwp "php switcher".