Re: Php433 running on RedHat73 with support to OCI8
| From: | (Michael Mauch) | Date: | Thu, 09 Oct 2003 17:21:04 +0000 |
| Subject: | Re: Php433 running on RedHat73 with support to OCI8 | ||
| References: | 1 2 | Groups: | php.db php.install |
| Request: | Send a blank email to php-db+get-30935@lists.php.net to get a copy of this message | ||
Christopher Jones wrote:
> Adriano Rocha wrote:
>
> > I'm running Linux RedHat7.3 with PHP 4.3.3.
>
>> root # > ./configure --with-oci8 (no errors)
>> root # > make (no errors)
>> root # > make install (no errors)
>>
>> ... it does not create the oci8.so file.
That's perfectly normal. "--with-oci8" configures for built-in oci8
support, so you don't need a oci8.so file.
>> Obviously, php pages on OCILogon and related functions crashes with
>> undefined function error.
Look at a page that has just:
<?php
phpinfo()
?>
Probably you will see that your Apache still uses the old PHP, not the
new one that you built.
Your configure line builds a PHP binary, not a PHP module or CGI. Use
the configure line from your old PHP (it's printed in the phpinfo()
output) and append "--with-oci8".
> - Does the initial "make" compile oci8.c in anyway?
> - Is your ORACLE_HOME environment variable set before you run configure?
> - Perhaps you need to use --with-oci8=$ORACLE_HOME ?
> - Double check installation by seeing if an OCI8 section is returned by phpinfo()
>
> See also þ*mæu $PL=øJ
> http://otn.oracle.com/tech/opensource/php/apache/inst_php_apache_linux.html
Yes, and see also <http://www.php.net/oci8>, there a
couple more
environment variables that should be set (and exported) before Apache
is started.
Regards...
Michael