Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ If you are using the default configuration, just create a `dump.sql` file in the
* memcached
* postfix
* vim, git, screen, curl, composer
* Zend Guard Loader 6

## Default credentials
### MySQL
Expand Down
2 changes: 2 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,11 @@

# Enable and configure chef solo
config.vm.provision :chef_solo do |chef|
chef.custom_config_path = "Vagrantfile.chef"
chef.add_recipe "app::packages"
chef.add_recipe "app::web_server"
chef.add_recipe "app::vhost"
chef.add_recipe "app::zendguardloader"
chef.add_recipe "memcached"
chef.add_recipe "app::db"
chef.json = {
Expand Down
1 change: 1 addition & 0 deletions Vagrantfile.chef
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Chef::Config.ssl_verify_mode = :verify_peer
5 changes: 5 additions & 0 deletions public/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@
<td>gd</td>
<td><i class="icon-<?php echo (function_exists('imagecreate') ? 'ok' : 'remove'); ?>"></i></td>
</tr>

<tr>
<td>zend loader</td>
<td><i class="icon-<?php echo (function_exists('zend_loader_enabled') ? 'ok' : 'remove'); ?>"></i></td>
</tr>
</table>

<h3>MySQL credentials</h3>
Expand Down
17 changes: 17 additions & 0 deletions site-cookbooks/app/recipes/zendguardloader.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Install Zend Guard Loader
bash "zend-guard-loader" do
user "root"
cwd "/tmp"
code <<-EOH
wget http://downloads.zend.com/guard/6.0.0/ZendGuardLoader-70429-PHP-5.4-linux-glibc23-i386.tar.gz
tar xzf ZendGuardLoader-70429-PHP-5.4-linux-glibc23-i386.tar.gz
cp ZendGuardLoader-70429-PHP-5.4-linux-glibc23-i386/php-5.4.x/ZendGuardLoader.so /usr/lib/php5/20100525+lfs/

file=/usr/lib/php5/20100525+lfs/ZendGuardLoader.so
echo zend_extension=$file > /etc/php5/conf.d/zend_extensions.ini
chmod 644 $file
chown 0:0 $file

service apache2 reload
EOH
end