ID:               22954
 User updated by:  mclinden at informed dot net
 Reported By:      mclinden at informed dot net
-Status:           Feedback
+Status:           Open
 Bug Type:         Mail related
 Operating System: Linux 2.4.20
 PHP Version:      4.3.1
 New Comment:

I am running sendmail version 8.12.7. When I say that I can run it from
the command line I mean that if I execute at the command line the value
of sendmail_path from php.ini, it works fine. In fact, if I do an ldd
on sendmail it doesn't even NEED libclntsh.so.

Yes, libclntsh.so.9.0 exists in $ORACLE_HOME/lib and I added it to the
LD_PRELOAD environment variable for Apache.

As I said, all other services based upon PHP-Oracle work fine except
the mail command.


Previous Comments:
------------------------------------------------------------------------

[2003-03-29 20:07:51] [EMAIL PROTECTED]

(1) What version of sendmail are you running?  (Are you even running
sendmail? or a sendmail compatable MTA?)

(2) When you say "Sendmail runs fine from the command line" are you
passing a full email on stdin using the same command line switches as
specified in your php.ini?

Does libclntsh.so.9.0 exist anywhere on your system ( try: `find /
-name libclntsh.so.9.0 -print` ).  Does the path where that file is
located exist in your /etc/ld.so.conf ?  If you've just added it did
you remember to run `ldconfig`?

In any event, this is a sendmail problem and not a PHP one as PHP does
not use libclntsh itself.

------------------------------------------------------------------------

[2003-03-29 13:07:21] mclinden at informed dot net

Compiled PHP with --with-oci8=/usr/oracle/OraHome1 ...
Oracle 9.2
Apache 2.43

PHP compiles fine. Application works fine (all pages are dynamically
created using Oracle and PHP) EXCEPT the mail function fails with
Apache error log message:

/usr/sbin/sendmail: error while loading shared libraries:
libclntsh.so.9.0" cannot open shared object file: No such file or
directory.

sendmail works fine when called at the command line
apache/oci/etc configured according to PHP documentation (as I said,
ALL other Oracle accesses work perfectly)

Thanks in advance


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=22954&edit=1

Reply via email to