Home » Blog

How to Install Vtiger CRM on Ubuntu 14.04 VPS

Let’s quickly show you how to install Vtiger crm on Ubuntu 14.04 VPS. Vtiger is one a very popular open source Customer Relationship Management (CRM) software designed for both small and mid-sized business organizations for use in the management of customers, sales, leads, prospects, support, marketing as well as inventory activities. It’s entirely web based and runs conveniently on a LAMP application stack (Linux, Apache, MySQL and PHP).

In this short tutorial, we’ll show you how you can easily and quickly install Vtiger CRM on Ubuntu 14.04 VPS (Virtual Private Server). We will be doing this installation on our OVZ VPS 1000 VPS Hosting plan which provides the following resources:

  • 1 Core
  • 1 GB RAM
  • 30 GB Disk
  • 1 TB Bandwidth
  • 1 IPV4 Address

 

The VPS is already provisioned with Ubuntu 14.04 and we’ll go through the step-by-step process to install Vtiger CRM on Ubuntu 14.04. However, you should be able to follow these exact instructions to install Vtiger CRM on Ubuntu 14.04 at any VPS or Dedicated Server of your choice hosted by any other VPS or Dedicated Server provider.

 

[SPECIAL OFFER]: Lightning Fast VPS Hosting for $6.00

[BENEFITS]:

  • Expert VPS Hosting Provider
  • Root Access to Run Any Software Stack
  • Professional Linux Administrators on Hand
  • 24/7/365 Technical Support

Click here to access this [SPECIAL OFFER]

 

Step 1: Check and Update Ubuntu

The first thing to do is to log into your VPS via SSH using a SSH client such as PuTTy as the root user.

Once logged in, run the following command confirm the Ubuntu version installed and make sure it’s 14.04:


# lsb_release -a

The above command, will give you an output similar to:
install vtiger crm on ubuntu

Next is to get all system updates and update the server to make sure it’s up to date with all necessary and latest software dependencies. So let’s run the following command:


# apt-get update && apt-get upgrade

Once you run the above command, wait for a few seconds/minutes for Ubuntu to do its thing. You may get a prompt such as the one below, simply type “y” or “Y” and hit the “Enter” key.
install vtiger crm on ubuntu

Step 2: Install & Secure MySQL Database

Time to install MySQL database since we’re working on a bare metal VPS with only the operating system (in this case Ubuntu) installed. So let’s run the following command to install MySQL database:


# apt-get install mysql-server

You may get a prompt asking for some extra, suggested or new packages to be installed as shown in the image below, simply type “y” or “Y” and hit the “Enter” key.
install vtiger crm on ubuntu

Watch out for a prompt (like the one below) asking you to set a password for the MySQL administrative “root” user. This is not mandatory but we suggest you create one for security purposes. For this tutorial, we set the password to: “myAdmin?16” (without the quotes):
install vtiger crm on ubuntu

When MySQL database is completely installed, you should get something similar to the image below displayed on your SSH console:
install vtiger crm on ubuntu

Security is important, so we need to secure our MySQL installation by running the following command:


# mysql_secure_installation

Keep an eye for a prompt for the MySQL password you set during installation, enter the password and hit the Enter key. You’ll be prompted if you want to change the root password, type in “n” to continue. Below is a screen capture of the questions you’ll be asked, you can enter the same responses as we did:
install vtiger crm on ubuntu

Initialize the data directory for the MySQL installation by running the following command:


# mysql_install_db

Check to make sure MySQL is up and running by running the following command:


# service mysql status

You should see the following output if MySQL is up and running:
install vtiger crm on ubuntu

Step 3: Create a MySQL Database to install Vtiger CRM on Ubuntu

So in Step 2, we installed and secured our MySQL database as well as made sure it was up and running smoothly. Now, let’s create a database to install Vtiger CRM on Ubuntu.

The first thing to do is log into our MySQL installation as root by running the following command:


# mysql -u root -p

When prompted for the root password, enter the password you created during MySQL installation and hit the “Enter” key. Once logged in, you’ll see something similar to the image below:
install vtiger crm on ubuntu

We’re going to create the database, grant privileges to root user and flush privileges. First, we run this command to create the database:


mysql> create database vtiger;

You’ll get a confirmation informing that the query was ok and 1 row was affect. Good! Next, we’ll grant privileges by running the following command:


mysql> grant all privileges on vtiger.* to vtiger@localhost identified by 'myAdmin?16';

Note, we used ‘myAdmin?16’ which is the password we created. If you used something different for your password, that use what you created. Next we’ll flush the grant privileges which simply tells the server to reload the grant tables, by running the following command:


mysql> flush privileges;

 

So we’re done, it’s time to exit the mysql > prompt by typing in the exit command:


mysql> exit;

 

Step 4: Install Vtiger CRM on Ubuntu

It’s now time to install Vtiger CRM on Ubuntu. So let’s go ahead and set up a directory/folder where the Vtiger software will be installed. We’ll call this directory/folder “crm”. Running the following command:


# mkdir -p /var/www/html/crm/

Navigate into the newly created directory/folder by running the following command:


# cd /var/www/html/crm/

Now, let’s download the latest version (as of this point of writing) of Vtiger by running the following command:


# wget http://sourceforge.net/projects/vtigercrm/files/vtiger
%20CRM%206.5.0/Core%20Product/vtigercrm6.5.0.tar.gz

Once the download is complete, let’s unzip it by running the following command:


# tar zxvf vtigercrm6.5.0.tar.gz

The unzipped files will be located in a directory/folder called “vtigercrm“, so we need to move everything in it into our current folder which is “/var/www/html/crm/” by running this command:


# mv vtigercrm/* .

Proceed ahead and remove the directory/folder “vtigercrm” and zip file “vtigercrm6.4.0.tar.gz” since we won’t be needing them:


# rm -rf vtigercrm/ vtigercrm6.5.0.tar.gz

Assign appropriate owner to the “crm” directory/folder as well as files and directories/folders under it:


# chown www-data: -R ../crm/

It’s time to get the Vtiger install ready to be served on the web. This requires creating a virtual host directive for the domain Vtiger will run on. Let’s begin by creating an empty file called crm.conf:


# touch /etc/apache2/sites-available/crm.conf

We will now enable the site:


# ln -s /etc/apache2/sites-available/crm.conf /etc/apache2/sites-enabled/

Open the crm.conf file and paste the following by running the following command:


# vi /etc/apache2/sites-available/crm.conf

Then, paste the following text in it (instead of using “demo2.dailyrazor.com” as in this case, use your own domain name or whatever url you’ll be accessing your installation from):

ServerAdmin admin@demo2.dailyrazor.com
DocumentRoot /var/www/html/crm/
ServerName demo2.dailyrazor.com
ServerAlias demo2.dailyrazor.com

Options FollowSymLinks
AllowOverride All

ErrorLog /var/log/apache2/demo2.dailyrazor.com-error_log
CustomLog /var/log/apache2/demo2.dailyrazor.com-access_log common

 

Save the file and exit the editor. Let’s re-start the Apache HTTP server so the changes can be implemented:


# /etc/init.d/apache2 restart

We’ll need to make some minor changes to the PHP setting of the server, so let’s open the php.ini file:


# vi /etc/php5/cli/php.ini

Make the following adjustments to the file and save it:

  • Change display_errors from Off to On
  • Change max_execution_time from 30 to 600
  • Change error_reporting from E_ALL & ~E_DEPRECATED to E_WARNING & ~E_NOTICE & ~E_DEPRECATED
  • Change log_errors from On to Off
  • Change short_open_tag from Off to On

Save when one and exit. Then go ahead and re-start the Apache server so that it will be updated:


# /etc/init.d/apache2 restart

It’s now time open up your browser and navigate to the location where you unzipped the Vtiger installation files. You’ll see the installation wizard like below, click on the “Install” button to proceed further and accept the terms of service agreement and then follow the step-by-step installation process to install vtiger crm on Ubuntu.
how to install php on apache ubuntu

Hope you found this tutorial helpful. If you have any questions or need assistance with hosting Vtiger CRM on any platform, emails us at support@dailyrazor.com

 

[SPECIAL OFFER]: Lightning Fast VPS Hosting for $6.00

[BENEFITS]:

  • Expert VPS Hosting Provider
  • Root Access to Run Any Software Stack
  • Professional Linux Administrators on Hand
  • 24/7/365 Technical Support

Click here to access this [SPECIAL OFFER]

 

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts

Get up to 60% OFF for signing up to our newsletter!