Home   My Faqts   Contributors   About   Help   Link to FAQTS  

faqts : Computers : Databases : Oracle : Linux Specific

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

85 of 99 people (86%) answered Yes
Recently 5 of 10 people (50%) answered Yes

Entry

Apache + PHP4 + OCI8 + Oracle

Jul 16th, 2000 03:46
Fabrice Legrand,


Here is my solution to compile Apache + PHP + OCI + Oracle on RedHat6.2 
Linux

Oracle 8 Client must be installed correctly before install Apache and 
PHP4

$ gunzip -c apache_1.3.x.tar.gz | tar xf -
$ cd apache_1.3.x
$ ./configure --with-layout=RedHat
$ cd ..
$ gunzip -c php-4.0.x.tar.gz | tar xf -
$ cd php-4.0.x
$ ./configure --with-oci8=/oracle/OraHome --with-
oracle=/oracle/OraHome --with-mysql --with-apache=../apache_1.3.x --
enable-track-vars
$ make
$ make install
$ cd ../apache_1.3.x
$ ./configure --with-layout=RedHat --activate-
module=src/modules/php4/libphp4.a
$ make
$ make install
$ cd ../php-4.0.x
$ cp php.ini-dist /usr/local/lib/php.ini

You can edit /usr/local/lib/php.ini file to set PHP options.

Edit your httpd.conf or srm.conf file and add:
AddType application/x-httpd-php .php

zorbat@citeweb.net