Tuesday, 11 March 2014

[vTiger 6] Multiple instances on one installation

I have an installation with one apache&mySql server and multiple vTiger instances with separate databases.

You will have to separate vTigers like this:

http://hostname/vtiger_1;
http://hostname/vtiger_2;
http://hostname/vtiger_3;

1. Install the whole bundle (Apache, MySQL and vTiger) normally.

2. In apache/conf dir edit httpd.conf. Remove vtigercrm dir on these 3 lines:
  • DocumentRoot "C:/Program Files (x86)/vtigercrm600/apache/htdocs"
  • Directory "C:/Program Files (x86)/vtigercrm600/apache/htdocs"
  • ScriptAlias /cgi-bin/ "C:/Program Files (x86)/vtigercrm600/apache/htdocs"

Wednesday, 26 February 2014

[MySQL] - Regular Expressions - How to check a decimal number

To check if the field value is a decimal number, you can use the following expresion

REGEXP '^[[:digit:]]+\\.{0,1}[[:digit:]]*$'

Example: 
select '3.222' REGEXP '^[[:digit:]]+\\.{0,1}[[:digit:]]*$' as prueba;