Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
php
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ansible
Roles
php
Commits
6fd155d1
Commit
6fd155d1
authored
4 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
apache#10
Fix default configuration for FPM and Apache
parent
73fee769
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tasks/php.yml
+19
-1
19 additions, 1 deletion
tasks/php.yml
with
19 additions
and
1 deletion
tasks/php.yml
+
19
−
1
View file @
6fd155d1
...
@@ -159,11 +159,13 @@
...
@@ -159,11 +159,13 @@
-
name
:
FPM Default Pool Configuration
-
name
:
FPM Default Pool Configuration
template
:
template
:
src
:
php_pool.conf
src
:
php_pool.conf
dest
:
/etc/{{ php_base_dir }}/fpm/pool.d/
www
.conf
dest
:
/etc/{{ php_base_dir }}/fpm/pool.d/
default
.conf
owner
:
root
owner
:
root
group
:
root
group
:
root
mode
:
0644
mode
:
0644
when
:
(php_version_main|default(7) == 7) and php_fpm
when
:
(php_version_main|default(7) == 7) and php_fpm
notify
:
-
Restart PHP-FPM
-
block
:
-
block
:
-
name
:
Set facts for PHP
7
-
name
:
Set facts for PHP
7
...
@@ -186,6 +188,22 @@
...
@@ -186,6 +188,22 @@
mode
:
0644
mode
:
0644
notify
:
notify
:
-
Initial Logrotate
-
Initial Logrotate
-
name
:
Adjust apache config for default site
lineinfile
:
dest
:
/etc/apache2/sites-available/{{ apache_conf_default_prefix }}default{{ apache_conf_ext }}
regexp
:
'
{{
item.regexp
}}'
line
:
'
{{
item.line
}}'
with_items
:
-
regexp
:
'
ProxyPassMatch'
line
:
'
ProxyPassMatch
^/(.*\.php(/.*)?)$
fcgi://127.0.0.1:{{
php_fpm_port|default(9999)
}}/var/www{{apache_server_default_root}}/$1'
-
regexp
:
'
<Proxy
fcgi'
line
:
'
<Proxy
fcgi://127.0.0.1:{{
php_fpm_port|default(9999)
}}>'
when
:
apache_server_default
notify
:
-
Restart PHP-FPM
-
Restart Apache
when
:
php_fpm
when
:
php_fpm
tags
:
tags
:
-
logrotate
-
logrotate
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment