|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-03-29 13:07 UTC] 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 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 15:00:01 2025 UTC |
Try the following script (which mimicks the core of mail()'s functionality) and reply with what is returned: <?php $fd = array(0=>array('pipe','r'),1=>array('pipe','w'),2=>array('file','proc-open.error.log','w')); var_dump($pid = proc_open(ini_get('sendmail_path'), $fd, $fp)); /* Replace this with a mail address you have access to */ fwrite($fp[0],"To: your@emailaddress.com\r\n"); fwrite($fp[0],'Subject: This is a test. ' . date("n/j/Y H:i:s") . "\r\n\r\n"); fwrite($fp[0],"This is only a test.\r\n"); fclose($fp[0]); while (!feof($fp[1])) echo fgets($fp[1]); fclose($fp[1]); var_dump(proc_close($pid)); echo "---------------\nEnd of script\n------------\n"; readfile('proc-open.error.log'); ?>Well then, let's try taking Apache out of the equation. Use the CLI version of PHP (which should have been built along with the Apache DSO module, unless you explicitly specified --without-cli) with a simple mail script: #!/usr/local/bin/php <?php mail('your@emailaddress.com','This is another test','Still just a test.'); ?>