Category Archives for No category

Installing latest stable Git on Debian 6.0

I want install on my Debian 6 git. Apt-get install git give me old version. So, step by step to install latest stable git version on Debian:

apt-get install libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev
wget https://www.kernel.org/pub/software/scm/git/git-1.8.4.1.tar.gz
tar -zxf git-1.8.4.1.tar.gz
cd git-1.8.4.1
make prefix=/usr/local all
make prefix=/usr/local install

Ups…. result make:

LINK git-credential-store
libgit.a(utf8.o): In function `reencode_string_iconv':
/root/git-1.8.4.1/utf8.c:530: undefined reference to `libiconv'
libgit.a(utf8.o): In function `reencode_string_len':
/root/git-1.8.4.1/utf8.c:569: undefined reference to `libiconv_open'
/root/git-1.8.4.1/utf8.c:588: undefined reference to `libiconv_close'
/root/git-1.8.4.1/utf8.c:582: undefined reference to `libiconv_open'
collect2: ld returned 1 exit status
make: *** [git-credential-store] Error 1

So download and compile necessary library libiconv:

wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz
tar -zxvf libiconv-1.14.tar.gz
cd libiconv-1.14
./configure --prefix=/usr/local/libiconv
make
make install

and repeat make, make install from beginning…That’s all!

Have a nice day 🙂

How to install ImageMagick and php extension Imagick on Debian 6.0 + DirectAdmin?

After few months I want to install ImageMagick and Imagick on new server and again digging how to do this. To avoid this next time I wrote those post.

My config is: Debian 6.0, OpenVZ, DirectAdmin, php as php-fpm.

So, first install ImageMagick:Continue reading

Joomla 3.1 installation problem – brake on first step

I try install Joomla 3.1.5 on my VPS and installation problem stop after click to next step… First I tought it’s source broken – then download again – not help. After searching I found it’s related to server configuration, but I don’t want to align my server config only to one script. So this is – maybe not so clean – but worked solution.Continue reading

New install DirectAdmin on Debian 6.0 x64 OpenVZ, Spam Assassin, CSF and other – my notes

After another install DirectAdmin on VPS and loosing time to search in many place information how to do this or that I wrote this few notes to keep steps in one place. Maybe it will be useful for you. My system was Debian 6.0 x64, VPS on OpenVZ.Continue reading

How to clean dump Doctrine2 entity (entities) without print_r and crash Apache

Have you ever try print_r($entity)? Apache crash? Yes – exactly. Doctrine2 entity has massive recursion and trying dump by print_r give Apache crash. How to do this safely  and clean?Continue reading

Joomla JDatabaseMySQLi::query: 1054 – Unknown column ‘alias’ in ‘where clause’ SQL=SELECT id FROM j17_assets WHERE alias = ‘root’

Another day, another problem 🙂

Just install new component and after try change options I got:

JDatabaseMySQLi::query: 1054 - Unknown column 'alias' in 'where clause' SQL=SELECT id FROM j17_assets WHERE alias = 'root'

.

So I start digging… Solution is (as always) pretty simple just run in your Joomla database:Continue reading

Doctrine2 Netbeans IDE problems with code completion

Doctrine2/Symfony2 project? You write a code, press ctrl + space and… no all code completion… Why?

$em = $this->getDoctrine()->getManager();
$query = $em-> (should be createQuery, createBuilderQuery BUT nothing like that)

Solutions is simple (as usual…) but take some time to know how…Continue reading

How to block brute force attack automatically in DirectAdmin?

In modern version of DirectAdmin is Brute Force Monitor. Doing good job, make alert when brute force attack is carried out. But you must eventually manually block IP, from whose attack is coming.

Of course there are ways to make it automatic. I assume your server use CSF + LFD installed and working. In other cases particular script should looks different.Continue reading

Symfony 2.1 how to manage .less file by lessphp

After move to Symfony2.1 I was a little confused by using composer.phar. I want use less too – to easier write css code. After little research and test I see composer is a great tool! Some time after a figured out how to use lessphp. To save your time below it is my way:Continue reading

Symfony2, Doctrine2 Fatal error: Call to a member function getMetadataFactory() on a non-object in

This problem meets me after upload my Symfony2 app from my laptop to production server. Then, when I try run app I get:

Symfony2, Doctrine2 Fatal error: Call to a member function getMetadataFactory() on a non-object in…

After lot of searching I found solution. Continue reading