Install Oracle Instant Client and PHP OCI8 module

If you want to connect to an Oracle database with PHP, you can use Oracle’s Instant Client and the oci8 module from pear.

Download the Basic and the SDK packages from oracle.com. At the time of this writing, the filenames are instantclient-basic.zip and instantclient-sdk.zip.

Unzip these files in a new directory, e.g. /opt/oracle/instantclient.

Code:

sudo su
mkdir -p /opt/oracle/instantclient
cd /opt/oracle/instantclient
unzip instantclient-basic.zip
unzip instantclient-sdk.zip
echo /opt/oracle/instantclient >> /etc/ld.so.conf
ldconfig

The previous two lines are supposed to create symlinks named libclntsh.so and libocci.so which we will need later. In my case these symlinks were not created by ldconfig, so I created them manually.

Code:

ln -s libclntsh.so.11.1 libclntsh.so
ln -s libocci.so.11.1 libocci.so

In the next step we will download the oci8 module with pear. Pear is in the php-pear package.

Code:

apt-get install php-pear

Also, you need php5-dev and build-essential packages for compiling oci8 module.

Code:

apt-get install php-pear php5-dev build-essential

“Normally” we should be able to just use pecl install oci8 now, but apparently pear is not able to figure out where the instantclient libraries are. So we will just download the oci8 module and build it on our own.

Code:

mkdir -p /usr/local/src
cd /usr/local/src
pecl download oci8
tar xzf oci8-1.3.4.tgz
cd oci8-1.3.4
phpize
./configure --with-oci8=shared,instantclient,/opt/oracle/instantclient
make
make install

The oci8-1.3.4.tgz filename will of course change for newer releases.

To enable the oci8 module in the php.ini (/etc/php5/apache2/php.ini and /etc/php5/cli/php.ini), add a line
Code:

extension=oci8.so

(put this line after the examples starting with ;extension).

Now stop and start Apache. You should see the oci8 module in the output of phpinfo().

Good luck

  • Share/Bookmark

Hardy Party held in Tehran, Iran

Ubuntu
Hi All,

Ubuntu 8.04 Hardy Heron release party held in Tehran, Iran.

From Ubuntu 8.04 Hardy Heron Release Party

Ubuntu-ir Digest, Vol 8, Issue 3:

Hi all,

Yesterday the Iranian Team had a great hardy party held in Tehran. Although
it was the uni. exams time/date more than 50 attended the party and made a
great day for the Team.

We’ve had 5 presentation: Ubutnu Installation, Kubuntu 3.5 Tour, KDE 4
features and Tour, Desktop Effects in Ubuntu, Ubuntu Overview and Hardy
Tour, Iranian Team report and future plan.
We had also K/ED/Ubuntu CD, DVD, sticker, MUGs distribution.

I hope we can plan for an Install Fest in near future, since we really need
more face to face talk and free chatting.

And I would like to thank all contributers, all talkers, and Farhang Saraye
Rasane for the conference room. You guys all rock and did a great job,
THANKS A LOT :-)

Shots:
http://picasaweb.google.com/saeid.zebardast/Ubuntu804HardyHeronReleaseParty
The whole story and Presentations:
http://wiki.ubuntu-ir.org/Meetings/13870302

Bests,
Mehdi Hassanpour

Good luck

  • Share/Bookmark

Nested X11 environment session


Hi :)

Instead of using a full-blown new virtual X for developing software you can use Xephyr to embed your KDE 4 session into your working KDE 3 or other X11 environment.

If you want to get a minimal KDE session up and running, just launch Xephyr (available in Kubuntu as xserver-xephyr; Gentoo users compile x11-base/xorg-server with USE=”kdrive”):

Xephyr :1 -extension GLX &

You can now launch KDE:

export DISPLAY=:1
/path/to/kde4/bin/startkde &

For other X11 environment just change /path/to/kde4 like:

/usr/bin/startx &

or

/usr/bin/startkde &

or

/usr/bin/startxfce&

You can use “locate” command to find paths like:

locate startkde

Appendix
Happy Nowruz 1387 (Iranian new year holiday)

Good Luck

  • Share/Bookmark

KDE history in screenshots

KDE
Hi

I gathering some screenshots of KDE from KDE 1 to KDE 4. You can see more screenshots in KDE official site.

KDE 1

kde1.jpg

KDE 2

kde2.jpg

KDE 3

kde3.png
(more…)

  • Share/Bookmark

What's dpkg-reconfigure

Reconfigure an already installed package like gdm.

dpkg-reconfigure package_name

For example you can reconfigure X Server:

sudo dpkg-reconfigure xserver-xorg
  • Share/Bookmark