mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-02 21:17:29 +02:00
Fix php 7.0 installation
This commit is contained in:
@@ -1,4 +1,8 @@
|
|||||||
---
|
---
|
||||||
|
- name: Update apt
|
||||||
|
become: yes
|
||||||
|
apt: update_cache=yes autoremove=yes
|
||||||
|
|
||||||
- name: Add ppa Repository
|
- name: Add ppa Repository
|
||||||
sudo: yes
|
sudo: yes
|
||||||
apt_repository: repo=ppa:ondrej/{{ php.ppa }}
|
apt_repository: repo=ppa:ondrej/{{ php.ppa }}
|
||||||
@@ -14,7 +18,13 @@
|
|||||||
- name: Install PHP Packages
|
- name: Install PHP Packages
|
||||||
sudo: yes
|
sudo: yes
|
||||||
apt: pkg={{ item }} state=latest
|
apt: pkg={{ item }} state=latest
|
||||||
with_items: php.packages
|
with_items: '{{ php.packages }}'
|
||||||
|
when: php.packages is defined
|
||||||
|
|
||||||
|
- name: Install PHP PECL Packages
|
||||||
|
become: yes
|
||||||
|
apt: pkg={{ item }} state=latest force=yes
|
||||||
|
with_items: '{{ php.pecl_packages }}'
|
||||||
when: php.packages is defined
|
when: php.packages is defined
|
||||||
|
|
||||||
- include: configure.yml
|
- include: configure.yml
|
||||||
|
@@ -1,10 +1,10 @@
|
|||||||
---
|
---
|
||||||
- name: ensure timezone is set in cli php.ini
|
|
||||||
lineinfile: dest=/etc/php5/cli/php.ini
|
|
||||||
regexp='date.timezone ='
|
|
||||||
line='date.timezone = {{ server.timezone }}'
|
|
||||||
|
|
||||||
- name: enabling opcache cli
|
- name: enabling opcache cli
|
||||||
lineinfile: dest=/etc/php5/cli/php.ini
|
lineinfile: dest=/etc/php/7.0/cli/php.ini
|
||||||
regexp=';opcache.enable_cli=0'
|
regexp=';?opcache.enable=\d'
|
||||||
line='opcache.enable_cli=1'
|
line='opcache.enable=1'
|
||||||
|
|
||||||
|
- name: ensure timezone is set in cli php.ini
|
||||||
|
lineinfile: dest=/etc/php/7.0/cli/php.ini
|
||||||
|
regexp='date.timezone ='
|
||||||
|
line='date.timezone = {{ server.timezone }}'
|
@@ -10,6 +10,8 @@ vagrant_local:
|
|||||||
php:
|
php:
|
||||||
install: '1'
|
install: '1'
|
||||||
ppa: php
|
ppa: php
|
||||||
packages: [php7.0-cli, php7.0-intl, php7.0-mcrypt, php7.0-mysql, php7.0-curl, php7.0-json, php7.0-xml]
|
packages: [php7.0-cli, php7.0-intl, php7.0-mcrypt, php7.0-mysql, php7.0-curl, php7.0-json, php7.0-xml, php7.0-mbstring]
|
||||||
|
pecl_packages: [php-zip]
|
||||||
|
|
||||||
xdebug:
|
xdebug:
|
||||||
install: '1'
|
install: '1'
|
||||||
|
Reference in New Issue
Block a user