Differences
This shows you the differences between two versions of the page.
| Both sides next revision | |||
| code:php-fpm [2014/08/15 02:03] ::ffff:83.133.179.144 created | — (current) | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== php ====== | ||
| - | |||
| - | add php fpm service as user //ntmr// | ||
| - | |||
| - | |||
| - | adduser --system --home /devnull --no-create-home --group --disabled-login --gecos " | ||
| - | |||
| - | ===== fpm config ===== | ||
| - | |||
| - | <file init / | ||
| - | [notomorrow.de] | ||
| - | |||
| - | user = ntmr | ||
| - | group = ntmr | ||
| - | listen = '/ | ||
| - | pm = dynamic | ||
| - | pm.max_children = 5 | ||
| - | pm.start_servers = 2 | ||
| - | pm.min_spare_servers = 1 | ||
| - | pm.max_spare_servers = 3 | ||
| - | |||
| - | </ | ||
| - | |||
| - | ===== nginx config ===== | ||
| - | |||
| - | <file nginx / | ||
| - | location ~ \.php$ { | ||
| - | fastcgi_split_path_info ^(.+\.php)(/ | ||
| - | include | ||
| - | |||
| - | fastcgi_param | ||
| - | |||
| - | fastcgi_intercept_errors on; | ||
| - | fastcgi_pass unix:/ | ||
| - | } | ||
| - | </ | ||
| - | |||
| - | |||
| - | ==== sample host ==== | ||
| - | <file / | ||
| - | root / | ||
| - | index index.php index.html; | ||
| - | | ||
| - | | ||
| - | | ||
| - | |||
| - | include | ||
| - | |||
| - | ssl on; | ||
| - | ssl_certificate | ||
| - | ssl_certificate_key / | ||
| - | |||
| - | ssl_session_timeout | ||
| - | ssl_protocols | ||
| - | ssl_ciphers ALL: | ||
| - | ssl_prefer_server_ciphers | ||
| - | |||
| - | </ | ||
| - | |||
| - | ===== php-apps ===== | ||
| - | * [[dokuwiki]] | ||