Control Web Panel

WebPanel => PHP Selector => Topic started by: wpmagic70 on June 09, 2017, 08:42:59 AM

Title: Calling second php from console not loads the exif extension
Post by: wpmagic70 on June 09, 2017, 08:42:59 AM
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.
Title: Re: Calling second php from console not loads the exif extension
Post by: Sandeep on June 09, 2017, 03:32:12 PM
are you talking about php selector of php switcher ?
Title: Re: Calling second php from console not loads the exif extension
Post by: wpmagic70 on June 10, 2017, 06:49:31 AM
are you talking about php selector of php switcher ?

yes
Title: Re: Calling second php from console not loads the exif extension
Post by: Sandeep on June 10, 2017, 02:41:41 PM
are you talking about php selector of php switcher ?

yes
i still not getting you
Title: Re: Calling second php from console not loads the exif extension
Post by: wpmagic70 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 ?

Title: Re: Calling second php from console not loads the exif extension
Post by: Sandeep 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".