changes for deploy on ubuntu 12.04,apache and mysql.