Forge Home

php

Puppet module for php

17,511 downloads

5,188 latest version

4.6 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.

Version information

  • 6.0.0 (latest)
  • 5.2.0
  • 5.1.0
  • 5.0.6
  • 5.0.5
  • 5.0.4
  • 5.0.3
  • 5.0.2
  • 5.0.1
  • 5.0.0
  • 4.0.0
  • 3.0.0
  • 2.0.0
  • 1.8.2
  • 1.8.1
  • 1.8.0
  • 1.7.0
  • 1.6.0
  • 1.5.1
  • 1.5.0
  • 1.4.0
  • 1.3.1
  • 1.3.0
  • 1.2.0
  • 1.1.3
  • 1.1.2
  • 1.1.1
  • 1.1.0
  • 1.0.4
  • 1.0.3
  • 1.0.2
  • 1.0.1
  • 1.0.0
released Oct 30th 2018
This version is compatible with:
  • , , ,

Start using this module

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

Add this module to your Puppetfile:

mod 'aneesh-php', '6.0.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add aneesh-php
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install aneesh-php --version 6.0.0

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

aneesh/php — version 6.0.0 Oct 30th 2018

php Module

Overview

This module install and configure php server.

Usage

Default configuration:

include php

Custom configuration:

class { 'php':
    php                               => true,
    php_fpm                           => true,
    engine                            => 'On',
    short_open_tag                    => 'Off',
    asp_tags                          => 'Off',
    precision                         => '14',
    output_buffering                  => '4096',
    zlib_output_compression           => 'Off',
    implicit_flush                    => 'Off',
    unserialize_callback_func         => '',
    serialize_precision               => '17',
    open_basedir                      => '"/var/www/"',
    disable_functions                 => '',
    disable_classes                   => '',
    zend_enable_gc                    => 'On',
    expose_php                        => 'Off',
    max_execution_time                => '30',
    max_input_time                    => '60',
    memory_limit                      => '128M',
    error_reporting                   => 'E_ALL & ~E_DEPRECATED & ~E_STRICT',
    display_errors                    => 'Off',
    display_startup_errors            => 'Off',
    log_errors                        => 'On',
    log_errors_max_len                => '1024',
    ignore_repeated_errors            => 'Off',
    ignore_repeated_source            => 'Off',
    report_memleaks                   => 'On',
    track_errors                      => 'Off',
    html_errors                       => 'On',
    error_log                         => '/var/log/php_error.log',
    variables_order                   => '"GPCS"',
    request_order                     => '"GP"',
    register_argc_argv                => 'Off',
    auto_globals_jit                  => 'On',
    post_max_size                     => '8M',
    auto_prepend_file                 => '',
    auto_append_file                  => '',
    default_mimetype                  => '"text/html"',
    default_charset                   => '"UTF-8"',
    doc_root                          => '',
    user_dir                          => '',
    enable_dl                         => 'Off',
    file_uploads                      => 'On',
    upload_tmp_dir                    => '/tmp',
    upload_max_filesize               => '2M',
    max_file_uploads                  => '20',
    allow_url_fopen                   => 'On',
    allow_url_include                 => 'Off',
    default_socket_timeout            => '60',
    cli_server_color                  => 'On',
    pdo_mysql_cache_size              => '2000',
    pdo_mysql_default_socket          => '',
    sendmail_path                     => '/usr/sbin/sendmail -t -i',
    mail_add_x_header                 => 'On',
    sql_safe_mode                     => 'Off',
    odbc_allow_persistent             => 'On',
    odbc_check_persistent             => 'On',
    odbc_max_persistent               => '-1',
    odbc_max_links                    => '-1',
    odbc_defaultlrl                   => '4096',
    odbc_defaultbinmode               => '1',
    ibase_allow_persistent            => '1',
    ibase_max_persistent              => '-1',
    ibase_max_links                   => '-1',
    ibase_timestampformat             => '"%Y-%m-%d %H:%M:%S"',
    ibase_dateformat                  => '"%Y-%m-%d"',
    ibase_timeformat                  => '"%H:%M:%S"',
    mysql_allow_local_infile          => 'On',
    mysql_allow_persistent            => 'On',
    mysql_cache_size                  => '2000',
    mysql_max_persistent              => '-1',
    mysql_max_links                   => '-1',
    mysql_default_port                => '',
    mysql_default_socket              => '',
    mysql_default_host                => '',
    mysql_default_user                => '',
    mysql_default_password            => '',
    mysql_connect_timeout             => '60',
    mysql_trace_mode                  => 'Off',
    mysqli_max_persistent             => '-1',
    mysqli_allow_persistent           => 'On',
    mysqli_max_links                  => '-1',
    mysqli_cache_size                 => '2000',
    mysqli_default_port               => '3306',
    mysqli_default_socket             => '',
    mysqli_default_host               => '',
    mysqli_default_user               => '',
    mysqli_default_pw                 => '',
    mysqli_reconnect                  => 'Off',
    mysqlnd_collect_statistics        => 'On',
    mysqlnd_collect_memory_statistics => 'Off',
    pgsql_allow_persistent            => 'On',
    pgsql_auto_reset_persistent       => 'Off',
    pgsql_max_persistent              => '-1',
    pgsql_max_links                   => '-1',
    pgsql_ignore_notice               => '0',
    pgsql_log_notice                  => '0',
    sybct_allow_persistent            => 'On',
    sybct_max_persistent              => '-1',
    sybct_max_links                   => '-1',
    sybct_min_server_severity         => '10',
    sybct_min_client_severity         => '10',
    bcmath_scale                      => '0',
    session_save_handler              => 'files',
    session_use_strict_mode           => '0',
    session_use_cookies               => '1',
    session_use_only_cookies          => '1',
    session_name                      => 'PHPSESSID',
    session_auto_start                => '0',
    session_cookie_lifetime           => '0',
    session_cookie_path               => '/',
    session_cookie_domain             => '',
    session_cookie_httponly           => '',
    session_serialize_handler         => 'php',
    session_gc_probability            => '1',
    session_gc_divisor                => '1000',
    session_gc_maxlifetime            => '1440',
    session_referer_check             => '',
    session_cache_limiter             => 'nocache',
    session_cache_expire              => '180',
    session_use_trans_sid             => '0',
    session_hash_function             => '0',
    session_hash_bits_per_character   => '5',
    url_rewriter_tags                 => '"a=href,area=href,frame=src,input=src,form=fakeentry"',
    mssql_allow_persistent            => 'On',
    mssql_max_persistent              => '-1',
    mssql_max_links                   => '-1',
    mssql_min_error_severity          => '10',
    mssql_min_message_severity        => '10',
    mssql_compatibility_mode          => 'Off',
    mssql_secure_connection           => 'Off',
    tidy_clean_output                 => 'Off',
    soap_wsdl_cache_enabled           => '1',
    soap_wsdl_cache_dir               => '"/tmp"',
    soap_wsdl_cache_ttl               => '86400',
    soap_wsdl_cache_limit             => '5',
    ldap_max_links                    => '-1',
 }

php-fpm configuration:

class { 'php::php_fpm':
    user  => 'www-data',
    group => 'www-data',
}