Operating System - Linux
1752360 Members
6035 Online
108787 Solutions
New Discussion юеВ

HP-UX Web Server Suite -- How to Get OCI8 + PHP + Apache Working?

 
Zinky
Honored Contributor

HP-UX Web Server Suite -- How to Get OCI8 + PHP + Apache Working?

Anyone?

I just installed the latest HPWS Web Server Suite with both PHP 4 and 5.x, and it seems PHP was not compiled with OCI Support (via phpinfo.php).

Do I need to recompile? I can't find the sources as being bundled with HP's distibution though..

Also, what changes to httpd.conf, php.ini? I have the Oracle client on the same server...

Here's the HP Web Server Suite I am using:

http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=HPUXWSATW217

Thanks!
Hakuna Matata

Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler
3 REPLIES 3
Zinky
Honored Contributor

Re: HP-UX Web Server Suite -- How to Get OCI8 + PHP + Apache Working?


This is what I am getting with a test PHP Code to connect to an instance:

Fatal error: Call to undefined function OCILogon() in /opt/hpws/apache/htdocs/dba/dbc.php on line 2
Hakuna Matata

Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler
Sameer_Nirmal
Honored Contributor

Re: HP-UX Web Server Suite -- How to Get OCI8 + PHP + Apache Working?

You need to install the oracle client libraries which includes oci8.sl shared library. It is mentioned at the site you put up in your post.

"Oracle (oci8.sl) - Oracle client side libraries version 8.1.6 or later.
These libraries need to be installed on your system."

After installing the library, You have to put its path in php.ini

If you have oracle client installed, look for the library if installed and put it's path in the php.ini
Zinky
Honored Contributor

Re: HP-UX Web Server Suite -- How to Get OCI8 + PHP + Apache Working?

The below thread's author was kind enough to show me the needed steps:


http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1089842&admit=-682735245+1178199312401+28353475


Hakuna Matata

Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler