Coder Social home page Coder Social logo

ansible-role-php5-fpm's Introduction

Ansible Role: php5-fpm

Build Status

Installs php5-fpm on Debian/Ubuntu linux servers.

Requirements

None.

Role Variables

Available variables are listed below, along with default values (see defaults/main.yml):

Create vhosts

php5_fpm_pools:
  - name: 'live'
    user: 'live'
    prefix: '/var/www/live/current'
    tmp_path: '/var/www/live/tmp'
    sessions_path: '/var/www/live/sessions'
    releases_path: '/var/www/live/releases'
    shared_path: '/var/www/live/shared'
    logs_path: '/var/www/live/logs'
    project_paths:
      - '/var/www/live/shared/media'
      - '/var/www/live/shared/var'
    php_admin_value:
      error_log: 'logs/php_errors.log'
      max_input_vars: 5000
      max_execution_time: 300
      memory_limit: '256M'

  - name: 'staging'
    user: 'staging'
    pm: ondemand
    pm_max_children: 2
    prefix: '/var/www/staging/current'
    tmp_path: '/var/www/staging/tmp'
    sessions_path: '/var/www/staging/sessions'
    releases_path: '/var/www/staging/releases'
    shared_path: '/var/www/staging/shared'
    logs_path: '/var/www/staging/logs'
    project_paths:
      - '/var/www/staging/shared/media'
      - '/var/www/staging/shared/var'
    php_admin_value:
      error_log: 'logs/php_errors.log'
      max_input_vars: 5000
      max_execution_time: 300
      memory_limit: '256M'

Remove vhosts

To remove vhosts remove them entirely or set state: absent

php5_fpm_pools:
  - name: 'live'
    ...
    state: absent

Custom folders

Custom folders are created when defined in project_paths

php5_fpm_pools:
  - name: 'live'
    ...
    project_paths:
      - '/var/www/live/shared/media'
      - '/var/www/live/shared/var'

php.ini variables

php_expose_php: "On"
php_memory_limit: "256M"
php_max_execution_time: "60"
php_max_input_time: "60"
php_max_input_vars: "1000"
php_realpath_cache_size: "32K"
php_realpath_cache_ttl: "120"
php_upload_max_filesize: "64M"
php_post_max_size: "32M"
php_date_timezone: "Europe/Berlin"
php_sendmail_path: "/usr/sbin/sendmail -t -i"
php_short_open_tag: false
php_error_reporting: "E_ALL & ~E_DEPRECATED & ~E_STRICT"
php_display_errors: "Off"
php_display_startup_errors: "Off"

APCu variables

php_apc_enabled_in_ini: true
apc_enabled: "1"
apc_shm_size: "256M"
apc_ttl: "7200"
apc_user_ttl: "7200"
apc_gc_ttl: "3600"
apc_cache_by_default: "1"
apc_filters: ""
apc_file_update_protection: "2"
apc_enable_cli: "0"
apc_max_file_size: "1M"
apc_stat: "1"
apc_include_once_override: "0"

Opcache variables

php_opcache_enabled_in_ini: true
php_opcache_enable: "1"
php_opcache_enable_cli: "0"
php_opcache_memory_consumption: "96"
php_opcache_interned_strings_buffer: "16"
php_opcache_max_accelerated_files: "4096"
php_opcache_max_wasted_percentage: "5"
php_opcache_validate_timestamps: "1"
php_opcache_revalidate_freq: "2"
php_opcache_max_file_size: "0"

Dependencies

None.

Example Playbook

- hosts: server
  roles:
    - { role: tschifftner.php5-fpm }

Supported OS

Ansible Debian Jessie Ubuntu 14.04 Ubuntu 12.04
2.1 Yes Yes Yes

License

MIT License

Author Information

ansible-role-php5-fpm's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.