Skip to content

Instantly share code, notes, and snippets.

@johnmccabe
Last active December 22, 2015 14:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnmccabe/6488909 to your computer and use it in GitHub Desktop.
Save johnmccabe/6488909 to your computer and use it in GitHub Desktop.
Checking how to install php with apache using puppetlabs-apache
class { 'apache':
default_vhost => false,
mpm_module => prefork
}
include apache::mod::rewrite
include apache::mod::php
apache::vhost { "www.testdomain.com":
vhost_name => '*',
port => '80',
docroot => '/var/testdomainwww/',
servername => 'testdomain.com',
docroot_group => 'www-data',
docroot_owner => 'www-data',
override => 'All'
}
# applied with:
# puppet apply apachetest.pp --debug --verbose
# tested with test.php containing:
# <?
# phpinfo();
# ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment