Sunteți pe pagina 1din 3

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 informix
useradd -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/informix
chown informix.informix /opt/informix
chown 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/informix
export INFORMIXDIR
PATH=$PATH:$INFORMIXDIR/bin
export PATH
Extract the Client SDK tar file into /opt/informix.
mv client*.tar /opt/informix
cd /opt/informix
su 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 in
some 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_INFORMIX
The above command will descarog the file PDO_IN
FORMIX-1.0.0.tgz now need to unzip it, so:
tar zxf PDO_INFORMIX tar-1.0.0.tgz
Now we need to compile the PDO_INFORMIX, we need the phpize, to see if it is
installed, bowels PDO_INFORMIX folder (cd
PDO_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-devel
Reboot your Linux
Now if we are going to compile the PDO_INFORMIX, PDO_INFORMIX within the
folder, type the following commands:
phpize
./configure
make
make install
Search 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 / profile
Edit it and add the lines:
INFORMIXDIR = / opt / IBM / informix
export INFORMIXDIR
PATH = $ PATH: $ INFORMIXDIR / bin
export PATH
PDO.INI (Located in /etc/php.d/ pdo.ini ), there define the extent of informix
Agregale the following line:
extension = pdo_informix.so
SERVICES (located in / etc / services)
Edit it and add at the end of lines, these example, adds that apply to your
configuration:
# Local services
aplicaexec 1526 / tcp
sqlexec2 1527 / tcp
SQLHOSTS (located in opt / IBM / informix / etc / sqlhosts)
Edit it and add the following settings:
instancename onsoctcp ipdetuservidor sqlexec2
instancename onsoctcp ipdetuservidor aplicaexec
instancename is the name of the instance to which you would connect to informix.

onsoctcp is the protocol


sqlexec2 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

S-ar putea să vă placă și