https://github.com/express42/php
Deprecated!
https://github.com/express42/php
chef cookbooks deprecated
Last synced: over 1 year ago
JSON representation
Deprecated!
- Host: GitHub
- URL: https://github.com/express42/php
- Owner: express42
- Created: 2013-02-15T13:43:55.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2014-12-18T19:51:06.000Z (over 11 years ago)
- Last Synced: 2025-01-18T14:46:46.052Z (over 1 year ago)
- Topics: chef, cookbooks, deprecated
- Language: Ruby
- Homepage:
- Size: 226 KB
- Stars: 0
- Watchers: 23
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Description
Installs and configures php-fpm. Provides LWRPs for managing multiple instances.
# Requirements
## Platform:
* Ubuntu
# Attributes
* `node['php']['fpm']['pools_dir']` - Defaults to `"/etc/php5/fpm/pool.d"`.
* `node['php']['fpm']['main_conf']` - Defaults to `"/etc/php5/fpm/php-fpm.conf"`.
* `node['php']['fpm']['create_default_pool']` - Defaults to `"true"`.
# Recipes
* php::default - Installs and configures default php-fpm instance.
# LWRP
This cookbook provides resource `php_pool`.
## Actions
- add: Default action.
## Attribute Parameters
- name: Name of the pool.
- user: Defaults to "www-data".
- group: Defaults to "www-data".
- allow: Defaults to "127.0.0.1".
- address: Defaults to "127.0.0.1".
- port: Port to bind.
- backlog: Defaults to -1.
- request_terminate_timeout: Defaults to "60s".
- limits: Defaults to {:core=>0, :files=>1024, :requests=>500, :children=>5, :spare_children=>{:min=>1, :max=>3}}.
- php_var: Defaults to {}.
- php_user_var: Defaults to {}.
# Usage
You must include `recipe[php::default]` to you `run_list` or via `include_recipe`.
```
php_pool 'www' do
port '9000'
action :add
end
```
```
php_pool 'zabbix-runtime' do
address '127.0.0.1'
port '9200'
allow '127.0.0.1'
backlog { -1 }
limits core: 0, files: 1024, requests: 500, children: 5, spare_children: { min: 1, max: 3 }
php_var register_globals: true,
short_open_tag: true,
display_errors: false,
max_execution_time: 600,
error_reporting: 'E_ALL & ~E_DEPRECATED',
error_log: '/var/log/zabbix-php-error.log',
memory_limit: '128M',
post_max_size: '32M',
max_input_time: '300'
action :add
end
```
See fixture cookbook in `tests/fixtures/cookbooks`.
# License and Maintainer
Maintainer:: LLC Express 42 ()
License:: MIT