Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
php
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Eric Zillmann
php
Commits
9a9898f8
Commit
9a9898f8
authored
9 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Restart Apache (if present) from role PHP when needed
parent
3cbfdaf2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
defaults/main.yml
+1
-0
1 addition, 0 deletions
defaults/main.yml
handlers/main.yml
+9
-0
9 additions, 0 deletions
handlers/main.yml
tasks/php.yml
+12
-0
12 additions, 0 deletions
tasks/php.yml
with
22 additions
and
0 deletions
defaults/main.yml
+
1
−
0
View file @
9a9898f8
php_called_from_apache
:
false
php_needs_oci8
:
false
php_conf_dir
:
'
conf.d'
php_allow_call_time_pass_reference
:
'
on'
...
...
This diff is collapsed.
Click to expand it.
handlers/main.yml
0 → 100644
+
9
−
0
View file @
9a9898f8
---
# file: roles/php/handlers/php.yml
-
name
:
"
PHP
|
Restart
Apache"
debug
:
msg="Need to restart Apache server"
when
:
php_called_from_apache
changed_when
:
php_called_from_apache
notify
:
-
"
Apache
|
Restart
Apache"
This diff is collapsed.
Click to expand it.
tasks/php.yml
+
12
−
0
View file @
9a9898f8
...
...
@@ -18,6 +18,8 @@
-
php5-xdebug
-
php5-dev
-
php-pear
notify
:
-
"
PHP
|
Restart
Apache"
# TODO: Upgrade APCu on Ubuntu 14.04
# @see https://github.com/owncloud/core/issues/14175#issuecomment-74573088
...
...
@@ -31,6 +33,8 @@
owner=root
group=root
mode=0644
notify
:
-
"
PHP
|
Restart
Apache"
-
name
:
"
PHP
|
Cache
configuration
file,
apc.ini"
template
:
...
...
@@ -39,6 +43,8 @@
owner=root
group=root
mode=0644
notify
:
-
"
PHP
|
Restart
Apache"
-
name
:
"
PHP
|
Create
extra
directory
for
browscap"
file
:
...
...
@@ -55,6 +61,8 @@
owner=root
group=root
when
:
php_browscap
notify
:
-
"
PHP
|
Restart
Apache"
-
name
:
"
PHP
|
Enable
PHP
modules"
shell
:
php5enmod {{ item }}
...
...
@@ -62,6 +70,8 @@
-
mcrypt
-
imap
when
:
php_conf_dir == 'mods-available'
notify
:
-
"
PHP
|
Restart
Apache"
-
name
:
"
PHP
|
Create
htdocs
directory
for
apc
status"
file
:
...
...
@@ -83,6 +93,8 @@
when
:
php_needs_oci8
ignore_errors
:
yes
changed_when
:
oci_available.stdout != '/usr/lib/php5/20090626/pdo_oci.so'
notify
:
-
"
PHP
|
Restart
Apache"
-
include
:
oci.yml
when
:
repository is defined and php_needs_oci8 and oci_available.stdout != '/usr/lib/php5/20090626/pdo_oci.so'
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