how to implement iconv extension

#1
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:
#3
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:

xing

LiteSpeed Staff
#4
./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.
 
Top