Solved

CGI Premature End of Headers

Posted on 2008-06-21
4
948 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
  • 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Install Predefined Certificate on Ubunto 4 39
Adding more CPU cores to a Linux VM 5 99
Need BIOS update Linux for MSI X99A motherboard. 4 41
AWS ELB 5 79
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

809 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