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

Prepare PHP 5.3 on Ubuntu 14.04

parent 698df80c
No related branches found
No related tags found
No related merge requests found
......@@ -24,9 +24,29 @@ php_session_cache_expire: '180'
php_expose_php: 'Off'
php_browscap: false
php_sendmail_path: ''
php_short_open_tag: 'Off'
# apc.ini
apc_rfc1867: '1'
apc_shm_size: '256M'
apc_shm_segments: '1'
apc_num_files_hint: '0'
# php 5.3
php53:
modules:
- 'apc'
- 'curl'
#- 'gd' (needs libgd.so.2)
#- 'imagick'
- 'imap'
#- 'json'
- 'mcrypt'
#- 'memcached'
- 'mysql'
- 'mysqli'
- 'pdo_mysql'
#- 'readline'
- 'redis'
- 'xmlrpc'
extdir: '/usr/local/lib/php/extensions/no-debug-non-zts-20090626'
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
File added
---
# file: roles/php/tasks/php.yml
# TODO: optionally install PHP 5.3
# http://aw1.aweb1.paragon-es.de/index.php
# http://askubuntu.com/questions/462673/installing-php-5-3-in-ubuntu-14-04
# apt-get purge php5 && sudo apt-get install libxml2-dev
# wget http://in1.php.net/distributions/php-5.3.29.tar.bz2
# tar -xvf php-5.3.29.tar.bz2
# cd php-5.3.29
# ./configure
# make
# make install
- name: "PHP | Install required packages."
apt:
pkg={{ item }}
......@@ -57,6 +44,9 @@
notify:
- "PHP | Restart Apache"
- include: php53.yml
when: php_version|default('5.5') == '5.3'
- name: "PHP | Configuration file, fcgid.conf"
template:
src=fcgid.conf
......
---
# file: roles/php/tasks/php53.yml
- name: "Ensure PHP53 config directory"
file:
dest='{{ item }}'
state='directory'
with_items:
- '/etc/php5/cli53/conf.d/'
- '/etc/php5/cgi53/conf.d/'
# http://askubuntu.com/questions/462673/installing-php-5-3-in-ubuntu-14-04
# apt-get purge php5 && sudo apt-get install libxml2-dev
# wget http://in1.php.net/distributions/php-5.3.29.tar.bz2
# tar -xvf php-5.3.29.tar.bz2
# cd php-5.3.29
# ./configure
# make
# make install
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