Solved

CGI Premature End of Headers

Posted on 2008-06-21
4
971 Views
Last Modified: 2013-12-16
Hi
. I have installed bugzilla however it seems to me there is something wrong with the CGI config of your vhost, i

I have setup bugzilla at

http://www.profitgyan.com/bugzilla/index.cgi

However it opens the index.cgi and it shows the code instead of executing it, or it just shows a blank page.

The vhost file includes the following

<Directory /var/www/vhosts/profitgyan.com/httpdocs/bugzilla>
AddHandler cgi-script .cgi
AllowOverride All
Options ExecCGI
Order allow,deny
Allow from all

</Directory>

I have checked everything the log file shows the following:

[Sat Jun 21 21:26:33 2008] [error] [client 194.126.21.5] Premature end of script headers: index.cgi, referer: http://www.profitgyan.com/bugzilla/
[Sat Jun 21 21:31:33 2008] [error] [client 194.126.21.5] Premature end of script headers: index.cgi, referer: http://www.profitgyan.com/bugzilla/
[Sat Jun 21 21:31:36 2008] [error] [client 194.126.21.5] Premature end of script headers: index.cgi, referer: http://www.profitgyan.com/bugzilla/
[Sat Jun 21 21:31:40 2008] [error] [client 194.126.21.5] Premature end of script headers: index.cgi, referer: http://www.profitgyan.com/bugzilla/ 

I have checked
http://httpd.apache.org/docs/2.0/howto/cgi.html#configuring


I even copied the files into the cgi-bin dir

http://www.profitgyan.com/cgi-bin/bugzilla/bugzilla/index.cgi

I.e. with bugzilla in the cgi-bin directory

[Sat Jun 21 21:52:28 2008] [error] [client 194.126.21.5] Premature end of script headers: index.cgi
[Sat Jun 21 21:52:35 2008] [error] [client 194.126.21.5] Premature end of script headers: index.cgi

0
Comment
Question by:http:// thevpn.guru
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 48

Accepted Solution

by:
Tintin earned 500 total points
ID: 21838434
Did you FTP the script from your PC?  If so, it's most likely it has windows end of line characters.

Either upload again in ASCII mode, or if you have command line access do:

dos2unix index.cgi

0
 
LVL 19

Author Comment

by:http:// thevpn.guru
ID: 21838661
it is a file of the bugzilla installation which was download through yum
0
 
LVL 48

Expert Comment

by:Tintin
ID: 21838951
In that case, from the command line what does

/var/www/vhosts/profitgyan.com/httpdocs/bugzilla/index.cgi

spit out?
0
 
LVL 19

Author Comment

by:http:// thevpn.guru
ID: 21881825
In the end it turned out that bugzilla and plesk are not that much of a great combination.
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question