By default, installs the php packages appropriate for your platform and adds a php.ini to the default location for that platform.
:install: Installs PHP packages (default)
| Name | Type | Default |
|---|---|---|
| -------------- | ----------------- | --------------------------------------------------- |
packages |
String |
Platform-specific - see libraries/helpers.rb |
options |
[String, Array] |
|
conf_dir |
String |
Platform-specific - see libraries/helpers.rb |
ini_template |
String |
php.ini.erb (see templates/<distro>/php.ini.rb) |
ini_cookbook |
String |
php (this cookbook) |
directives |
Hash |
{} |
ext_dir |
String |
Platform-specific - see libraries/helpers.rb |
Install the default packages for your platform
php_install 'php' do
action :install
endSee test/cookbooks/test/recipes/community.rb for an example for installing from a community repository.