Forge Home

drupal_php

Install and configure php for use with Drupal (largely appropriate for Wordpress and other CMSes as well).

20,584 downloads

5,760 latest version

1.8 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 5.0.1 (latest)
  • 5.0.0
  • 4.0.0
  • 3.2.1
  • 3.2.0
  • 3.1.0
  • 3.0.2
  • 3.0.1
  • 3.0.0
  • 2.0.2
  • 2.0.1
  • 1.4.0
  • 1.3.0
  • 1.2.1
  • 1.2.0
  • 1.1.0
  • 1.0.0
  • 0.2.0
  • 0.1.1
  • 0.1.0
  • 0.0.6
  • 0.0.5
  • 0.0.4
  • 0.0.3
  • 0.0.2
  • 0.0.1
  • 0.0.0
released Jun 23rd 2017

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'zivtech-drupal_php', '5.0.1'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add zivtech-drupal_php
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install zivtech-drupal_php --version 5.0.1

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

zivtech/drupal_php — version 5.0.1 Jun 23rd 2017

Puppet Drupal PHP

The goal of this module is to create a simple and easy to use class for configuring php, specifically with Drupal in mind. It wraps the most complete and popular php module on the forge and adds a ton of convenience settings that can be set from hiera.

This module is thoroughly tested on Ubuntu 16.04 and should be useable right out of the box. It currently supports running php in apache with php-fpm and manages apache as well using puppetlabs-apache. The module has been architected with the intention of adding nginx support, we're just not there yet. PR's are welcome.

Setup

Installation

puppet module install zivtech-drupal_php

Simple setup

include drupal_php

Advanced Usage

class { 'drupal_php':
  memory_limit_server    => '128M',
  max_execution_time_cli => 60,
  post_max_size          => '8M',
}

More advanced configuration can be accomplished using hierra.

What drupal_php affects

  • Installs php, php-fpm, many extensions, and apache
  • Modifies some apache configurations (installing modules, optionally changing listen ports)
  • Installs a default fpm pool that listens at 127.0.0.1:9001
  • An apache vhost can be easily added using the apache php vhost resource provided by the php module.