Project

General

Profile

README

Ansible role to manage PHP installation for Apache Httpd

Introduction

This role installs the Apache Httpd module and configure your vhost to use PHP.

This role also expects to work hand-in hand with the OSAS httpd role
(ansible-role-ah-httpd). You may call this role with the httpd role
variable for the vhost, or even simpler call it right after you setup
the vhost.

Here is a complete example:

- name: Install web vhost
include_role:
name: httpd
tasks_from: vhost
- name: Install PHP
include_role:
name: httpd_php
vars:
extra_open_paths:
- /etc/app
- /usr/share/app

Variables

  • extra_open_paths: the open_basedir feature is used to restrict files accessible via PHP scripts. by default only document_root (if defined) is allowed, but you can add extra paths, defined as a list in this variable.
  • disable_dangerous_functions: disable a list of well known dangerous PHP function which could be exploited to do harm on your server
Statistics
| Branch: | Revision:

ansible-role-httpd_php @ master

Name Size Revision Age Author Comment
  defaults 7f0ea521 about 1 year Marc Dequènes Initial version
  meta b11982c4 about 1 year Marc Dequènes (Duck) add messing meta
  tasks d4531f41 10 months Marc Dequènes package module: use 'present' instead of 'insta...
  templates 7298b274 about 1 year Marc Dequènes (Duck) never set an empty open_basedir
  vars 7f0ea521 about 1 year Marc Dequènes Initial version
README.md 1.04 KB 7f0ea521 about 1 year Marc Dequènes Initial version

Latest revisions

# Date Author Comment
d4531f41 2018-05-28 08:16 Marc Dequènes

package module: use 'present' instead of 'installed'

b11982c4 2018-01-30 11:37 Marc Dequènes (Duck)

add messing meta

7298b274 2018-01-29 11:55 Marc Dequènes (Duck)

never set an empty open_basedir

50360f76 2018-01-29 11:07 Marc Dequènes (Duck)

rename global conffile as it conflicts on RedHat systems

194e9506 2018-01-29 11:06 Marc Dequènes (Duck)

add ansible managed comment in conffiles

d4fb406f 2018-01-22 15:19 Marc Dequènes (Duck)

workaround for Ansible#26294 was moved in httpd role

7f0ea521 2018-01-14 05:28 Marc Dequènes

Initial version

View all revisions | View revisions

Also available in: Atom