Giter VIP home page Giter VIP logo

php_fpm's Introduction

PHP FPM

Build Status

A stand-alone PHP-FPM server running on Debian 9 ("Stretch") that will listen on a port instead of a socket.

Requirements

No specific requirements necessary

Role Variables

These are the variables defined in defaults/main.yml which can be overridden in vars/main.yml:

  • php_timezone: Sets the system timezone (default: UTC)
  • php_apt_list: The APT repository for PHP (default: "deb https://packages.sury.org/php/ {{ ansible_lsb.codename }} main")
  • php_apt_keyid: The GPG Key ID for the APT repository (default: AC0E47584A7A714D)
  • php_apt_key: The location of the APT GPG key for this APT repo (default: https://packages.sury.org/php/apt.gpg)
  • php_version: The PHP version you want to use (default: 7.3)
  • php_app_path: The location where your PHP files are kept (default: /var/www/app)
  • php_app_group: The application user group (default: php)
  • php_app_user: The application user name (default: php)
  • php_fpm_port: The port PHP-FPM listens on (default: 9000)
  • php_log_level: The log level you want to have (default: warn)
  • package: A list of PHP packages you want to install (default: most common ones)

The following variables are used in templates/php_fpm.conf:

  • ansible_host: The hostname or IP address of the hosts used for the web server (see Example Inventory)

Dependencies

No known dependencies

Example Inventory

[all]
php ansible_host=192.168.1.1

[php]
php

Example Playbook

- name: Provision boxes
  hosts: all
  become: true
  roles:
    - { role: all, tags: [ 'common', 'all' ] }
    
- name: Set up the PHP server
  hosts: php
  become: true
  roles:
    - { role: php-fpm, tags: [ 'php', 'fpm', 'web' ] }

License

MIT

Author Information

Michelangelo van Dam ([email protected])

php_fpm's People

Watchers

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