Re: Oracle8i x PHP4 x Linux

From: Date: Fri, 04 Aug 2000 09:16:49 +0000
Subject: Re: Oracle8i x PHP4 x Linux
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-1780@lists.php.net to get a copy of this message
Deirdre Saoirse wrote: > > On Thu, 3 Aug 2000 thies@digicol.de wrote: > > > On Thu, Aug 03, 2000 at 01:10:57PM -0300, Andre Luiz Mendes Matos wrote: > > > Does someone know how to install and configure Oralce8i E.E. with PHP4 > > > on Linux RedHat ? > > No, I'm still trying. :( > > > > Syntax error on line 877 of /etc/httpd/conf/httpd.conf: > > > Cannot load /etc/httpd/modules/libphp4.so into server: libclntsh.so.8.0: > > > > please add the directory that contains libclntsh.so.8.0 > > (usually $ORACLE_HOME/lib) to your /etc/ld.so.conf file and > > run ldconfig. > > Well, that would be a start.... > > In my experience (four days of whacking at it as a background process), I > haven't gotten it working yet. I have tried the following. In my case: > > Oracle 8i (8.1.6) SE > Apache 1.3.12 > PHP 3.0.16 or 4.0.1p12 > > PHP3 PHP4 > module > w/o threads httpd wouldn't start httpd wouldn't start > w/threads httpd started, php httpd wouldn't start > files don't parse > > static build > w/o threads httpd wouldn't start httpd wouldn't start > w/threads httpd wouldn't start httpd wouldn't start > Some hints for using Apache/PHP4/Oracle8i on Linux: - Don't use a precompiled Apache - they are not able to load libphp4.so due to a glibc bug. Instead compile apache yourself, adding LDFLAGS=-lpthreads to your environment before configuring apache. See several mails by Thies regarding this issue. - Either add the directory that contains libclntsh.so.8.0 (usually $ORACLE_HOME/lib) to /etc/ld.so.conf file and run ldconfig OR modify apachectl (or whatever startscript you use) that it adds the above dir to the environment variable LD_LIBRARY_PATH. - Add ORACLE_HOME to the environment, either by setting it in the environment of the user starting apache or by also exporting it in the apache startscript. Otherwise you won't be able to connect to Oracle. Especially using PutEnv in httpd.conf does _not_ work. -Andreas -- Andreas Karajannis GMD National Research Center for Information Technology Schloss Birlinghoven, D-53754 Sankt Augustin Phone +49 2241 142948

« previous php.db (#1780) next »