Skip to content

Compile Informix native client with PHP

June 30, 2012

1. Download php5.2.0 code.
wget route/php5.2.0.zip

2. Uncompress it.
unzip php-5.2.0.zip

3. Go to the informix extension folder.
cd php-5.2.0/ext/informix/

4. Compile the extension.
phpize
./configure
make
make install

5. Create an informix.ini file on php conf.d directory
nano /etc/php5/conf.d/informix.ini

6. Add the extension informix.so to the file
extension=informix.so

7. Restart apache
/etc/init.d/apache2 restart

8. To make sure that informix extension is installed and acepted by php:
php -m

There you see the php modules:
[PHP Modules]
...
iconv
informix
json
...

Advertisements
No comments yet

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: