Re: PHP 5.2.1+ Informix is no longer bundled with PHP
Posted in 2007
If you do need the ifx_ stuff and promise to migrate to pdo_informix in the future, then here's my guide for opensuse 10.3. Hey, not all system admins can migrate other people's code to use pdo_informix during a system reinstall. 1. Install the Informix CSDK as usual, in my example to /opt/informix. Modify sqlhosts etc. 2. Install php5 and php5-devel package (might be simply php and php-devel). I'm running version 5.2.4 with opensuse 10.3 3. Download php version 5.2.0 source -- the last version to include informix: # wget http://ee2.php.net/get/php-5.2.0.tar.bz2/from/this/mirror 4. # tar jxf php-5.2.0.tar.bz2 && cd php-5.2.0/ext/informix 5. Make sure you also have libstdc++.so.5 installed, for me this meant installing this package: compat-libstdc++-5.0.7-86 6. # phpize 7. # ./configure --with-informix=/opt/informix 8. # make 9. # cp modules/informix.so /usr/lib/php5/extensions/ # (or wherever the php modules are on your system) 10. Enable the module in php.ini or with an .ini file in /etc/php5/conf.d/ 11. # php5 -m | grep informix # should return "informix" (might be: "php -m | grep informix" 12. It's installed, test it. Restart apache httpd if you use it. HTH, -- Aleksander Kamenik system administrator +372 6659 649 aleksander@krediidiinfo.ee Krediidiinfo AS http://www.krediidiinfo.ee/