<div dir="ltr"><font color="#333333" face="monospace, serif"><span style="line-height:23px">OK this got me so annoyed I installed F20 and then disabling selinux and installing httpd and wsgi just using the m.py I have it working with the following in userdir.conf (making sure ~/public_html/* is owned by the user and m.py is +x</span></font><div><font color="#333333" face="monospace, serif"><span style="line-height:23px"><br></span></font></div><div><br></div><div># contents of userdir.conf</div><div><br></div><div><div><IfModule mod_userdir.c></div><div>    #</div><div>    # UserDir is disabled by default since it can confirm the presence</div><div>    # of a username on the system (depending on home directory</div><div>    # permissions).</div><div>    #</div><div>    UserDir public_html</div><div><br></div><div>    #</div><div>    # To enable requests to /~user/ to serve the user's public_html</div><div>    # directory, remove the "UserDir disabled" line above, and uncomment</div><div>    # the following line instead:</div><div>    # </div><div>    #UserDir public_html</div><div></IfModule></div><div><br></div><div>#</div><div># Control access to UserDir directories.  The following is an example</div><div># for a site where these directories are restricted to read-only.</div><div>#</div><div><Directory "/home/*/public_html"></div><div>    AllowOverride FileInfo AuthConfig Limit Indexes</div><div>    Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec</div><div>    Require method GET POST OPTIONS</div><div></Directory></div><div><Directory "/home/*/public_html/cgi-bin"></div><div><span class="" style="white-space:pre">      </span>AllowOverride All </div><div><span class="" style="white-space:pre">        </span>Options ExecCGI</div><div><span class="" style="white-space:pre">    </span>SetHandler cgi-script</div><div></Directory></div></div><div><br></div><div><div><font color="#333333" face="monospace, serif"><span style="line-height:23px"><br></span></font></div><div><font color="#333333" face="monospace, serif"><span style="line-height:23px"><br></span></font><div><font color="#333333" face="monospace, serif"><span style="line-height:23px"><br></span></font></div><div><font color="#333333" face="monospace, serif"><span style="line-height:23px"><br></span></font></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 11 October 2014 08:35, Lonni J Friedman <span dir="ltr"><<a href="mailto:netllama@gmail.com" target="_blank">netllama@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Fri, Oct 10, 2014 at 2:32 PM, James McDonald<br>
<<a href="mailto:james@jamesmcdonald.id.au">james@jamesmcdonald.id.au</a>> wrote:<br>
> Had to trim reply's this thread is greater than > 40KB.<br>
><br>
> Have you tried piping the environment that suexec / apache is passing to the<br>
> m.py to a file and having a look?<br>
><br>
> e.g. env | /tmp/myout or something pythonesque?<br>
><br>
> Can you do that with STDERR too?<br>
<br>
</span>I can do that when running the script out of /var/www/cgi-bin, but<br>
there's nothing unusual there.<br>
<span class=""><br>
><br>
> May give you a hint.<br>
><br>
> And is your netlama UID > 500?<br>
<br>
</span>1000<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
--<br>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
L. Friedman                                    <a href="mailto:netllama@gmail.com">netllama@gmail.com</a><br>
LlamaLand                       <a href="http://netllama.linux-sxs.org" target="_blank">http://netllama.linux-sxs.org</a><br>
_______________________________________________<br>
Linux-users mailing list<br>
<a href="mailto:Linux-users@linux-sxs.org">Linux-users@linux-sxs.org</a><br>
<a href="http://mailman.celestial.com/mailman/listinfo/linux-users" target="_blank">http://mailman.celestial.com/mailman/listinfo/linux-users</a><br>
</div></div></blockquote></div><br></div>