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
495dda6f
Commit
495dda6f
authored
8 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
ansible-inventories/arocom#51 Get PHP 5.3 work as FPM as well
parent
50927d43
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/php53.yml
+27
-1
27 additions, 1 deletion
tasks/php53.yml
with
27 additions
and
1 deletion
tasks/php53.yml
+
27
−
1
View file @
495dda6f
# see https://www.howtoforge.com/how-to-use-multiple-php-versions-php-fpm-and-fastcgi-with-ispconfig-3-ubuntu-12.10
---
# file: roles/php/tasks/php53.yml
...
...
@@ -17,6 +19,27 @@
changed_when
:
false
-
block
:
-
name
:
"
Install
Packages"
apt
:
pkg={{ item }}
state=installed
with_items
:
-
'
build-essential'
-
'
libfcgi-dev'
-
'
libfcgi0ldbl'
-
'
libjpeg62-dbg'
-
'
libmcrypt-dev'
-
'
libssl-dev'
-
'
libc-client2007e'
-
'
libc-client2007e-dev'
-
name
:
"
Link
Client
Lib"
file
:
src='/usr/lib/x86_64-linux-gnu/libc-client.a'
dest='/usr/lib/libc-client.a'
state='link'
force=yes
-
name
:
"
Make
sure
an
empty
directory
/tmp/php53
exists"
file
:
path='/tmp/php53'
...
...
@@ -39,10 +62,13 @@
-
name
:
"
Compile
PHP
5.3"
shell
:
"
{{
item
}}
chdir=/tmp/php53/php-5.3.29"
with_items
:
-
./configure --with-libdir=/lib/x86_64-linux-gnu --enable-fpm --enable-mbstring --enable-sockets --with-zlib --
with-openssl=/usr --
enable-zip --with-imap-ssl
-
./configure --with-libdir=/lib/x86_64-linux-gnu --enable-fpm --enable-mbstring --enable-sockets --with-zlib --enable-zip --with-imap-ssl
--with-imap --with-curl --with-mcrypt --with-gd --with-mysql --with-pdo-mysql --with-mysqli --with-gettext --with-jpeg-dir=/usr --with-png-dir=/usr --with-kerberos
-
make
-
make install
-
name
:
"
Add
PHP-FPM
to
Boot-List"
command
:
update-rc.d php-fpm defaults
when
:
'
"PHP
5.3.29"
not
in
php_version_available.stdout'
-
name
:
"
Copy
PHP53
Libraries"
...
...
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