Category Archives: Server

Install LXML in Debian

To install LXML python module in Debian, you need to install depedency packages : 1apt-get install python-dev libxml2 libxml2-dev libxslt1-dev libbz2-dev libssl-dev p7zip-full rar lha unrar unzip unace unp bzip2 gzip patch Then, you can install lxml by : 1pip … Continue reading

Posted in Server | Tagged | Leave a comment

Solve slow DNS in HpCloud due to double reload on the website

I found something weird with my Bind in HPCloud which it’s working well in my EC2. After trying several experiment, I found the correct way to set bind in HPCloud. This is for example: 1234567891011121314151617; ; BIND data file for … Continue reading

Posted in Server | Tagged | Leave a comment

Solving Bind DNS un-resolved when nslookup domain without WWW

This is common mistake when we try to nslookup our domain that working with “WWW” but not without “WWW”. This is some bind9 configuration : 123456789101112131415; ; BIND data file for local loopback interface ; $TTL    3600 @   … Continue reading

Posted in Server | Tagged , | Leave a comment

How to open PostgreSQL remote access with IP address limitation on Ubuntu

When trying to configure postgresql to be able accessed remotely from another IP address, we usually got several errors like this : 1234postgresql remote access no pg_hba.conf entry for host psql: FATAL:  no pg_hba.conf entry for host "xxxxx", user "xx", … Continue reading

Posted in Server | Tagged , | Leave a comment

How to create user postgresql using Pgadmin Ubuntu

Create postgresql new user using Pgadmin in Ubuntu is very easy. First, launch your Pgadmin that used “postgres” account and connect into localhost. Then, after login, expand your “localhost” item and find “Login Roles“. Right click on “Login Roles”. Then … Continue reading

Posted in Server | Tagged , | Leave a comment

How to reset postgres password in PostgreSQL Ubuntu 11.10 Oneiric

Reset postgres user password in PostgreSQL Ubuntu 11.10 Oneiric is very simple. First, make sure you have set trust mode in pg_hba.conf ( /etc/postgresql/9.1/main/pg_hba.conf ), for instance : 123456local   all             postgres     … Continue reading

Posted in Server | Tagged , | 2 Comments

Example how to git submodule, add, delete submodule and use existed git repository

Git submodule is great feature on Git which it will needed much on large projects than build by small parts. For example, I have single project called “Insurance”. This project contains several apps like “billing”, “user”, “backend” and several apps. … Continue reading

Posted in Server | Tagged , | 2 Comments

How to login postgresql access psql from ubuntu user

I use Ubuntu 11.10 Oneric and Postgresql 9.1 in this cases. So, when I need to dump database using “psql -U postgres” from ubuntu, I got several error like this : 123psql: FATAL:  role "ubuntu" does not exist psql: FATAL: … Continue reading

Posted in Server | Tagged , | 1 Comment