mirror of
https://github.com/geerlingguy/ansible-role-php.git
synced 2024-11-24 12:06:02 +01:00
Fixes #123: Officially drop support for unmaintained PHP versions.
This commit is contained in:
parent
214e4bb8fa
commit
8e17a3d539
@ -6,7 +6,7 @@ Installs PHP on RedHat/CentOS and Debian/Ubuntu servers.
|
|||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
Must be running a separate web server, such as Nginx or Apache.
|
If you're using an older LTS release of Ubuntu or RHEL, with an old/outdated version of PHP, you need to use a repo or PPA with a maintained PHP version, as this role only works with [PHP versions that are currently supported](http://php.net/supported-versions.php) by the PHP community.
|
||||||
|
|
||||||
## Role Variables
|
## Role Variables
|
||||||
|
|
||||||
@ -16,7 +16,7 @@ Available variables are listed below, along with default values (see `defaults/m
|
|||||||
|
|
||||||
A list of the PHP packages to install (OS-specific by default). You'll likely want to install common packages like `php`, `php-cli`, `php-devel` and `php-pdo`, and you can add in whatever other packages you'd like (for example, `php-gd` for image manipulation, or `php-ldap` if you need to connect to an LDAP server for authentication).
|
A list of the PHP packages to install (OS-specific by default). You'll likely want to install common packages like `php`, `php-cli`, `php-devel` and `php-pdo`, and you can add in whatever other packages you'd like (for example, `php-gd` for image manipulation, or `php-ldap` if you need to connect to an LDAP server for authentication).
|
||||||
|
|
||||||
_Note: If you're using Debian/Ubuntu, you may also need to install `libapache2-mod-fastcgi` (for cgi/PHP-FPM) or `libapache2-mod-php5` (or a similar package depending on PHP version) if you want to use `mod_php` with Apache._
|
_Note: If you're using Debian/Ubuntu, you also need to install `libapache2-mod-fastcgi` (for cgi/PHP-FPM) or `libapache2-mod-php5` (or a similar package depending on PHP version) if you want to use `mod_php` with Apache._
|
||||||
|
|
||||||
php_enable_webserver: true
|
php_enable_webserver: true
|
||||||
|
|
||||||
|
@ -49,17 +49,6 @@
|
|||||||
- include: install-from-source.yml
|
- include: install-from-source.yml
|
||||||
when: php_install_from_source == true
|
when: php_install_from_source == true
|
||||||
|
|
||||||
- name: Check the installed version of PHP.
|
|
||||||
shell: '{{ php_executable }} -r "echo PHP_VERSION;"'
|
|
||||||
register: php_installed_version
|
|
||||||
changed_when: false
|
|
||||||
always_run: yes
|
|
||||||
|
|
||||||
- name: Disable opcache if PHP version is < 5.5.
|
|
||||||
set_fact:
|
|
||||||
php_opcache_enable: 0
|
|
||||||
when: "{{ php_installed_version.stdout | version_compare('5.5', operator='lt') }}"
|
|
||||||
|
|
||||||
# Configure PHP.
|
# Configure PHP.
|
||||||
- include: configure.yml
|
- include: configure.yml
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user