Forum Moderators: phranque
Mac OS X 2.8
PowerMac G4 Quicksilver
1G ram
1G DP
Problem at hand: Apache2 (Complete Apache2 V2.0.47 from Server Logistics)
CGi fails to run (error 500) (premature end of script headers) The test-cgi works fine. In the original directory. After creating another cgi-bin folder, as you will see below, and setting the scriptalais directive, and making the "first.pl" file ( with BBEdit 6.5 ) , the script fails to execute. Soooo, I trashed that folder and then copied and pasted the original cgi-bin folder and put it in its place. The test-cgi file works fine but the first.pl still fails. Any script for that matter except for the test-cgi. If it is a permissions issue then I fail to see it. I may have overlooked many other things, this is why im here now, with my "own kind.
Ive tried to submit as much info as possible .....HELP.....PLEASE
Here is how I have apache configured:
DocumentRoot "/Library/Apache2/htdocs/sites/example.com/public_html"
# First, we configure the "default" to be a very restrictive set of
# features.
#
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/Library/Apache2/htdocs/sites/example.com/public_html">
# The Options directive is both complicated and important. Please see
# [httpd.apache.org...]
# for more information.
#
Options Indexes FollowSymLinks
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
# ScriptAlias: This controls which directories contain server scripts.
# ScriptAliases are essentially the same as Aliases, except that
# documents in the realname directory are treated as applications and
# run by the server when requested rather than as documents sent to the client.
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#
ScriptAlias /cgi-bin/ "/Library/Apache2/htdocs/sites/example.com/public_html/cgi-bin/"
<IfModule mod_cgid.c>
#
# Additional to mod_cgid.c settings, mod_cgid has Scriptsock <path>
# for setting UNIX socket for communicating with cgid.
#
#Scriptsock logs/cgisock
</IfModule>
#
# "/Library/Apache2/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/Library/Apache2/htdocs/sites/example.com/public_html/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
#
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)
#
#AddHandler cgi-script .cgi
#
# For files that include their own HTTP headers:
#
#AddHandler send-as-is asis
#
# For server-parsed imagemap files:
#
#AddHandler imap-file map
#
# For type maps (negotiated resources):
# (This is enabled by default to allow the Apache "It Worked" page
# to be distributed in multiple languages.)
#
AddHandler type-map var
#
# Filters allow you to process content before it is sent to the client.
#
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add "Includes" to the "Options" directive.)
#
#AddType text/html .shtml
#AddOutputFilter INCLUDES .shtml