Solved

CGI Premature End of Headers

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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will giveā€¦
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

623 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