Skip to content

Commit f8cf7f6

Browse files
authored
Merge pull request #29 from dirkaholic/feature/php5.6-repo
Adjust PHP repository and settings to fix PHP 5.6 installation
2 parents da57e46 + 6755d78 commit f8cf7f6

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

playbooks/tasks/laravel-quickstart.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
- name: Copy across new php-fpm pool config for laravel
3232
template:
3333
src=php-fpm/laravel.conf.j2
34-
dest=/etc/php5/fpm/pool.d/laravel.conf
34+
dest=/etc/php/5.6/fpm/pool.d/laravel.conf
3535
notify:
3636
- restart php-fpm
3737

playbooks/tasks/php-fpm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
---
22
- name: Install php-fpm
3-
apt: name=php5-fpm state=present
3+
apt: name=php5.6-fpm state=present

playbooks/tasks/php.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
---
22
- name: Add apt repository for PHP 5.6
3-
apt_repository: repo='ppa:ondrej/php5-5.6'
3+
apt_repository: repo='ppa:ondrej/php/ubuntu'
44

55
- name: Install python-software-properties
66
apt: name=python-software-properties state=present
77

8-
- name: Install php
9-
apt: name=php5 state=present
8+
- name: Install php 5.6
9+
apt: name=php5.6 state=present
1010

1111
- name: Install required php packages
1212
apt: name={{ item }} state=present
1313
with_items:
14-
- php5-mysql
15-
- php5-intl
16-
- php5-cli
17-
- php5-mcrypt
14+
- php5.6-mysql
15+
- php5.6-intl
16+
- php5.6-cli
17+
- php5.6-mcrypt
1818

1919
- name: Enable the MCrypt extension
20-
shell: php5enmod mcrypt
20+
shell: phpenmod mcrypt
2121

2222
- name: Install composer
2323
shell: curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer

playbooks/tasks/symfony-standard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
- name: Copy across new php-fpm pool config for symfony
2626
template:
2727
src=php-fpm/symfony.conf.j2
28-
dest=/etc/php5/fpm/pool.d/symfony.conf
28+
dest=/etc/php/5.6/fpm/pool.d/symfony.conf
2929
notify:
3030
- restart php-fpm
3131

playbooks/vagrant.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
- hosts: all
3-
sudo: true
3+
become: true
44
vars:
55
document_root: /vagrant
66
www_user: vagrant
@@ -9,7 +9,7 @@
99
- name: restart nginx
1010
service: name=nginx state=restarted
1111
- name: restart php-fpm
12-
service: name=php5-fpm state=restarted
12+
service: name=php5.6-fpm state=restarted
1313
pre_tasks:
1414
- name: update apt cache
1515
apt: update_cache=yes

0 commit comments

Comments
 (0)