PDA

View Full Version : how to implement iconv extension


wpl12
08-20-2006, 11:09 PM
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

mistwang
08-21-2006, 06:31 AM
try "extension=../lib/iconv.so"

wpl12
08-21-2006, 08:42 PM
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/

xing
08-22-2006, 08:43 AM
./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.