<p dir="ltr">Doesn't suexec have a compiled in base dir of /var/www so it's not happy when you try and exec in other areas? However I haven't used suexec for a while so that may have changed.... </p>
<div class="gmail_quote">On 07/10/2014 12:55 PM, "Lonni J Friedman" <<a href="mailto:netllama@gmail.com">netllama@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi David,<br>
I was actually leaning towards some kind of apache configuration<br>
issue, but clearly i'm not the expert here, or I would have figured it<br>
out myself :)<br>
<br>
To answer your questions:<br>
Its a python script that I'm trying to run.<br>
$HOME is on the same partition as / (which is the same partition as<br>
the apache $DOCROOT). Its all on a development system, not anything<br>
resembling production.<br>
The user's UID is greater than 1000.<br>
I am using suexec.<br>
<br>
I'd be happy to answer any other questions.<br>
<br>
thanks<br>
<br>
<br>
On Mon, Oct 6, 2014 at 6:45 PM, David A. Bandel <<a href="mailto:david.bandel@gmail.com">david.bandel@gmail.com</a>> wrote:<br>
> Lonnie,<br>
><br>
> This is one of the most annoying, frustrating errors. All it says is that<br>
> the script didn't work. This may be permissions. It may be your $HOME<br>
> mount is non-executable. Difficult to say. You didn't say what kind of<br>
> script it was (Perl, PHP, shell). Is the UID of the user greater than 1000?<br>
> Are you using suexec?<br>
><br>
> I hate this error. Will be either one of the permissions issues above or<br>
> some Apache configuration issue (I'm betting on permissions).<br>
><br>
> David-<br>
><br>
> On Mon, Oct 6, 2014 at 5:57 PM, Lonni J Friedman <<a href="mailto:netllama@gmail.com">netllama@gmail.com</a>> wrote:<br>
>><br>
>> Howdy folks,<br>
>> Any cgi/apach experts still around? I'm trying to get cgi scripts<br>
>> working from $USERDIR on a new Fedora system, and they all fail with<br>
>> internal server errors. In the apache error log, I see:<br>
>> [cgi:error] End of script output before headers<br>
>><br>
>> If I copy the script over to the server $DOCROOT/cgi-bin then it runs<br>
>> just fine. So this proves the script itself isn't the problem.<br>
>> Additionally, non-cgi scripts are served just fine from $USERDIR.<br>
>> Both the cgi-bin directory and the script itself are executable for<br>
>> all users (755). This is what I've got set in the apache config for<br>
>> the USERDIR directory structure:<br>
>><br>
>> <Directory "/home/*/public_html"><br>
>> AllowOverride FileInfo AuthConfig Limit Indexes<br>
>> Options MultiViews Indexes SymLinksIfOwnerMatch ExecCGI<br>
>> Require method GET POST OPTIONS<br>
>> </Directory><br>
>><br>
>> <Directory /home/*/public_html/cgi-bin><br>
>> AllowOverride Indexes AuthConfig<br>
>> Options ExecCGI<br>
>> SetHandler cgi-script<br>
>> </Directory><br>
>><br>
>><br>
>> Anyone know what I'm missing?<br>
>><br>
>> thanks<br>
<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>
</blockquote></div>