Adding an extension to already compiled php

Discussion in 'ISPConfig 3 Priority Support' started by pawan, Nov 16, 2018.

  1. pawan

    pawan Member HowtoForge Supporter

    I have some custom php compiled using the guide.
    Like I have it installed php 7.0.32 in /opt/php-7.0.32
    Now I am facing an issue for example the latest Magneto version doesn't support the default php7.2 and in 7.0.32 "intl" extension is not installed/enabled when compiling.
    is there a way I can add the same without going to the whole recompile process?
     
  2. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    Take the PHP source of that version and go to the "ext/intl" subdirectory.
    Call "/opt/php-7.0.32/bin/phpize" in there, then
    Code:
    ./configure --with-php-config=/opt/php-7.0.32/bin/php-config && make && make install
    After that you should be able to add "extension=intl.so" to the php.ini.
     
  3. pawan

    pawan Member HowtoForge Supporter

    Hi Croydon,
    Thanks for your guidance.
    I went ahead and did what you suggested.
    the extesnion "intl.so is showing in
    /opt/php-7.0.32/lib/php/extensions/no-debug-non-zts-20151012/

    I have added the extension=intl.so in php.ini
    but it is not showing any changes in phpifno.
    anything else I need to do to make that effective?
     
  4. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    Are you sure that your web where you testet it uses the php.ini you edited?
    First try by checking with:
    /opt/php-7.0.32/bin/php -c /path/to/php.ini -i | grep -i 'intl'
     
    pawan likes this.
  5. pawan

    pawan Member HowtoForge Supporter

    thanks croydon, your last command helped me address the issue.
     

Share This Page