cherokee / webserver

Cherokee Web Server
GNU General Public License v2.0
564 stars 104 forks source link

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

Closed danielniccoli closed 11 years ago

danielniccoli commented 11 years ago

Original author: rfviza...@gmail.com (October 10, 2008 17:23:29)

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: http://code.google.com/p/cherokee/issues/detail?id=153

danielniccoli commented 11 years ago

From alobbs on October 11, 2008 16:40:24 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?

danielniccoli commented 11 years ago

From ericd...@gmail.com on October 12, 2008 02:53:32 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

danielniccoli commented 11 years ago

From tah...@gmail.com on October 23, 2008 08:51:46 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.

danielniccoli commented 11 years ago

From skar...@gmail.com on October 23, 2008 17:04:20 Proposed-quick-dirty patch :)

danielniccoli commented 11 years ago

From alobbs on October 23, 2008 18:01:20 Looks fine.. good stuff! Please go ahead and commit it :-)

danielniccoli commented 11 years ago

From skar...@gmail.com on October 23, 2008 18:24:53 Fixed on r2206.

Thanks Alvaro. :)