Click to See Complete Forum and Search --> : Covalent FastStart Server and Oracle


briedes
05-06-2003, 06:18 PM
I have the Covalent FastStart Server Installed on AIX. This incluse Apache and PHP. Now I want to use PHP to connect to Oracle. I think this requires a recompile of PHP with the --with-oracle option. The problem is that Covalent doesn't ship the PHP source code. Can I download the PHP source, compile it with oracle and overlay the covalent version of PHP?

tsinka
05-12-2003, 10:11 PM
Hi,

if you create a script like info.php:

<?PHP
phpinfo();
?>

and call it you'll see how php was compiled on top of the info page (the configure options). If there's something like --with-apxs it could work to recompile php. Download the sources from www.php.net and compile it with all the options shown on the info page and additionally with --with-oracle and/or --with-oci8. You must install at least the oracle client on the server and set up the environment variables correctly.

I don't know if this works but it could work. Make a backup of the libphp4.so if php has been compiled as a loadable module.

If the info page shows that php has been compiled with --with-apache you would also have to recompile apache.

In order to successfully compile php you might need to install some gnu tools like make, gcc ....

Regards,
Thomas

briedes
05-13-2003, 12:16 AM
I am using PHP with Apache, but I don't see --with-apache in the configuration statement for php. Do you think I need to add -with-apache to my configuration statement and recompile apache if it's not in there already.

Recompiling php will create a new version of libphp4.so. Is that the only file that is needed for php after the recompil?

Thanks for your help!!!
Steve

tsinka
05-13-2003, 04:11 AM
Hi,

you can also look at the httpd.conf how php is include. If there is a directive like LoadModule libphp4.so then it is used as DSO, if there is a directive using php with an Action in the Directory section of your httpd.conf then it is used as cgi. Is there a --with-apxs in the php output. Only one of the --with-apxs or --with-apache will appear at a time.