mirror of
https://github.com/HanXHX/ansible-nginx.git
synced 2026-02-24 09:03:29 +07:00
PHP works on FreeBSD
This commit is contained in:
@@ -3,3 +3,20 @@
|
||||
- name: SET_FACT | FreeBSD web user
|
||||
set_fact:
|
||||
nginx_user: 'www'
|
||||
nginx_php_sockets:
|
||||
- host: '127.0.0.1'
|
||||
port: 9000
|
||||
|
||||
- name: PKGNG | Install needed packages
|
||||
pkgng: pkg={{ item }} state=present
|
||||
with_items:
|
||||
- php56
|
||||
- curl
|
||||
- fcgiwrap
|
||||
|
||||
- name: SERVICE | Force start services
|
||||
service: name={{ item }} state=started enabled=yes
|
||||
register: sf
|
||||
with_items:
|
||||
- php-fpm
|
||||
- fcgiwrap
|
||||
|
||||
@@ -141,6 +141,8 @@
|
||||
redirect_from:
|
||||
- 'www.test-php.local'
|
||||
template: '_php'
|
||||
use_error_log: true
|
||||
use_access_log: true
|
||||
- name: 'test-php-index.local'
|
||||
template: '_php_index'
|
||||
- name: 'test-proxy.local'
|
||||
|
||||
Reference in New Issue
Block a user