Issue activating a php extension using PHP Farm

前端 未结 2 606
耶瑟儿~
耶瑟儿~ 2021-01-16 04:02

I am implementing a software (Getsy) that requires PHP 5.4 and ZendGuard 6 (ZendGuard).

For the occasion I am using an AWS Instance of Ubuntu 14.04. As Ubuntu 14.04

相关标签:
2条回答
  • 2021-01-16 04:12

    I had to configure with --enable-xdebug:

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

    0 讨论(0)
  • 2021-01-16 04:21

    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
    
    0 讨论(0)
提交回复
热议问题