title: Apache CustomLog pipe to script fail
body: <p>I am trying to add a CustomLog to my apache httpd.conf file that pipes the logformat into a script. The test.py script is extremely simple right now becuase I am just trying to get it to work. When I run the script from the command line it works exactly as expected. When apache calls the script its calling it as root. I've set the user/group to root on that script and as a precaution I've done a chmod 777 on the script. The problem is as soon as I restart httpd the error_log file starts to fill up with this error. I've even tried to go so far as to make the script file an empty file but I still get this error. As a side note I do have another CustomLog pipe in my config file that splits and rotates my logs and it is working perfectly fine. </p>
  
  <h3>apache/logs/error_log output</h3>
  
  <pre><code>AH00106: piped log program '/hwnet/dtg_devel/web/boarddev/applications/test.py' failed unexpectedly
  </code></pre>
  
  <h3>httpd.conf</h3>
  
  <pre><code>LogFormat "%V %h %l %u %t \"%r\" %&gt;s %b \"%{Referer}i\" \"%{User-Agent}i\"" vcombined
  CustomLog "|/hwnet/dtg_devel/web/boarddev/applications/test.py" vcombined  
  </code></pre>
  
  <h3>test.py</h3>
  
  <pre><code>#!/usr/bin/python
  with open("/hwnet/dtg_devel/web/boarddev/applications/test.log", "a") as output_log:
      output_log.write("Hello World\n")
  </code></pre>
  
  <h3>System Configuration</h3>
  
  <pre><code>python: 2.6.6
  apache: 2.4.7
  </code></pre>