# Help with deploying to apache 2.2 and mod\_fcgid/fast cgi

**URL:** <https://www.ruby-forum.com/t/help-with-deploying-to-apache-2-2-and-mod-fcgid-fast-cgi/131123>\
**Category:** Engines Development\
**Created:** [March 6, 2008, 7:39am UTC](https://www.ruby-forum.com/t/help-with-deploying-to-apache-2-2-and-mod-fcgid-fast-cgi/131123 "2008-03-06T07:39:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![elemental](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/6de8d8/32.png) [@elemental](https://www.ruby-forum.com/u/elemental)\
**Post date:** [March 6, 2008, 7:39am UTC](https://www.ruby-forum.com/t/help-with-deploying-to-apache-2-2-and-mod-fcgid-fast-cgi/131123/1 "2008-03-06T07:39:59Z")

</div>

Hello again. I’m having a bit of a problem deploying my plugin to my  
server. It works great locally when I use script/server to run my  
server.  
However when I install my plugin into an Apache 2.2 mod\_fcgid and fast  
cgi  
environment, it doesn’t work. I’m receiving a really strange error, and  
I’m  
not sure if its an installation issue. I’ve copied my plugin from  
“vendor/plugins/project\_rank” to the server and placed it in the same  
directory then ran these commands.

1. export RAILS\_ENV=production
2. script/generate plugin\_migration
3. rake db:migrate

Everything migrates great, but when I try to hit my plugin directly via  
“test-projects/project\_rank/list” or via my overridden route of  
“test-projects/projects/list”, I receive a 500 error from the server.  
When  
I check “error\_log”, I have the following error.

[error] [client 10.0.200.22] malformed header from script. Bad  
header=list:  
dispatch.fcgi

I’m not sure why I’m getting bad headers, its just a different route.  
The  
only thing different from test is the platorm, and I didn’t generate the  
plugin on this server. Did I miss a step when I installed it?

thanks,  
Todd

---

<div class="post-metadata">

**Author:** ![elemental](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/6de8d8/32.png) [@elemental](https://www.ruby-forum.com/u/elemental)\
**Post date:** [March 6, 2008, 9:11am UTC](https://www.ruby-forum.com/t/help-with-deploying-to-apache-2-2-and-mod-fcgid-fast-cgi/131123/2 "2008-03-06T09:11:10Z")

</div>

This is probably nothing specific to your plugin - as I recall this  
error can be cause by things like stray puts statements and things  
like that. The main rails mailing list should have some relevant  
information.

HTH,

James

On 6 Mar 2008, at 06:39, “Todd N.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![elemental](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/6de8d8/32.png) [@elemental](https://www.ruby-forum.com/u/elemental)\
**Post date:** [March 6, 2008, 9:21am UTC](https://www.ruby-forum.com/t/help-with-deploying-to-apache-2-2-and-mod-fcgid-fast-cgi/131123/3 "2008-03-06T09:21:09Z")

</div>

Thanks again James, you’re a lifesaver! I had some random “print”  
outputs  
left from when I was printing http post information trying to figure out  
how  
the sortable\_element AJAX code works. I removed the print statements  
and it  
works great. I think I’m finally done with my noob questions :).

Todd
