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
b80fcf9f
Commit
b80fcf9f
authored
7 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Install oci8.so for PHP 5.6
parent
445c69c8
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
tasks/oci-5.5.yml
+1
-1
1 addition, 1 deletion
tasks/oci-5.5.yml
tasks/oci-5.6.yml
+62
-0
62 additions, 0 deletions
tasks/oci-5.6.yml
tasks/php.yml
+0
-10
0 additions, 10 deletions
tasks/php.yml
with
63 additions
and
11 deletions
tasks/oci-5.5.yml
+
1
−
1
View file @
b80fcf9f
---
# file: roles/php/tasks/oci-5.5.yml
-
debug
:
msg="OCI8 for PHP 5.5 not implemented y
w
t"
-
debug
:
msg="OCI8 for PHP 5.5 not implemented y
e
t"
This diff is collapsed.
Click to expand it.
tasks/oci-5.6.yml
0 → 100644
+
62
−
0
View file @
b80fcf9f
---
# file: roles/php/tasks/oci-5.6.yml
-
name
:
"
Check
OCI
Requirement"
stat
:
path
:
'
/usr/lib/php/20131226/oci8.so'
register
:
oci_file
-
block
:
-
name
:
"
Enable
OCI
for
PHP"
copy
:
content
:
'
extension={{
item
}}.so'
dest
:
'
/etc/{{
php_base_dir
}}/{{
php_conf_dir
}}/{{
item
}}.ini'
owner
:
'
root'
group
:
'
root'
mode
:
'
644'
with_items
:
-
'
oci8'
-
name
:
"
Remove
possible
components
in
/tmp"
file
:
path
:
'
/tmp/{{
item
}}'
state
:
'
absent'
with_items
:
-
'
instantclient_11_2'
-
'
oracle_x64_11_2_0_3_0_oci8_so_php_5_6'
-
name
:
"
Make
available
Oracle
InstantClient"
command
:
scp -r {{ repository }}{{ item }} /tmp/
become
:
no
with_items
:
-
'
instantclient_11_2'
-
'
oracle_x64_11_2_0_3_0_oci8_so_php_5_6'
-
name
:
"
Remove
/usr/local/lib/instantclient_11_2"
file
:
path
:
'
/usr/local/lib/instantclient_11_2'
state
:
'
absent'
-
name
:
"
Move
Oracle
InstantClient
to
/usr/local/lib"
command
:
mv /tmp/instantclient_11_2 /usr/local/lib/
-
name
:
"
Move
oci8
to
/usr/lib/php"
command
:
mv /tmp/oracle_x64_11_2_0_3_0_oci8_so_php_4_5 /usr/lib/php/20131226/oci8.so
-
name
:
"
Change
ownership
for
Oracle
InstantClient"
file
:
path
:
'
{{
item
}}'
owner
:
'
root'
group
:
'
root'
recurse
:
yes
with_items
:
-
'
/usr/local/lib/instantclient_11_2'
-
name
:
"
Make
available
libclntsh.so"
file
:
src
:
'
/usr/local/lib/instantclient_11_2/libclntsh.so.11.1'
dest
:
'
/usr/local/lib/instantclient_11_2/libclntsh.so'
state
:
'
link'
when
:
not oci_file.stat.exists
This diff is collapsed.
Click to expand it.
tasks/php.yml
+
0
−
10
View file @
b80fcf9f
...
...
@@ -90,16 +90,6 @@
notify
:
-
"
Apache
|
Restart
Apache"
-
name
:
"
PHP
|
Enable
PHP
modules"
shell
:
php5enmod {{ item }}
with_items
:
-
mcrypt
-
imap
-
imagick
when
:
php_version|default('5.5') != '7' and php_conf_dir == 'mods-available'
notify
:
-
"
Apache
|
Restart
Apache"
-
name
:
"
PHP
|
Create
htdocs
directory
for
apc
status"
file
:
dest=/var/www/apc
...
...
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