Solved

CGI Premature End of Headers

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

707 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now