Skip to content

Instantly share code, notes, and snippets.

@uzulla
Created August 15, 2015 06:03
Show Gist options
  • Save uzulla/9e3e65ce96f9462580ab to your computer and use it in GitHub Desktop.
Save uzulla/9e3e65ce96f9462580ab to your computer and use it in GitHub Desktop.

Config

file.custom-handler:
  extension: .php
  fastcgi.spawn: "PHP_FCGI_CHILDREN=10 exec /root/.phpenv/versions/7.0.0beta3/bin/php-cgi"

pstree

     ├─screen─┬─bash───h2o─┬─perl───php-cgi───10*[php-cgi]
     │        │            ├─perl
     │        │            └─2*[{h2o}]

browser display

Internal Server Error

error_log

[lib/handler/fastcgi.c] in request:/b.php:connection failed:failed to connect to host

version

# /usr/local/h2o/bin/h2o -v
h2o version 1.4.2
OpenSSL: LibreSSL 2.1.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment