We are going to install php module “iconv” :
To search for the php module iconv in the module list installed in the server
root@sysadmin[~]# php -m|grep iconv
Installation
=============
root@sysadmin [~]# cd /home/cpeasyapache/src/php-5.2.9/ext/
root@sysadmin [/home/cpeasyapache/src/php-5.2.9/ext]# cd iconv/
root@sysadmin [/home/cpeasyapache/src/php-5.2.9/ext/iconv]# phpize
Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
===============
The phpize command is used to prepare the build environment for a PHP extension. In the following sample, the sources for an extension are in a directory named extname:
$ cd extname
$ phpize
$ ./configure
$ make
# make install
———————-
After the installation needed to add the extension in the php.ini
root@sysadmin [/usr/local/lib/php/extensions/no-debug-non-zts-20060613]# vi /usr/local/lib/php.ini
root@sysadmin [/usr/local/lib/php/extensions/no-debug-non-zts-20060613]# ls
./ ../ iconv.so*
root@sysadmin [/usr/local/lib/php/extensions/no-debug-non-zts-20060613]# vi /usr/local/lib/php.ini
root@sysadmin[/usr/local/lib/php/extensions/no-debug-non-zts-20060613]# /etc/init.d/httpd restart
To search for the php module iconv in the module list installed in the server
root@sysadmin[~]# php -m|grep iconv
Installation
=============
root@sysadmin [~]# cd /home/cpeasyapache/src/php-5.2.9/ext/
root@sysadmin [/home/cpeasyapache/src/php-5.2.9/ext]# cd iconv/
root@sysadmin [/home/cpeasyapache/src/php-5.2.9/ext/iconv]# phpize
Configuring for:
PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519
===============
The phpize command is used to prepare the build environment for a PHP extension. In the following sample, the sources for an extension are in a directory named extname:
$ cd extname
$ phpize
$ ./configure
$ make
# make install
———————-
After the installation needed to add the extension in the php.ini
root@sysadmin [/usr/local/lib/php/extensions/no-debug-non-zts-20060613]# vi /usr/local/lib/php.ini
root@sysadmin [/usr/local/lib/php/extensions/no-debug-non-zts-20060613]# ls
./ ../ iconv.so*
root@sysadmin [/usr/local/lib/php/extensions/no-debug-non-zts-20060613]# vi /usr/local/lib/php.ini
root@sysadmin[/usr/local/lib/php/extensions/no-debug-non-zts-20060613]# /etc/init.d/httpd restart
Comments
Post a Comment