From 495dda6f7f635aaed0f69853352ca254e2e08c14 Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Mon, 28 Mar 2016 14:35:30 +0200 Subject: [PATCH] ansible-inventories/arocom#51 Get PHP 5.3 work as FPM as well --- tasks/php53.yml | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/tasks/php53.yml b/tasks/php53.yml index 3e471cb..4eb8367 100644 --- a/tasks/php53.yml +++ b/tasks/php53.yml @@ -1,3 +1,5 @@ +# see https://www.howtoforge.com/how-to-use-multiple-php-versions-php-fpm-and-fastcgi-with-ispconfig-3-ubuntu-12.10 + --- # file: roles/php/tasks/php53.yml @@ -17,6 +19,27 @@ changed_when: false - block: + - name: "Install Packages" + apt: + pkg={{ item }} + state=installed + with_items: + - 'build-essential' + - 'libfcgi-dev' + - 'libfcgi0ldbl' + - 'libjpeg62-dbg' + - 'libmcrypt-dev' + - 'libssl-dev' + - 'libc-client2007e' + - 'libc-client2007e-dev' + + - name: "Link Client Lib" + file: + src='/usr/lib/x86_64-linux-gnu/libc-client.a' + dest='/usr/lib/libc-client.a' + state='link' + force=yes + - name: "Make sure an empty directory /tmp/php53 exists" file: path='/tmp/php53' @@ -39,10 +62,13 @@ - name: "Compile PHP 5.3" shell: "{{ item }} chdir=/tmp/php53/php-5.3.29" with_items: - - ./configure --with-libdir=/lib/x86_64-linux-gnu --enable-fpm --enable-mbstring --enable-sockets --with-zlib --with-openssl=/usr --enable-zip --with-imap-ssl + - ./configure --with-libdir=/lib/x86_64-linux-gnu --enable-fpm --enable-mbstring --enable-sockets --with-zlib --enable-zip --with-imap-ssl --with-imap --with-curl --with-mcrypt --with-gd --with-mysql --with-pdo-mysql --with-mysqli --with-gettext --with-jpeg-dir=/usr --with-png-dir=/usr --with-kerberos - make - make install + - name: "Add PHP-FPM to Boot-List" + command: update-rc.d php-fpm defaults + when: '"PHP 5.3.29" not in php_version_available.stdout' - name: "Copy PHP53 Libraries" -- GitLab