Bitbucket pipeline dependency

My Bitbucket pipeline failed with the error message:

+ bundle exec hanami db prepare
sh: 1: sqlite3: not found
/usr/local/bundle/gems/hanami-model-1.2.0/lib/hanami/model/migrator/adapter.rb:214:in `block in execute'
/usr/local/bundle/gems/hanami-model-1.2.0/lib/hanami/model/migrator/adapter.rb:216:in `block in execute'

Apparently the Ruby Docker image is based on Debian, so I can just add

- apt-get update && apt-get install sqlite3

to my bitbucket-pipelines.yml file.

Setting up my Apache with Zend Framework on Debian Wheezy

I have a fresh install of Debian Wheezy. I use the official repositories. I’m configuring it for Zend Framework development. Other tutorials on the web describe all this a little bit differently but I am trying to set up Zend Framework for my own needs, so if this works to you then fine, if not then just look for another tutorial.

First I install Zend Framework itself.

sudo apt-get install zendframework zendframework-bin

I’ll also need MySQL support, and PHPUnit.

sudo apt-get install php5-mysql phpunit

Let’s see if Zend works, and create a test project.

zf create project ~/workspace/testproject testproject

It also suggest that I should create my VHOST file. Let’s add the suggested lines to the file:


The file needs to be enabled in Apache:

sudo a2ensite testproject

I’ll also need to add the testproject domain to my /etc/hosts file.

Zend will also need mod_rewrite, so I enable it too:

sudo a2enmod rewrite

I’ll also need xdebug, but it’s already installed so I only need the necessary settings in the php.ini file. I’ll just use the settings from this xdebug tutorial. Except that I didn’t install xdebug through PECL, so I’ll use


And then finally I restart Apache.

sudo service apache2 restart