How to enable iconv on CPanel server?

The iconv API is the standard programming interface for converting character strings from one character encoding to another in Unix-like operating systems. All recent Linux distributions contain a free implementation of iconv() as part of the GNU C Library which is the C library for current Linux systems.

To use it, the GNU glibc locales need to be installed, which is provided as a separate package, named glibc-locale usually, and is normally installed by default.

Requirements:
[*] a CPanel server :army:
[*] WHM root access to the server
[*] glibc-locale
[*] a working compiler

Steps:
[*] login to your WHM as root at http://[your_server_ip]:2086 or https://[your_server_ip]:2087 or http://[your_server_ip]/whm.
[*] Go to "Software" on the left sidebar.
[*] Click "Apache Update".
[img]/files/45/apache_update.jpg[/img]
[*] Click "Load Previous Config" in order to work with your previous configuration.
[img]/files/45/load_previous_config.jpg[/img]
[*] Scroll down the page, find "Iconv (experimental)" text, check it.
[img]/files/45/iconv_checkbox.jpg[/img]
[*] No need to adjust other settings.
[*] Scroll down again till the bottom, click "Start Build".
[img]/files/45/start_build.jpg[/img]
[*] You'll see the compile proccess, do [b]nothing[/b], do not close the window, sit back and relax, just wait :clock: until the browser progress indocator stopped.

Voila, now you have iconv compiled with PHP.

PS: Do this at your own risk, we do not guarantee this will work on all CPanel servers!

No Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: