From 8e17a3d539aaad1f5abd46aaee18b70f5d91e62a Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Wed, 11 May 2016 22:35:38 -0500 Subject: [PATCH] Fixes #123: Officially drop support for unmaintained PHP versions. --- README.md | 4 ++-- tasks/main.yml | 11 ----------- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index d769467..3426f39 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Installs PHP on RedHat/CentOS and Debian/Ubuntu servers. ## 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 @@ -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). -_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 diff --git a/tasks/main.yml b/tasks/main.yml index 3a0cc77..cf2db06 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -49,17 +49,6 @@ - include: install-from-source.yml 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. - include: configure.yml