Click to See Complete Forum and Search --> : Running cgi scripts for my users' webpages


TheBouleOfFools
04-07-2002, 01:37 AM
For the life of me I cannot get apache to run cgi scripts in users' cgi-bin directories. Scripts in bogo.ath.cx/cgi-bin/ work, but scripts in bogo.ath.cx/~user/cgi-bin/ just give me the forbidden access or the dreaded internal server error. The error logs say Premature end of script headers: /home/ness/public_html/cgi-bin/test.pl
Everything in the apache doc over cgi scripts gives me internal server errors. Anyone know what's up?

Sokertes
04-07-2002, 10:07 AM
As long as your permissions are correct on the folders and you have ScriptAlias correct for cgi-bin in /etc/httpd/conf/htppd.conf , then find where suexec is ( usually in /usr/sbin/suexec ) and rename it to suexec-old and restart apache.

That should work for you

TheBouleOfFools
04-07-2002, 02:11 PM
Weee that worked. Thanks!

[ 07 April 2002: Message edited by: TheBouleOfFools ]