Showing posts with label CRM. Show all posts
Showing posts with label CRM. Show all posts

Friday, March 14, 2008

Changing only directory permissions in linux

Yesterday I have noticed that vTiger has released stable 5.0.4 version that was a key thing to upgrade from previous 5.0.4 RC. The procedure looked simple stupid.

But the problem I faced was linux file/directory permissions. The patch which should have been applied to the previous vTiger version consisted of many files which had 777 (read write for all) permissions. I know chmod but I nevertheless couldn't find the way to change only directory permissions.

So I googled for a while and found very useful bunch of commands. This will let you to change only directory permissions in unix:

find . -type d -exec chmod go-w {} \;


finds all directories (notice -type d) in the current directory and forbids to write for group and others (go-w)

find . -type f -exec chmod ug-r {} \;
finds all files in the current directory and forbids to read for owner and group

Wednesday, January 16, 2008

Enable utf-8 support for vTiger crm

vTiger CRM team has announced that they had moved to utf-8 in the new 5.0.4 version of this open source CRM. But I had some issues in order to make it work correctly.

First of all, your database should be utf-8 compliant.

But this is not enough. If you try to import data from vTiger front-end via CSV import, you will get your data correct in the front-end, but not in the back-end :) If you look at the database, you will see that it was saved as unicode (I mean those cahracters which are from other than ISO-885-1 charset).

And even if you open your database via phpMyAdmin administration tool, and enter some new account naming it i.e. "Account Žopa", you will get "Account ?opa" from the front-end while listing Sales > Accounts.

In order to make it work correctly, you need to add the following line in the function connect in include/database/PearDatabase.php file.

$this->query("SET CHARACTER SET utf8");


This will help you to solve problems with utf-8.