how to implement iconv extension

Discussion in 'PHP' started by wpl12, Aug 21, 2006.

  1. wpl12

    wpl12 New Member

    how to implement iconv
    in phpinfo() page:
    Server API LiteSpeed
    Configuration File (php.ini) Path /usr/local/lsws/conf/php.ini
    extension_dir /usr/local/lsws/lib/

    i have copied iconv.so to /usr/local/lsws/lib/ this dir.and i have added extension=iconv.so to /usr/local/lsws/conf/php.ini,
    service lsws restart

    i can't see any iconv in phpinfo() page
    Last edited: Aug 21, 2006
  2. mistwang

    mistwang LiteSpeed Staff

    try "extension=../lib/iconv.so"
  3. wpl12

    wpl12 New Member

    I have implement eaccelerator extension at the same way.
    i just do this:
    cp eaccelerator.so /usr/local/lsws/lib/
    vi php.ini;
    and add extension=eaccelerator.so
    service lsws restart and it work well;

    I have done what you say,but it still dont work;
    the iconv.so's compile method:
    ./configure --with-php-config=/usr/local/php/bin/php-config
    make
    make install
    cp /usr/local/php/lib/php/extensions/no-debug-non-zts-20020429/iconv.so /usr/local/lsws/lib/
    Last edited: Aug 22, 2006
  4. xing

    xing LiteSpeed Staff

    ./configure --with-php-config=/usr/local/php/bin/php-config

    When you used above to configure iconv, is php-config the version from the operating system default or the one created by compiling php? The versions must match exactly or the compiled .so will not work. For php 4.4.3, you must use php-config from a 4.4.3 installation to compile the subsequent .so modules.

    Check litespeed error.log/stderr.log to see why there are any entries logged.

Share This Page