Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davidwinter/puppet-phpfpm
Puppet module for setting up php-fpm and integrating with nginx
https://github.com/davidwinter/puppet-phpfpm
Last synced: 1 day ago
JSON representation
Puppet module for setting up php-fpm and integrating with nginx
- Host: GitHub
- URL: https://github.com/davidwinter/puppet-phpfpm
- Owner: davidwinter
- Created: 2012-04-08T18:24:35.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2013-03-28T11:32:12.000Z (over 11 years ago)
- Last Synced: 2024-05-01T13:39:28.065Z (7 months ago)
- Language: Puppet
- Homepage:
- Size: 113 KB
- Stars: 10
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# puppet-phpfpm
This puppet module aims to be lightweight and help you get an `nginx` virtual host with `php-fpm` up and running quickly. It was developed with `vagrant` in mind so that I could get a web environment up and running in as few lines as possible.
If you're looking for basic nginx functionallity instead, check out my other module, [nginx](https://github.com/davidwinter/puppet-nginx).
## Dependencies
* [nginx](https://github.com/davidwinter/puppet-nginx)
## Install
With librarian-puppet, add the following to your Puppetfile:
mod 'phpfpm',
:git => 'git://github.com/davidwinter/puppet-phpfpm.git'Then run `librarian-puppet install`.
## Usage
class { 'phpfpm': }
nginx::vhost { 'your.domain.com':
root => '/vagrant',
index => 'index.php',
template => 'nginx/vhost.php.conf.erb',
}The main thing to note here is that we're using the `vhost.php.conf.erb` template from the `nginx` module instead of the default one. If you need to customise the PHP settings in the `nginx` virtual host, you should copy the original, make changes and then store them in your own module.
## Author
David Winter
## Licence
MIT