Ubuntu 12.04 – Install Postfix, Dovecot and Vimbadmin

0

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 that your server has a valid fqdn hostname (complete with the domain part):

hostname --fqd

If you get something like “localhost” or “mail” it’s not ok and you have to do some work on /etc/hosts and /etc/hostname

Time zone

Check your time with the command:

date

and eventually adjust the time zone as needed (this is More >

Xdebug

PHP Xdebug + Netbeans + Vagrant

3

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 some IDE, for example Netbeans. Because after installation of Xdebug, it just works.

But getting Xdebug remote to work if your website runs on a virtual machine / Vagrant box, it’s a bit trickier and requires a bit more configuration.

First let me explain how the Xdebug flow works. In my /etc/hosts file on my host machine I added the following line More >

Vagrant

Vagrant – Shell provision example

0

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 they can be used by a whole group of developers. This way all the developers that work on a project keep the same development environment. So that kicks the argument “But on my machine it works” out of the door.. finally!

Read all about it at http://www.vagrantup.com/.

There are a few provisioners available like Cheff, Puppet, More >

Jenkins

Ubuntu 12.04 – Install Jenkins 1.4 with Jetty 9

0

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 Jetty 9. I installed it on ubuntu 12.04 but it shouldn’t be very different on other linux distributions.

Perform all steps as root.

First of all get the latest jenkins war (web archive) file!

cd /opt/jetty/webapps
wget http://mirrors.jenkins-ci.org/war/latest/jenkins.war

Jetty will probably immediately detect the war file and does a hot deploy, but to be sure restart Jetty.

service jetty restart

I configured Jetty at port 8085, so More >

Nginx

Configure Nginx 1.2 as proxy for Jira 5

0

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 like: http://example.com/jira. Two configurations are possible, with or without SSL.

Make sure you perform all actions as root.

Without SSL

Change the file /opt/atlassian/jira/conf/server.xml file with:

nano /opt/atlassian/jira/conf/server.xml

Search for the part <Service name=”Catalina”> and make it look like:

<Service name="Catalina">         <Connector port="8090"            

More >

solr-4

Ubuntu 12.04 – Install Solr 4 with Jetty 9

0

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 “flight”.

cd /opt
wget http://apache.hippo.nl/lucene/solr/4.0.0/apache-solr-4.0.0.tgz
tar -xvf apache-solr-4.0.0.tgz
cp apache-solr-4.0.0/dist/apache-solr-4.0.0.war /opt/jetty/webapps/solr.war
cp -R apache-solr-4.0.0/example/solr /opt

Optionally you can copy the “dist” and “contrib” folder as while if you want to use the data import handler for example:

cp -r /opt/apache-solr-4.0.0/dist /opt/solr
cp -r /opt/apache-solr-4.0.0/contrib /opt/solr

Add to the bottom of /etc/default/jetty this line:

JAVA_OPTIONS="-Dsolr.solr.home=/opt/solr $JAVA_OPTIONS"

Add a Solr core, as example copy the More >

jetty-featured-proportions

Ubuntu 12.04 – Install Jetty 9

21

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.

apt-get install openjdk-7-jdk

Create a symlink for easier reference from jetty

mkdir /usr/java
ln -s /usr/lib/jvm/java-7-openjdk-amd64 /usr/java/default

Go to the opt directory

cd /opt

Download the latest Jetty distribution (9.x).

wget "http://eclipse.org/downloads/download.php?file=/jetty/stable-9/dist/jetty-distribution-9.0.0.M3.tar.gz&r=1"
mv download.php\?file\=%2Fjetty%2Fstable-9%2Fdist%2Fjetty-distribution-9.0.0.M3.tar.gz\&r\=1  jetty-distribution-9.0.0.M3.tar.gz

Unpack the archive

tar -xvf jetty-distribution-9.0.0.M3.tar.gz
mv jetty-distribution-9.0.0.M3 jetty

Create jetty user and make it More >

Nginx

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

0

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 and Nginx 1.2.6..

Read the page Nginx basic configuration carefully to understand how location directives work, it really explains it well! Especially this part is important:

Directives are processed in the following manner:

  • Exact string matches are processed first. If a match is found, nginx stops searching and fulfills the request.
  • Remaining literal string directives are processed next. If

More >

Ubuntu 12.04 – Install OpenPanel

9

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 original installation steps for older Ubuntu versions are described at http://www.openpanel.com/download/openpanel-download/. But for Ubuntu 12.04 just follow the steps below and it will work. Make sure you execute all steps as root.

nano /etc/apt/sources.list

Add the following lines at the very bottom of /etc/apt/sources.list, save it and go back to the terminal with Ctrl + X and than Y for the More >

Solr 3.5 – Wildcard search as SQL LIKE

0

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 field type for your field:

<fieldType name="string_rev" class="solr.TextField" sortMissingLast="true">     <analyzer type="index">         <tokenizer class="solr.KeywordTokenizerFactory"/>         <filter class="solr.LowerCaseFilterFactory" />         <filter class="solr.PatternReplaceFilterFactory" pattern="(\s+)" replacement="" replace="all" />         <filter class="solr.ReversedWildcardFilterFactory" />  

More >

Go to Top