Skip to content
Snippets Groups Projects
Commit 495dda6f authored by jurgenhaas's avatar jurgenhaas
Browse files

ansible-inventories/arocom#51 Get PHP 5.3 work as FPM as well

parent 50927d43
No related branches found
No related tags found
No related merge requests found
# 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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment