My Oracle Support Banner

HTTP-500 Internal Server Error when Requesting /cgi-bin/ Scripts to HTTP Server Configured with ODL (OraLogMode Oracle) (Doc ID 556625.1)

Last updated on OCTOBER 04, 2018

Applies to:

Oracle HTTP Server - Version: and later   [Release: AS10gR2 and later ]
Information in this document applies to any platform.


Problem Statement:
In an Oracle Collaboration Suite installation, after enabling ODL logging, the HTTP Server is unable to execute any cgi script file from the /cgi-bin/ directory.

This causes the Calendar Admin pages (and any other cgi)  to return error HTTP-500 - Internal Server Error

To Reproduce:

1) Assuming the following cgi script located under : $ORACLE_HOME/Apache/Apache/cgi-bin :

more test.cgi

print "Content-type: text/html\n\n";
print "<html>test</html>";

2) Edit httpd.conf

3) Add

OraLogMode oracle
OraLogSeverity TRACE:8

4) Bounce OHS

5) Calling the URL http://host:port/cgi-bin/test.cgi will results in the following error :

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your
Please contact the server administrator, you@your.address and inform them of the time the error
occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Oracle-Application-Server-10g/ Oracle-HTTP-Server Server at ..."

6) The file access_log shows :

<ip> USER1 [11/Dec/2007:10:10:01 +0100] "GET /cgi-bin/test.cgi HTTP/1.1" 500 661

7) The file $OH/Apache/Apache/logs/oracle/log.xml shows :

<MSG_TEXT>Premature end of script headers:<ORACLE_HOME>/Apache/Apache/cgi-bin/test.cgi</MSG_TEXT>

8) After removing the following entries from httpd.conf and re starting OHS :

OraLogMode oracle
OraLogSeverity TRACE:8

9) Calling the URL http://host:port/cgi-bin/test.cgi displays the following output on the browser :


Also tested with other levels (e.g. OraLogSeverity INTERNAL_ERROR:10) and different location (e.g.
before the load of the modules : as recommended),


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.