I got an error with the fpm deb from this https://launchpad.net/~brianmercer/+archive/php/ ppa which uses a "ini" style config file instead of xml style. In order to make the php wizard work, and make it compatible with both versions, I modified the function __figure_fpm_settings() in php.py like this:
# Extract info 409 tmp = re.findall (r'<value name="listen_address">(.*?)</value>', content) 410 if tmp: 411 listen_address = tmp[0] 412 else: 413 tmp = re.findall (r'listen = (.*)', content) 414 print tmp 415 if tmp: 416 listen_address = tmp[0] 417 else: 418 listen_address = None 419 420 tmp = re.findall (r'<value name="request_terminate_timeout">(\d*)s*</value>', content) 421 if tmp: 422 timeout = tmp[0] 423 else: 424 tmp = re.findall (r'request_terminate_timeout[ ]*=[ ]*(\d*)s*', content) 425 print tmp 426 if tmp: 427 timeout = tmp[0] 428 else: 429 timeout = PHP_DEFAULT_TIMEOUT This is a quick fix, so please feel free to integrate/optimize for newer versions so that it does not matter if ini or xml style config files are used. David. On Jun 16, 2010, at 10:40 PM, kevin beckford wrote: > On Tue, Jun 15, 2010 at 10:16 PM, Ashvin Savani <[email protected]> wrote: >> I am sorry Juan, but I don't see command line to use with fpm. If anyone can >> share the command line would be great help. > > Why suffer like this? Reverse proxy to php-fpm. Php-fpm should > provide a place to send requests to. Cherokee as a process manager is > ok at best, so really you might be better using init, or upstart or > runit or daemontools or supervisor to run php-fpm and just proxy > requests through. > _______________________________________________ > Cherokee mailing list > [email protected] > http://lists.octality.com/listinfo/cherokee
_______________________________________________ Cherokee mailing list [email protected] http://lists.octality.com/listinfo/cherokee
