Quantcast
Channel: Pieter Vogelaar - Freelance DevOps engineer / PHP developer
Browsing all 27 articles
Browse latest View live

Git delete local and remote branch

First checkout a different branch than the one you want to delete, for example the master branch. git checkout origin master Solution 1 To delete your local and remote branch execute the following....

View Article


Solr 3.5 – Wildcard search as SQL LIKE

The Solr schema.xml has by default the “string” fieldType. <fieldType name="string" class="solr.StrField" sortMissingLast="true" /> Add the following fieldType to your schema.xml and use it as...

View Article


Ubuntu 12.04 – Install OpenPanel

The OpenPanel team doesn’t support Ubuntu 12.04 server officially yet, but I got it installed with a few alternate steps and it seems to work fine. I have it running in a production environment. The...

View Article

Image may be NSFW.
Clik here to view.

Ubuntu 12.04 + Nginx 1.2.6 + PHP-FPM server block / vhost example

On the internet there is not a clean and good example that is basic and follows the best practices. Below I created a working server block / vhost or virtual host example that works on Ubuntu 12.04...

View Article

Image may be NSFW.
Clik here to view.

Ubuntu 12.04 – Install Jetty 9

This article will show you how to install Jetty 9 on Ubuntu 12.04. Perform all steps as root. Jetty requires Java. Install Java first, I prefer openjdk instead of oracle jdk, but it should work both....

View Article


Image may be NSFW.
Clik here to view.

Ubuntu 12.04 – Install Solr 4 with Jetty 9

This tutorial requires that Jetty is installed as described at http://pietervogelaar.nl/ubuntu-12-04-install-jetty-9. In this tutorial we use an example project named “airport” and a core named...

View Article

Image may be NSFW.
Clik here to view.

Configure Nginx 1.2 as proxy for Jira 5

By default Jira runs on a certain port, in this example at port 8090. It is accessible by http://example.com:8090/. This tutorial will make the Jira application available at port 80 with jira as path...

View Article

Image may be NSFW.
Clik here to view.

Ubuntu 12.04 – Install Jenkins 1.4 with Jetty 9

This tutorial requires that Jetty is installed as described at http://pietervogelaar.nl/ubuntu-12-04-install-jetty-9. This tutorial describes how to install Jenkins 1.4 with a jenkins.war file with...

View Article


Image may be NSFW.
Clik here to view.

Vagrant – Shell provision example

Vagrant is a very awesome tool that makes it very easy to develop your projects in virtual machines on your laptop or PC. It’s a wrapper around VirtualBox. It also makes them very easy to maintain and...

View Article


Image may be NSFW.
Clik here to view.

PHP Xdebug + Netbeans + Vagrant

Xdebug is a very nice extension for PHP. It makes step by step debugging possible in your IDE. For most people it’s easy to install Xdebug and start debugging their web application on localhost with...

View Article

Ubuntu 12.04 – Install Postfix, Dovecot and Vimbadmin

This tutorial shows you how to install Postfix (2.9.6) with Dovecot (2.0.19) and the manage tool Vimbadmin (2.2.2) on Ubuntu Server 12.04. Perform all actions as root! Checks Hostname You should check...

View Article

Image may be NSFW.
Clik here to view.

Capistrano – Automatically start ssh-agent

Capistrano has the option to forward the local SSH agent to the remote server it wants to deploy on. But for this to work a SSH agent must be running and the key(s) you want to forward must be added...

View Article

Image may be NSFW.
Clik here to view.

Solr automatic core update as deployment step

For my projects I use the awesome tool Capistrano for deployment. In a project that uses Solr, I want to update the Solr core as a deployment step if the Solr configuration of that core is changed....

View Article


Image may be NSFW.
Clik here to view.

ZF Apigility + Doctrine + UniqueObject Validator

Building a REST API with Apigility that is built on top of Zend Framework 2 is awesome. I’m also a big fan of Doctrine. So I started with the zf-apigility-skeleton and added the zf-apigility-doctrine...

View Article

Image may be NSFW.
Clik here to view.

Ubuntu 14.04 – Install Selenium as service (headless)

This tutorial will show you how to install Selenium as a service on a Ubuntu 14.04 server. An Ubuntu server doesn’t have a GUI in contrast to Ubuntu desktop, so we will also need to setup a virtual...

View Article


Image may be NSFW.
Clik here to view.

Ubuntu 12.04 – Install Gearman and GearmanManager

Gearman is a wonderful job management system. It allows a web application to pass work to be done on other servers that may be more powerful or more capable in other ways. In addition, multiple jobs...

View Article

Image may be NSFW.
Clik here to view.

PHPUnit – How to mock multiple calls to the same method

When you write unit tests with PHPUnit there is a big chance that you have to mock several objects. If you want to write a unit test for your controller action and you use Doctrine ORM in your...

View Article


Image may be NSFW.
Clik here to view.

PHP-FPM + OPcache + Nginx + Capistrano stable deploy

Capistrano is great for deploying web applications. But the “current” symlink construction causes issues with PHP-FPM and OPcache enabled. PHP-FPM will display old pages after deployment or PHP-FPM...

View Article

Image may be NSFW.
Clik here to view.

Chef – Speed up development with vagrant-proxyconf and squid

If you do a lot of Chef development, you are creating cookbooks with recipes. But also converging, testing and destroying virtual machines with Test Kitchen that uses Vagrant. In this process, virtual...

View Article

Image may be NSFW.
Clik here to view.

Install ViMbAdmin with Chef

Two years ago I wrote a tutorial to install a complete Postfix mail server with Dovecot, SpamAssassin and ViMbAdmin. At the moment I am automating this tutorial for CentOS 7 with Chef. For ViMbAdmin I...

View Article
Browsing all 27 articles
Browse latest View live