Sr. Web Developer
mediabistro.com
US-NY-New York

Justtechjobs.com Post A Job | Post A Resume

Configuring PHP with ORACLE 8i Support
In this article, I will briefly describe how to compile PHP with ORACLE 8i support. When I tried to compile php with oracle support on Solaris 2.6, I received lots of problems. After tedious search on the internet, I have found a solution. I have following configuration:
  • ORACLE 8.1.6
  • PHP 4.0.6
  • Apache 1.3.19 (Already Installed)
Firstly unpack php as root:
 #tar zxvf php-4.0.6.tar.gz
 #cd php-4.0.6
Because apache is already installed, I want PHP to run as a dynamic Apache module. I ran the configure script as follows:
  ./configure --with-apxs=/www/bin/apxs --enable-track-vars \
              --with-oci8=/u01/app/oracle/product/8.1.6 \
              --with-oracle=/u01/app/oracle/product/8.1.6
This tells the configure script to build PHP as a shared Apache module and support for ORACLE. If your apxs path is different then /www/bin/apxs, replace /www/bin/apxs with your apxs path. Also /u01/app/oracle/product/8.1.6 is my $ORACLE_HOME path. If your $ORACLE_PATH is different replace /u01/app/oracle/product/8.1.6 with your $ORACLE_HOME path.
The first time I ran the configure script it has given following error:
 checking for Oracle-OCI8 support... yes
 checking Oracle Install-Dir... /u01/app/oracle/product/8.1.6/
 +--------------------------------------------------------------------+
 | Notice: |
 | If you encounter <defunc> processes when using a local Oracle-DB
 |
 | please recompile PHP and specify --enable-sigchild when configuring|
 | (This problem has been reported un Linux using Oracle >= 8.1.5) |
 +--------------------------------------------------------------------+
 checking Oracle version... 7.3
 configure: error: Unsupported Oracle version!
After adding --enable-sigchild parameter:
 ./configure --with-oci8=/u01/app/oracle/product/8.1.6 --with-apxs=/www/bin/apxs
        --enable-track-vars --with-oracle=/u01/app/oracle/product/8.1.6
        --enable-sigchild
And then it gives this error:
 checking for Oracle-OCI8 support... yes
 checking Oracle Install-Dir... /u01/app/oracle/product/8.1.6/
 checking Oracle version... 7.3
 configure: error: Unsupported Oracle version!
After searching on the internet, I found that there is a bug in php-4.0.6/configure file. I've to clarify here that this bug is not due to the php package but ONLY due to Oracle changes after version 8.1.5.
Oracle decided to change the "orainst" directory name since version 8.1.5 to "install" in the $ORACLE_HOME directory. Therefore the script cannot open the file called "unix.rgs" there! The configure script can not find oracle version so it always returns 7.3 as ORACLE_VERSION.
[ Next Page ]


Comments:
oci mysql functionsnkaiseng05/07/08 06:15
RE: PHP 5.0.2, Apache 2.0.52 and Oracle 9i clNUWAN12/14/05 05:15
Oracle 9i + Forms 6ipromit11/25/05 13:09
RE: how can i download php_oci8.dllsamir11/16/05 02:30
RE: PHP 5.0.2, Apache 2.0.52 and Oracle 9i clMathieu Riendeau10/31/05 12:42
whare data base is stored or showvikas07/23/05 04:10
how can i download php_oci8.dllfrank07/19/05 12:58
connecting to oracle with php 5.xMahdi Alikhani06/28/05 02:49
ORACLE 9i + WINDOWS98Marcela06/24/05 13:33
RE: inserting data from php-form into oracle.db satar04/27/05 02:19
how to connect Oracle 9 i with PHPparashar04/22/05 06:48
How to link formsKwesigabo04/20/05 12:09
RE: please help me to connect php with oracle amit more02/24/05 11:19
PHP AND ORACLE AND IIS CONFIGURATIONAMARNATH .M02/14/05 00:09
please help me to connect php with oracle jagan01/24/05 03:20
PHP 5.0.2, Apache 2.0.52 and Oracle 9i clientRamya01/13/05 06:41
Oracle with PHP problem (ora-24374)tola11/15/04 04:42
RE: PHP and Oracle 8i on windows 2000?Valentin01/08/04 01:44
Oracle 9i + Forms 6iRitesh08/20/03 06:16
RE: how to connect to Oracle Using PHPJorge Vázquez01/22/03 10:36
RE: what is 'i' in 8ifahmida12/25/02 13:15
RE: PHP-oracle-win2000ariel11/06/02 21:54
PHP and Oracle 8i on windows 2000?Tatiana11/02/02 22:05
how to connect to Oracle Using PHPHichem TOU10/30/02 11:12
Apache or IISJeff10/30/02 00:01
my questionsstudent 10/28/02 17:06
RE: how to connect oracle8i using PHP?dhyanendra10/26/02 02:38
variable value not capturevenugopal10/23/02 02:57
RE: Configuring PHP with ORACLE 8i SupportLuis Carlos Cabrera10/21/02 18:17
extensiones PHP para Oracle en LinuxPatricio10/18/02 13:55
RE: oracle formsFabian10/18/02 11:06
phplib.so missingAmadou10/16/02 17:16
RE: Oracle 9i (client only)Cardwell CUpp10/16/02 15:33
RE: what software are can be related to OracleTony10/16/02 04:10
RE: I am a chinses,I have a problemTony10/16/02 04:09
oracle formsahmed10/11/02 08:50
object group in oracle formsahmed10/11/02 08:49
Oracle 9i (client only)Cardwell CUpp10/07/02 14:21
PHP and Oracle 9i DatabaseNguyen Duc Man09/27/02 22:21
How retrieve images & caracter data together?engelberth09/24/02 18:54
what software are can be related to Oracleazli09/12/02 22:08
RE: what is 'i' in 8idba09/06/02 16:56
Probelms with Netware 6, PHP, Oracle, ApacheBerni09/06/02 04:19
i don't know how to use php's Oracle funtion?weis09/06/02 02:02
RE: what is 'i' in 8iHanumanthappa.J.09/02/02 02:58
RE: PHP-oracle-win2000killmaster08/29/02 05:45
For OracleKetan08/24/02 09:55
RE: PHP-oracle-win2000yakhoo08/06/02 05:14
OCIFetch* works very slowgoblin08/01/02 06:14
ocifetch* works very slowgoblin08/01/02 06:12
EnquiryM.V.Ramana Reddy07/31/02 01:11
Connect to Oracle from apache on NetwareSean07/24/02 12:20
what is 'i' in 8isalini07/23/02 22:30
I am a chinses,I have a problemjsczwxg07/13/02 09:45
RE: PHP-oracle-win2000Muhemedy07/10/02 17:42
how to connect oracle8i using PHP?souhail07/05/02 08:08
RE: Oracle 9i Personal Server and PHPFranck Touanen07/02/02 13:25
RE: operating system resource quota exceededSUSHIL GOSAVI07/02/02 04:55
OEM not workingNaveed07/01/02 22:56
How to config php on linux with oracle 8.1 NTChakravarthi P S06/24/02 02:24
details php forummike smith black06/23/02 02:31
Same problem!!!Marihuan Al Masur06/18/02 10:48
Connect Apache+PHP on Linux with Oracle NT?Marihuan Al Masur06/18/02 10:40
PHP-oracle-win2000Faruk ÇAçan06/12/02 02:20
ayuda de instalaciónHernan Chamorro06/07/02 20:04
how to connect oracle8i using PHP?budi06/07/02 15:01
RE: nclob-data and oracle 9Steve Grevemeyer05/29/02 21:05
RE: Oracle 9i Personal Server and PHPamor05/24/02 09:15
RE: make failed on php-4.2.1Buncis05/22/02 00:06
make failed on php-4.2.1Buncis05/21/02 01:21
RE: nclob-data and oracle 9torres05/17/02 07:13
Help - Can't Install for OracleSteve05/16/02 11:04
Starting from Scratch - PHP & OracleSteve05/16/02 08:35
RE: nclob-data and oracle 9torres05/16/02 05:22
RE: nclob-data and oracle 9Steve Grevemeyer05/14/02 23:54
nclob-data and oracle 9torres05/13/02 05:48
Conexion Oracle a un Servidor RemotoSantiago05/09/02 12:04
Oracle 9i + PHP + Apache 1.3. 24 Works!Steve Grevemeyer05/02/02 21:01
Oracle 9 && PHPasly04/30/02 20:47
php-4.1.2 make install???kurtservice04/30/02 02:20
RE: Oracle 8i on Red Hat linux 7.2Hendri04/26/02 08:44
RE: Problem with PHP compil'Jhon04/26/02 07:50
Problem with PHP compil'iubito04/25/02 04:12
Oracle 8i on Red Hat linux 7.2Shahul hameed04/21/02 14:42
inserting data from php-form into oracle.db Pawel04/21/02 12:26
RE: Can i set lib path to other machine in LANEric Angel04/18/02 16:28
RE: oracle 8i et php et apacheiubito04/18/02 03:29
php 4.1.2 works very vellIsmail YENIGUL04/16/02 11:16
What files in $ORAHOME does PHP need?Scott04/16/02 10:39
Best performace shiro04/12/02 01:01
How to configure php+PWS+oraclemyma04/11/02 15:01
RE: anyone know how to do this in windows?Marc04/11/02 07:47
Problem in Connecting Oracle with PHPKapil Sethi04/11/02 04:38
RE: How to configure php for oracle 8.1.7 Jeff04/08/02 16:01
RE: anyone know how to do this in windows?JHS04/04/02 17:32
PHP sessions to restarted ORACLEBoris04/03/02 23:03
oracle 8i et php et apacheviniboy04/03/02 19:11
My 2 cents - From Arsdigita to PHPJuan Juarez04/02/02 21:30
RE: Can i set lib path to other machine in LAN0mar03/27/02 19:11
RE: ORACLE STARTUP PROBLEM0mar03/27/02 19:07
using oracle 8i for project prototypingR.B.Malinga03/24/02 13:31
operating system resource quota exceededSow 03/20/02 20:22
Can i set lib path to other machine in LANsuresh03/19/02 04:33
TWO-TASK error ORA-03106Antoine Lemons03/13/02 11:47
RE: Oracle librairies problem ...RustyBoy03/13/02 11:09
RE: Oracle librairies problem ...varin valery03/12/02 05:43
Oracle librairies problem ...RustyBoy03/11/02 04:38
help php4.0.6&Oracle9i !varin valery03/08/02 10:01
Oracle 8.1.7 and PHP 4.0.6 on LinuxMorten Bruun03/08/02 08:25
aidez moi de configurer l'oracle 9i avec phpanouar03/07/02 14:00
demannde d'aide anouar ahmed03/07/02 13:29
PHP and remote OracleJason Lehman03/07/02 09:53
Oracle 9i Personal Server and PHPFranck Touanen03/06/02 13:21
RE: ORACLE STARTUP PROBLEMJose03/06/02 11:57
PHP does not like Oracle 9iSyl03/06/02 06:20
PHP+ ORACLE 8 + POSTGRESQL = apache diemarco03/04/02 05:10
To know more abt phpChandrasekar SP02/28/02 23:31
How to configure php for oracle 8.1.7 mdorn02/28/02 21:41
to know more abt phppankaj waghray02/27/02 11:40
RE: Any experiences with PHP and Oracle 9i?Johann02/27/02 01:48
RE: anyone know how to do this in windows?George Jempty02/25/02 09:20
RE: How to configure php for oracle 8.1.7 Chet West02/23/02 15:18
connectivity between php and oracle8ipriyank agarwal02/20/02 02:15
How to configure php for oracle 8.1.7 Erman Aykac02/18/02 08:52
RE: ORACLE STARTUP PROBLEMsubhankar saha02/18/02 02:24
RE: ORACLE STARTUP PROBLEMsubhankar saha02/18/02 02:21
php&ORACLE 8.1.x on SGI irix 6.5 not workingRuud Ross02/16/02 15:44
orainstall changeRaj Saini02/11/02 11:09
php 4.1.0 & oracle 8.1.5 (Remote installationMarkus Decke02/11/02 07:25
anyone know how to do this in windows?Anil02/11/02 07:17
RE: Any experiences with PHP and Oracle 9i?Thomas02/10/02 13:17
RE: ORACLE STARTUP PROBLEMGary02/08/02 16:48
RE: Any experiences with PHP and Oracle 9i?Martin Bach02/08/02 08:23
dynamic module for Oraclegillesg02/06/02 04:53
ORACLE STARTUP PROBLEMPavan Johal02/06/02 00:07
RE: Any experiences with PHP and Oracle 9i?Roman02/01/02 18:47
Any experiences with PHP and Oracle 9i?Thomas01/31/02 12:09
 

If you are looking for help, please post on the appropriate forum here. Your questions will be answered much more quickly.

Add A Comment:

Name:

Email:

Subject:

Message:

To reduce spam posts, messages are now manually approved

You are not [logged in]. That means your account will not get credit for this post.