Issue activating a php extension using PHP Farm

淺唱寂寞╮ 提交于 2019-12-01 14:15:29

apparently everything was working fine but for some reason PHP wasn't reading the php.ini file and none of the changes were reflected. What I did was I deleted the inst/php-5.4.30 folder and also the src/php-5.4.30 folder, I revised my custom-options-5.4.sh file and I added the following line:

--with-config-file-path=/opt/phpfarm/inst/php-5.4.30/lib/ \

Afterwards I compiled again, restarted apache2 and everything worked correctly. I hope this can be useful to someone else :).

Ah, and also, now the output of php -v looks like this:

PHP 5.4.30 (cli) (built: Sep 26 2014 16:13:45)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
    with Zend Guard Loader v3.3, Copyright (c) 1998-2013, by Zend Technologies

I had to configure with --enable-xdebug:

./configure --with-php-config=/opt/phpfarm/inst/bin/php-config-5.4.16 --enable-xdebug

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!