cgi scripts fail to run from userdir with "End of script output before headers" errors

Lonni J Friedman netllama at gmail.com
Mon Oct 6 15:57:26 PDT 2014


Howdy folks,
Any cgi/apach experts still around?  I'm trying to get cgi scripts
working from $USERDIR on a new Fedora system, and they all fail with
internal server errors.  In the apache error log, I see:
[cgi:error] End of script output before headers

If I copy the script over to the server $DOCROOT/cgi-bin then it runs
just fine.  So this proves the script itself isn't the problem.
Additionally, non-cgi scripts are served just fine from $USERDIR.
Both the cgi-bin directory and the script itself are executable for
all users (755).  This is what I've got set in the apache config for
the USERDIR directory structure:

<Directory "/home/*/public_html">
    AllowOverride FileInfo AuthConfig Limit Indexes
    Options MultiViews Indexes SymLinksIfOwnerMatch ExecCGI
    Require method GET POST OPTIONS
</Directory>

<Directory /home/*/public_html/cgi-bin>
        AllowOverride Indexes AuthConfig
        Options ExecCGI
        SetHandler cgi-script
</Directory>


Anyone know what I'm missing?

thanks


-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
L. Friedman                                    netllama at gmail.com
LlamaLand                       http://netllama.linux-sxs.org


More information about the Linux-users mailing list