Skip to content

Latest commit

 

History

History
39 lines (22 loc) · 1.14 KB

README.md

File metadata and controls

39 lines (22 loc) · 1.14 KB

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.

Dependencies

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 i@djw.me

Licence

MIT