title: apache prevents php mail() from working (no SELinux)
body: <p><strong>What's working and what's not:</strong></p>
  
  <p>I have a custom sendmail wrapper script which only gets triggered by PHP-Cli but not when executing through Apache php_mod.</p>
  
  <ul>
  <li>When I run <code>$ php mail.php</code> everything just works fine, mail() returns true.</li>
  <li>When I run the same file through my Apache it does not work, mail() returns false.</li>
  <li>In both cases I get an entry in my <code>(php.ini) [mail function] mail.log = ...</code> file. </li>
  </ul>
  
  <p><strong>The Question:</strong></p>
  
  <p>So how would I fix this? 
  I want it to work through both PHP-Cli and Apache php_mod. </p>
  
  <p><strong>The Setup:</strong></p>
  
  <ul>
  <li>I set the <code>sendmail_path</code> variable in the php.ini file to my custom wrapper script.</li>
  <li>I do not run SELinux.</li>
  <li><p>I do not run AppArmor.</p></li>
  <li><p>PHP Version: 5.5.15</p></li>
  <li>Apache Version: 2.4.10</li>
  <li>System is: ArchLinux (Kernel: 3.15.5)</li>
  </ul>
  
  <p><strong>The Config:</strong></p>
  
  <p><a href="http://pastebin.com/knLQQZfS" rel="nofollow">httpd.conf</a></p>
  
  <p>Edit:</p>
  
  <p>As it stands the Apache has no access to the php.ini value of <code>sendmail_path</code>, how would I fix this?</p>
  
  <p>The list of <code>disable_functions</code> in my php.ini is empty.</p>
  
  <p>Output of <code>phpinfo()</code> on:</p>
  
  <ul>
  <li><a href="http://pastebin.com/gXXxVcmd" rel="nofollow">PHP-Cli</a></li>
  <li>Apache at pastebin ID: rjjjtUXZ</li>
  </ul>
  
  <p>Sorry but I'm currently not allowed to use more than 2 links in my question.</p>