How to store git password in config and allow automatisations

One of the best git commands i found so far is the following:

git config credential.helper store

This way git doesn’t ask anymore for user / pass when you try to push / pull from a repository givind us the posibility to automate things. Automate code pushing to servers . Automatic folder sincronisations with a git repo and much more .

Custom version of nginx in Ubuntu

Building a custom ( adding a custom plugin )  version of nginx in debian is not a very complicated job:

Create a directory  ( ex test2 ) and change directory to it.

After that do:

apt-get source nginx

in debian directory you should modify rules file , then if necessary  source/include-binaries , add your module in modules directory and modify README.Modules-versions to reflect your changes .

Change back to test2/nginx-1.4.1 directory and run

dpkg-buildpackage -b

If everything works ok and module is configured correctly you should have it ready to be run:

dpkg -i nginx-full_1.4.1-3ubuntu1.3_amd64.deb nginx-common_1.4.1-3ubuntu1.3_all.deb



Yii framework – installing

Yii Framework it’s a php framework that will help developing Web 2.0 applications.

First step in using this framework would be to install it.  What you will typically need for developing a decent application: an apache / php / mysql  / memcache server.

If you are using TFM server all requirements are already met .

Download the framework itself from: and unpack  it in /www/yii directory.
Add an apache vhost to point to /www/yii. A typical vhost would look like this ( modify to reflect your host or domain :

        ServerAlias *
        DocumentRoot /www/yii
        DirectoryIndex index.php index.html
        ServerSignature On

            AllowOverride All
            Options -Indexes +FollowSymLinks -Multiviews
            Allow from All
            Rewriteengine on
            RewriteBase /

        LogLevel warn
        CustomLog /var/log/apache2/ combined
        ErrorLog  /var/log/apache2/

Restart your apache.
Next create your application using :

./framework/yiic webapp mytest
Create a Web application under '/www/yii/mytest'? (yes|no) [no]:

Answer yes and it will generate your skeleton application that will be the base of your application.
Navigate to and you should see something like this:


You should also see this video regarding the installation of yii framework:

Svn aborted commits remains in conflict

I use svn on daily basis. everything was ok until today when a new this kind of error popped up :

root@tfm33: /Space/server/_wks/trunk# svn commit
svn: Commit failed (details follow):
svn: Aborting commit: '/Space/server/_wks/trunk/libmp3lame' remains in conflict

An no matter what i tried it stayed in conflict. doing some google-ing i found out that the fix is quite simple:

svn resolved /Space/server/_wks/trunk/libmp3lame

Adding Oracle support to PHP

If you want to connect to an Oracle database with PHP you will need the pecl module named oci8

First in order to compile it you will need Oracle Instant Client ( both basic & sdk ) . You can download them from here:

If you don’t have an Oracle account you will need to create one.

At the time of this post the following files are available: , .

Create a directory in /opt  mkdir /opt/oracle/instantclient and copy those files there . Then unzip them . You will need to create a symbolic link ln -s

Then you will need to install libaio if you don’t have it already . Don’t forget to add /opt/oracle/instantclient/instantclient_11_2 to /etc/ .

At this point you are ready to install the pecl extension to php.Create a temporary directory ( /tmp/1 ) and cd there.

mkdir /tmp/1

cd /tmp/1

pecl download oci8

tar xf oci8-1.3.5.tar

cd oci8-1.3.5


./configure –with-oci8=shared,instantclient,/opt/oracle/instantclient/instantclient_11_2


make install

edit /etc/php.ini and add

And enjoy oracle extension for php. Note: if you have apache running restart it.