500 Internal server error in apache 1.3

500 Internal server error in apache 1.3

Post by Donny Drummond » Sat, 19 Sep 1998 04:00:00



I have just compiled and installed Apache 1.3 on my Linux redhat 4.2
box.  I can serve pages through the htdocs directory but can not get
cgi's to work

I have a time.cgi:

#!/usr/local/bin/bash

echo "Content-type: text/html"
echo " "
echo " "
date

When I enter the URL http://mgb/cgi-bin/time.cgi i get:

Internal Server Error

The server encountered an internal error or misconfiguration and was
unable to complete your request.


them of the time the error occurred, and anything you might have done
that may
have caused the error.

The following are my conf files:

srm.conf: less the ADDIcons and ADDLanguages lines

DocumentRoot /usr/local/apache/htdocs
UserDir public_html
DirectoryIndex index.html index.cgi
FancyIndexing on
DefaultIcon /icons/unknown.gif
ReadmeName README
HeaderName HEADER
IndexIgnore .??* *~ *# HEADER* README* RCS
AccessFileName .htaccess
TypesConfig conf/mime.types
DefaultType text/plain
AddEncoding x-compress Z
AddEncoding x-gzip gz
LanguagePriority en fr de
Alias /icons/ /usr/local/apache/icons/
ScriptAlias /cgi-bin/ /usr/local/apache/cgi-bin/
AddType application/x-httpd-cgi .cgi
AddHandler cgi-script .cgi .pl
AddHandler imap-file map
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0

httpd.conf:

ServerType standalone
Port 80
HostnameLookups off
User nobody
Group #-1

ServerRoot /usr/local/apache
ErrorLog logs/error_log
LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog logs/access_log common
PidFile logs/httpd.pid
ScoreBoardFile logs/apache_runtime_status
ServerName mgb.speedsim
UseCanonicalName on
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 5
MaxSpareServers 10
StartServers 5
MaxClients 150
MaxRequestsPerChild 30

access.conf:

<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /usr/local/apache/htdocs>
Options Indexes FollowSymLinks
AllowOverride None
order allow,deny
allow from all
</Directory>
<Directory /usr/local/apache/cgi-bin>
AllowOverride None
Options ExecCGI Includes
</Directory>

Any help would be appreciated.

Donny L. Drummonds

978.251.3377 x346

 
 
 

500 Internal server error in apache 1.3

Post by Marc Slemk » Sat, 19 Sep 1998 04:00:00



Quote:>I have just compiled and installed Apache 1.3 on my Linux redhat 4.2
>box.  I can serve pages through the htdocs directory but can not get
>cgi's to work
>I have a time.cgi:

Your problem is that you are too inconsiderate to read the information
pointed out to you before submitting a bug report.  Not only do you
not include the requested information, but you go post to Usenet at the
same time.  Well, the real problem is you sending in a PR at the same
time you post to Usenet.

Please have some consideration for not wasting people's time.  Thanks.

Quote:>#!/usr/local/bin/bash
>echo "Content-type: text/html"
>echo " "

That isn't a blank line.

HTH.  HAND.

 
 
 

500 Internal server error in apache 1.3

Post by Shane Owen » Sat, 19 Sep 1998 04:00:00


On Fri, 18 Sep 1998 11:02:21 -0400, Donny Drummonds


>I have just compiled and installed Apache 1.3 on my Linux redhat 4.2
>box.  I can serve pages through the htdocs directory but can not get
>cgi's to work

>I have a time.cgi:

>#!/usr/local/bin/bash

>echo "Content-type: text/html"
>echo " "
>echo " "
>date

Try one of the sample CGI's that came with Apache and see if they
work.  If so your config is ok then that means a problem with your
script.

Shane

 
 
 

500 Internal server error in apache 1.3

Post by Aaron von Hunge » Sat, 19 Sep 1998 04:00:00


I believe the problem is that you absolutely need two carriage returns
after the Content-type: text/html line.  Looks like you have some other
whitespace in there.

> On Fri, 18 Sep 1998 11:02:21 -0400, Donny Drummonds

> >I have just compiled and installed Apache 1.3 on my Linux redhat 4.2
> >box.  I can serve pages through the htdocs directory but can not get
> >cgi's to work

> >I have a time.cgi:

> >#!/usr/local/bin/bash

> >echo "Content-type: text/html"
> >echo " "
> >echo " "
> >date
> Try one of the sample CGI's that came with Apache and see if they
> work.  If so your config is ok then that means a problem with your
> script.

> Shane