Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
apache
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
apache
Commits
e1b405e5
Commit
e1b405e5
authored
9 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Switch to PHP-FPM
parent
6c667a1b
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tasks/apache.yml
+27
-0
27 additions, 0 deletions
tasks/apache.yml
templates/etc-apache2-conf-available-php5-fpm
+10
-0
10 additions, 0 deletions
templates/etc-apache2-conf-available-php5-fpm
with
37 additions
and
0 deletions
tasks/apache.yml
+
27
−
0
View file @
e1b405e5
...
...
@@ -8,6 +8,9 @@
with_items
:
-
apache2
-
apache2-utils
-
apache2-mpm-event
-
libapache2-mod-fastcgi
-
php5-fpm
notify
:
"
Apache
|
Restart
Apache"
-
name
:
"
Apache
|
Enable
some
required
modules"
...
...
@@ -18,8 +21,32 @@
-
rewrite
-
vhost_alias
-
ssl
-
actions
-
fastcgi
-
alias
notify
:
"
Apache
|
Restart
Apache"
-
name
:
"
Apache
|
Disable
modules"
apache2_module
:
name={{ item }}
state=absent
with_items
:
-
php5
notify
:
"
Apache
|
Restart
Apache"
-
name
:
"
Apache
|
Configuration
of
PHP-FPM"
template
:
src=etc-apache2-conf-available-php5-fpm
dest=/etc/apache2/conf-available/php5-fpm{{ apache_conf_ext }}
owner=root
group=root
mode=0644
notify
:
-
"
Apache
|
Restart
Apache"
-
name
:
"
Apache
|
Enable
PHP-FPM
configuration"
command
:
a2enconf php5-fpm
-
name
:
"
Apache
|
Turn
on
Extended
Status"
lineinfile
:
dest=/etc/apache2/apache2.conf
...
...
This diff is collapsed.
Click to expand it.
templates/etc-apache2-conf-available-php5-fpm
0 → 100644
+
10
−
0
View file @
e1b405e5
<IfModule mod_fastcgi.c>
AddHandler php5-fcgi .php
Action php5-fcgi /php5-fcgi
Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi
FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -socket /var/run/php5-fpm.sock -pass-header Authorization
<Directory /usr/lib/cgi-bin>
Require all granted
</Directory>
</IfModule>
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