benluteijn / cherokee

Automatically exported from code.google.com/p/cherokee
0 stars 1 forks source link

Can not setup a FastCGI handler in a virtual server #153

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download & compile cherokee 0.9.4
2. Start cherokee-admin
3. Create a new "info source"
   nick: photoblog
   connection: localhost:1234
   interpreter: /usr/bin/php-cgi -b 1234
   add environment variables: PHP_FCGI_CHILDREN  5
4. Create a new virtual server
5. Add a new rule under "behavior" of type extensions with php as value
6. Setup FastCGI as handler and select in aaplication server the info
source that we created before (photoblog)
7. Save and launch cherokee

What is the expected output? What do you see instead?
Expected output is cherokee launched and working. Instead I get
"handler_fcgi.c:260: ERROR: fcgi handler needs a balancer"

Please use labels and text to provide additional information.

Debian Lenny with php5-cgi installed

Original issue reported on code.google.com by rfviza...@gmail.com on 10 Oct 2008 at 5:23

GoogleCodeExporter commented 9 years ago
By some reason the following option entry does not auto-summit.. 
(admin/ModuleBalancer.py:64)

self.AddPropOptions_Reload (table, "Application Server", "new_balancer_node", 
options, "")

Taher, ideas?

Original comment by alobbs on 11 Oct 2008 at 4:40

GoogleCodeExporter commented 9 years ago
workaround:
The select box for adding an info source to a FastCGI/SCGI handler doesn't 
autosave.
To get your source added:
   - select a source from the select box
   - toggle the "Allow X-Sendfile" checkbox
   - toggle it back

Original comment by ericd...@gmail.com on 12 Oct 2008 at 2:53

GoogleCodeExporter commented 9 years ago
skarcha noted the submission happened when new_balancer_node in PageAdvanced.py 
was 
changed to tmp!new_balancer_node. This is caused by def _op_handler in 
PageAjaxUpdate.py, but the problem isn't solved this way either. Will have to 
look 
into it.

Original comment by tah...@gmail.com on 23 Oct 2008 at 8:51

GoogleCodeExporter commented 9 years ago
Proposed-quick-dirty patch :)

Original comment by skar...@gmail.com on 23 Oct 2008 at 5:04

Attachments:

GoogleCodeExporter commented 9 years ago
Looks fine.. good stuff!
Please go ahead and commit it :-)

Original comment by alobbs on 23 Oct 2008 at 6:01

GoogleCodeExporter commented 9 years ago
Fixed on r2206.

Thanks Alvaro. :)

Original comment by skar...@gmail.com on 23 Oct 2008 at 6:24