pdo informix
DESCRIPTION
Instalacija Informix drajvera na PHP-uTRANSCRIPT
Create the Informix user and group. The Informix user acts as the root account for the Informix database. Keep this account highly secured. Creation can be done as follows (where xxxx is the password for the user Informix):groupadd informixuseradd -g informix -p xxxx -d /dev/null informix
Create the installation directory. The default location is /opt/informix. Also, the last two commands are to ensure that the directory is owned by the Informix user and group:su informix mkdir /opt/informixchown informix.informix /opt/informixchown informix.informix /opt/informix
Set up all the environment variables needed. The INFORMIXDIR should be the location you used to install Informix. Using the default is done as follows:INFORMIXDIR=/opt/informixexport INFORMIXDIRPATH=$PATH:$INFORMIXDIR/binexport PATH
Extract the Client SDK tar file into /opt/informix.mv client*.tar /opt/informixcd /opt/informixsu informix tar -xvf client*.tar
Run the installation script to install the Client SDK. After running the script, simply follow the on-screen instructions to complete the installation of the Client SDK portion of Informix:
./installclientsdk
1. As root, execute the command for the product./installclientsdk or ./installconn The installation program begins in console
mode.2. Enter 1 to continue the installation procedure. The Software License Agreement
appears.3. Read the license agreement and accept the terms; then enter 1 to continue the
installation procedure.4. Accept the default directory, or choose a different directory and enter 1 to
continue.5. Choose Typical for the suggested setups or choose Custom for more configuration
options.6. Enter 1 to continue the installation procedure. The screen will show summary
information including directory, components installed, and total size.7. When the installation is complete, enter 3 to finish and exit the wizard.
GO NOW INSTALL PDO_INFORMIX, follow these instructions:Place yourself insome folder where you want the software is downloaded, and type the following
command:wget -1.0.0.tgz http://www.pecl.php.net/get/PDO_INFORMIXThe above command will descarog the file PDO_INFORMIX-1.0.0.tgz now need to unzip it, so:tar zxf PDO_INFORMIX tar-1.0.0.tgzNow we need to compile the PDO_INFORMIX, we need the phpize, to see if it is
installed, bowels PDO_INFORMIX folder (cdPDO_INFORMIX) and type phpize simply, if you mark that is not installed, then
you need to install the development tools, with the following command:yum install php-develReboot your LinuxNow if we are going to compile the PDO_INFORMIX, PDO_INFORMIX within the
folder, type the following commands:phpize./configuremakemake installSearch the pdo_informix.so and paste it into / usr / lib / php / modules (if not
already).Up to this point, we assume that we already have the software installed, we need the
environment variables settings, php, services, hosts, etc., we must do the following:Environment variables:PROFILE / etc / profileEdit it and add the lines:INFORMIXDIR = / opt / IBM / informixexport INFORMIXDIRPATH = $ PATH: $ INFORMIXDIR / binexport PATHPDO.INI (Located in /etc/php.d/ pdo.ini ), there define the extent of informixAgregale the following line:extension = pdo_informix.soSERVICES (located in / etc / services)Edit it and add at the end of lines, these example, adds that apply to your
configuration:# Local servicesaplicaexec 1526 / tcpsqlexec2 1527 / tcpSQLHOSTS (located in opt / IBM / informix / etc / sqlhosts)Edit it and add the following settings:instancename onsoctcp ipdetuservidor sqlexec2instancename onsoctcp ipdetuservidor aplicaexecinstancename is the name of the instance to which you would connect to informix.
onsoctcp is the protocolsqlexec2 is the name of the service in linux (/ etc / services)HTTPD Located in (etc / init.d / httpd)Edit it and add the following lines:INFORMIXDIR = / opt / IBM / informix export INFORMIXDIR