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
f05400aa
Commit
f05400aa
authored
9 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Get JailKit and PHP53 work together
parent
5f10f42f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tasks/php53.yml
+65
-8
65 additions, 8 deletions
tasks/php53.yml
templates/etc-php5-apache2-php.ini
+285
-190
285 additions, 190 deletions
templates/etc-php5-apache2-php.ini
with
350 additions
and
198 deletions
tasks/php53.yml
+
65
−
8
View file @
f05400aa
...
...
@@ -9,11 +9,68 @@
-
'
/etc/php5/cli53/conf.d/'
-
'
/etc/php5/cgi53/conf.d/'
# http://askubuntu.com/questions/462673/installing-php-5-3-in-ubuntu-14-04
# apt-get purge php5 && sudo apt-get install libxml2-dev
# wget http://in1.php.net/distributions/php-5.3.29.tar.bz2
# tar -xvf php-5.3.29.tar.bz2
# cd php-5.3.29
# ./configure
# make
# make install
-
name
:
"
Check
PHP
5.3
Requirement"
shell
:
php --version
register
:
php_version_available
changed_when
:
false
-
block
:
-
name
:
"
Make
sure
an
empty
directory
/tmp/php53
exists"
file
:
path='/tmp/php53'
state='{{ item }}'
with_items
:
-
absent
-
directory
-
name
:
"
Download
PHP
5.3"
get_url
:
url='http://in1.php.net/distributions/php-5.3.29.tar.bz2'
dest='/tmp/php-5.3.29.tar.bz2'
-
name
:
"
Unpack
PHP
5.3"
unarchive
:
src='/tmp/php-5.3.29.tar.bz2'
dest='/tmp/php53'
copy=no
-
name
:
"
Compile
PHP
5.3"
shell
:
"
{{
item
}}
chdir=/tmp/php53/php-5.3.29"
with_items
:
-
./configure
-
make
-
make install
when
:
'
"PHP
5.3.29"
not
in
php_version_available.stdout'
-
name
:
"
Copy
PHP53
Modules"
copy
:
src='php53/{{ item }}.so'
dest='{{ php53.extdir }}/{{ item }}.so'
owner='root'
group='root'
mode=644
with_items
:
'
{{
php53.modules
}}'
-
name
:
"
Enable
PHP53
Modules"
file
:
src='/etc/php5/{{ php_conf_dir }}/{{ item.0 }}.ini'
dest='/etc/php5/{{ item.1 }}/conf.d/{{ item.0 }}.ini'
state='link'
owner='root'
group='root'
mode='644'
with_nested
:
-
'
{{
php53.modules
}}'
-
[
'
cli53'
,
'
cgi53'
]
-
name
:
"
Create
PHP53
INI
Files"
template
:
src='etc-php5-apache2-php.ini'
dest='/etc/php5/{{ item }}/php.ini'
owner='root'
group='root'
mode='644'
with_items
:
-
'
cgi53'
-
'
cli53'
This diff is collapsed.
Click to expand it.
templates/etc-php5-apache2-php.ini
+
285
−
190
View file @
f05400aa
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