Last active
December 22, 2015 14:58
-
-
Save johnmccabe/6488909 to your computer and use it in GitHub Desktop.
Checking how to install php with apache using puppetlabs-apache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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