diff --git a/README.md b/README.md index fd578bd..f488d5d 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/Vagrantfile b/Vagrantfile index 4cf8cc9..ac0c611 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -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 = { diff --git a/Vagrantfile.chef b/Vagrantfile.chef new file mode 100644 index 0000000..dc06693 --- /dev/null +++ b/Vagrantfile.chef @@ -0,0 +1 @@ +Chef::Config.ssl_verify_mode = :verify_peer \ No newline at end of file diff --git a/public/index.php b/public/index.php index 3582e5f..85ef82c 100644 --- a/public/index.php +++ b/public/index.php @@ -132,6 +132,11 @@ gd + + + zend loader + +

MySQL credentials

diff --git a/site-cookbooks/app/recipes/zendguardloader.rb b/site-cookbooks/app/recipes/zendguardloader.rb new file mode 100644 index 0000000..b7e1335 --- /dev/null +++ b/site-cookbooks/app/recipes/zendguardloader.rb @@ -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 \ No newline at end of file