Install and Upgrade vTiger 6.5 to 7.0


TurnKey GNU/Linux: vTiger CRM stable version 14.2 helps to quickly setup a virtual machine running vTiger 6.5. I decide to upgrade to the latest 7.0.

Upgrade from 6.5 to 7.0

Get the File and Unzip

Migration Software (6.5.0 to 7.0.1) file can be download from vTiger: Download Vtiger 7 Open Source.

On OSX, I use Cyberduck and sftp to upload vtigercrm-650-700-patch.zip to /var/www/vtigercrm. Unzip to /var/www/vtigercrm/migrate

root@vtiger www/vtigercrm# unzip vtigercrm-650-700-patch.zip

Change Permission

In [Webmin] → [System] → [Running Processes], it shows apache is running as www-data. Therefore, I use ssh to login to command line and change owner of /var/www/vtigercrm from root:root to www-data:www-data to grant apache to run extract command.

root@vtiger /var/www# chown -R www-data:www-data vtigercrm 

Migration

Now, I am ready to run Migration Wizard on https://%5BvTiger IP]/migrate. It  asks my administrator account and password twice. First is on the Migration Wizard page. Then is a vTiger 6.5 login page. In other words, you have to login twice.

I got error message during migration:

Warning: strtolower() expects parameter 1 to be string, array given in /var/www/vtigercrm/vtlib/Vtiger/Functions.php on line 1323

Warning: strtolower() expects parameter 1 to be string, array given in /var/www/vtigercrm/vtlib/Vtiger/Functions.php on line 1323

Restore Permission Brings Trouble

vTiger doesn’t work properly when I restore permission to root:root. I cannot create new leads. Empty screen when click on Related To. It becomes unstable and unpredictable. I have to change back to www-data:www-data to make it work again.

Install vTiger CRM 7.0

Remove vTiger

I decide to remove vTiger from this VM and install from scratch. First, I drop vtiger table using [Servers] → [MySQL Database Server]. Next is to remove /var/www/vtigercrm completely.

Install vTiger 7

Again, I get Source (Mac,Windows,*nix) which is a vtigercrm7.0.1.tar.gz file from vTiger: Download Vtiger 7 Open Source. Use Cyberduck and sftp to upload vtigercrm7.0.1.tar.gz to /var/www. Run following command to extract to /var/www/vtigercrm. Default permission is root:root.

root@vtiger /var/www# tar -xzvf vtigercrm7.0.1.tar.gz

Change Permission

Again, I have to change permission to www-data:www-data or it displays error:

Warning: mkdir(): Permission denied in /var/www/vtigercrm/includes/runtime/Viewer.php on line 58

Warning: mkdir(): Permission denied in /var/www/vtigercrm/includes/runtime/Viewer.php on line 58

After initial setup, I may finally login and test vTiger  7.0.

Reference

  1. Cyberduck
  2. How-To Geek: How to Compress and Extract Files Using the tar Command on Linux
  3. TurnKey GNU/Linux: vTiger CRM
  4. vTiger #1 Open Source CRM Software
  5. vTiger: Administration Guide: Migration
  6. vTiger: Download Vtiger 7 Open Source
  7. Wiki: Secure Shell
  8. Wiki: SFTP
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s