mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-02-24 09:42:24 +01:00
Fix php 7.0 installation
This commit is contained in:
parent
2da074e4a0
commit
e5e734cd26
@ -1,4 +1,8 @@
|
||||
---
|
||||
- name: Update apt
|
||||
become: yes
|
||||
apt: update_cache=yes autoremove=yes
|
||||
|
||||
- name: Add ppa Repository
|
||||
sudo: yes
|
||||
apt_repository: repo=ppa:ondrej/{{ php.ppa }}
|
||||
@ -14,7 +18,13 @@
|
||||
- name: Install PHP Packages
|
||||
sudo: yes
|
||||
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
|
||||
|
||||
- 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
|
||||
lineinfile: dest=/etc/php5/cli/php.ini
|
||||
regexp=';opcache.enable_cli=0'
|
||||
line='opcache.enable_cli=1'
|
||||
lineinfile: dest=/etc/php/7.0/cli/php.ini
|
||||
regexp=';?opcache.enable=\d'
|
||||
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:
|
||||
install: '1'
|
||||
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:
|
||||
install: '1'
|
||||
|
Loading…
x
Reference in New Issue
Block a user