-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cbd5a6e
commit 3762a1a
Showing
7 changed files
with
93 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
## | ||
# eAccelerator for PHP, an opcode cache. If you change this to a new version, | ||
# remember to change the paths all the way through. | ||
# | ||
# Ubuntu only. | ||
# | ||
- name: eAccelerator | Grab php development package | ||
action: apt pkg=php5-dev state=installed | ||
tags: eaccel | ||
|
||
- name: eAccelerator | Download the zip | ||
action: get_url url=http:https://downloads.sourceforge.net/project/eaccelerator/eaccelerator/eAccelerator%200.9.6.1/eaccelerator-0.9.6.1.zip dest=/root/eaccelerator-0.9.6.1.zip | ||
tags: eaccel | ||
|
||
- name: eAccelerator | Unarchive the zip | ||
action: command unzip /root/eaccelerator-0.9.6.1.zip chdir=/root creates=/root/eaccelerator-0.9.6.1 | ||
tags: eaccel | ||
|
||
- name: eAccelerator | PHPize | ||
action: command phpize chdir=/root/eaccelerator-0.9.6.1 creates=/root/eaccelerator-0.9.6.1/configure | ||
tags: eaccel | ||
|
||
- name: eAccelerator | Configure | ||
action: command ./configure chdir=/root/eaccelerator-0.9.6.1 creates=/root/eaccelerator-0.9.6.1/config.status | ||
tags: eaccel | ||
|
||
- name: eAccelerator | Make | ||
action: command make chdir=/root/eaccelerator-0.9.6.1 creates=/root/eaccelerator-0.9.6.1/modules/eaccelerator.so | ||
tags: eaccel | ||
|
||
- name: eAccelerator | Install | ||
action: command make install chdir=/root/eaccelerator-0.9.6.1 creates=/usr/lib/php5/20090626/eaccelerator.so | ||
tags: eaccel | ||
|
||
- name: eAccelerator | Copy config for PHP | ||
action: template src=templates/etc-php5-conf-d-eaccelerator-ini.j2 dest=/etc/php5/conf.d/eaccelerator.ini | ||
tags: eaccel | ||
|
||
- name: eAccelerator | Make a cache directory | ||
action: file path=/var/cache/eaccelerator state=directory owner=www-data mode=700 | ||
tags: eaccel | ||
|
||
- name: eAccelerator | And a log file | ||
action: file path=/var/log/eaccelerator.log state=file owner=www-data mode=666 | ||
tags: eaccel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/sh | ||
|
||
# Script for running the play on the localhost, everything included. | ||
ansible-playbook -c local --tags="common,drush" ./setup.yml | ||
ansible-playbook -c local --tags="common,drush,eaccel" ./setup.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
ubuntu-10.04-lamp-dev/templates/etc-php5-conf-d-eaccelerator-ini.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
; eAccelerator configuration | ||
extension = "/usr/lib/php5/20090626/eaccelerator.so" | ||
eaccelerator.shm_size = "{{ eaccel_shm_size }}" | ||
eaccelerator.cache_dir = "/var/cache/eaccelerator" | ||
eaccelerator.log_file = "/var/log/eaccelerator.log" | ||
eaccelerator.enable = "1" | ||
eaccelerator.optimizer = "1" | ||
eaccelerator.check_mtime = "1" | ||
eaccelerator.debug = "0" | ||
eaccelerator.filter = "" | ||
eaccelerator.shm_max = "0" | ||
eaccelerator.shm_ttl = "30" | ||
eaccelerator.shm_prune_period = "0" | ||
eaccelerator.shm_only = "0" | ||
eaccelerator.compress = "1" | ||
eaccelerator.compress_level = "9" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters