Why extension_dir in php.ini and pecl not same ?

shamstarek

Member
Mar 17, 2013
9
0
1
cPanel Access Level
Website Owner
Hello guys

I've question : Why extension_dir in php.ini and pecl not same ?

[email protected]:[/home/shams.eldin]: php -i | grep extension_dir
<tr><td class="e">extension_dir</td><td class="v">/usr/local/lib/php/extensions/no-debug-non-zts-20090626</td><td class="v">/usr/local/lib/php/extensions/no-debug-non-zts-20090626</td></tr>

[email protected]:[/home/shams.eldin]: pecl config-show
PHP extension directory ext_dir /usr/lib/php/extensions/no-debug-non-zts-20090626
!!

I know too i should fix this problem by create symlink. But it is a workaround :/
And I need to know why not same ?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello :)

Could you let us know which version of PHP is installed on your system, and when the last time you updated it through EasyApache was?

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Could you open a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here so we can update this thread with the outcome.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
To update, here are some snippets of the explanation from the support request:

/usr/lib/php/ is the default location for PECL builds. When compiling PHP from source, the extension_dir in the sever's global php.ini should be used.
/usr/lib/php/... path comes from the php build and it doesn't use the extension_dir in the php.ini file. PHP: dl - Manual tells how you it gets that directory.
Thank you.