Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

CGI Premature End of Headers

Posted on 2008-06-21
4
Medium Priority
?
992 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 1500 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

Monthly Recap

May was a big month for new releases from Linux Academy! Take a look at what our team built recently in our blog. You can access the newest releases from our blog.

Question has a verified solution.

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

What You Need to Know when Searching for a Webhost Provider
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

715 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