Skip to content
Snippets Groups Projects
Commit 185cb50d authored by jurgenhaas's avatar jurgenhaas
Browse files

Finalize PHP53 setup

parent f05400aa
No related branches found
No related tags found
No related merge requests found
...@@ -34,11 +34,25 @@ apc_num_files_hint: '0' ...@@ -34,11 +34,25 @@ apc_num_files_hint: '0'
# php 5.3 # php 5.3
php53: php53:
libraries:
- file: 'libgd.so.2.0.0'
link: 'libgd.so.2'
- file: 'liblcms.so.1.0.19'
link: 'liblcms.so.1'
- file: 'libMagickCore.so.4.0.1'
link: 'libMagickCore.so.4'
- file: 'libMagickWand.so.4.0.1'
link: 'libMagickWand.so.4'
- file: 'libt1.so.5.1.2'
link: 'libt1.so.5'
liblinks:
- src: '/lib/x86_64-linux-gnu/libpng12.so.0'
link: 'libpng12.so.0'
modules: modules:
- 'apc' - 'apc'
- 'curl' - 'curl'
#- 'gd' (needs libgd.so.2) - 'gd'
#- 'imagick' - 'imagick'
- 'imap' - 'imap'
#- 'json' #- 'json'
- 'mcrypt' - 'mcrypt'
...@@ -50,3 +64,4 @@ php53: ...@@ -50,3 +64,4 @@ php53:
- 'redis' - 'redis'
- 'xmlrpc' - 'xmlrpc'
extdir: '/usr/local/lib/php/extensions/no-debug-non-zts-20090626' extdir: '/usr/local/lib/php/extensions/no-debug-non-zts-20090626'
libdir: '/usr/lib/x86_64-linux-gnu'
No preview for this file type
File added
File added
File added
File added
File added
File added
...@@ -37,19 +37,48 @@ ...@@ -37,19 +37,48 @@
- name: "Compile PHP 5.3" - name: "Compile PHP 5.3"
shell: "{{ item }} chdir=/tmp/php53/php-5.3.29" shell: "{{ item }} chdir=/tmp/php53/php-5.3.29"
with_items: with_items:
- ./configure - ./configure --enable-mbstring
- make - make
- make install - make install
when: '"PHP 5.3.29" not in php_version_available.stdout' when: '"PHP 5.3.29" not in php_version_available.stdout'
- name: "Copy PHP53 Libraries"
copy:
src='php53/libs/{{ item.file }}'
dest='{{ php53.libdir }}/{{ item.file }}'
owner='root'
group='root'
mode='644'
with_items: '{{ php53.libraries }}'
- name: "Ensure PHP53 Library Links"
file:
src='{{ php53.libdir }}/{{ item.file }}'
dest='{{ php53.libdir }}/{{ item.link }}'
state='link'
owner='root'
group='root'
mode='644'
with_items: '{{ php53.libraries }}'
- name: "Ensure extra Library Links"
file:
src='{{ item.src }}'
dest='{{ php53.libdir }}/{{ item.link }}'
state='link'
owner='root'
group='root'
mode='644'
with_items: '{{ php53.liblinks }}'
- name: "Copy PHP53 Modules" - name: "Copy PHP53 Modules"
copy: copy:
src='php53/{{ item }}.so' src='php53/{{ item }}.so'
dest='{{ php53.extdir }}/{{ item }}.so' dest='{{ php53.extdir }}/{{ item }}.so'
owner='root' owner='root'
group='root' group='root'
mode=644 mode='644'
with_items: '{{ php53.modules }}' with_items: '{{ php53.modules }}'
- name: "Enable PHP53 Modules" - name: "Enable PHP53 Modules"
......
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