<div dir="ltr">It has been a while since I have done PHP stuff, but here are some thoughts..<div><br></div><div>Have you tried to run the script as the apache user. </div><div><br></div><div>Assuming the user is webuser</div><div><br></div><div>su - webuser</div><div><br></div><div>php yourphp.php</div><div><br></div><div>Also apache has logs, ldap has logs, see what those show you. </div><div><br></div><div>--</div><div>Tom</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 14, 2015 at 3:14 PM, Keith Larson <span dir="ltr">&lt;<a href="mailto:klarson@k12group.net" target="_blank">klarson@k12group.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="font:10pt/normal Segoe UI;margin:16px 16px 4px;font-size-adjust:none;font-stretch:normal"><div><div>I have a php script that works fine when I run it interactively at a bash prompt</div><div>php myscript.php</div><div> </div><div>part of what it does is establish a secure ldap connection.  the cert used for ldaps is self-signed.  this doesn&#39;t present a problem running it manually.</div><div> </div><div>when i execute that exact same command from a php web page it fails to establish the connection.</div><div> </div><div>is this a permissions issue with the user that is running apache?  or does apache need something to trust the self-signed cert?</div><span style="margin-bottom:5px;display:block"> </span></div></div>
<br>_______________________________________________<br>
colug-432 mailing list<br>
<a href="mailto:colug-432@colug.net">colug-432@colug.net</a><br>
<a href="http://lists.colug.net/mailman/listinfo/colug-432" rel="noreferrer" target="_blank">http://lists.colug.net/mailman/listinfo/colug-432</a><br>
<br></blockquote></div><br></div>