Install Sugar CRM on a CentOS/Fedora/Scientitic Linux VPS

Sugar CRM is a web based customer relationship management (CRM) system written in PHP. It is available in three different editions: Community Edition (which is free), Professional Edition and Enterprise Edition. This blog post covers the installation of the free Community Edition of Sugar CRM on a CentOS/Fedora/Scientitic Linux VPS which is pretty easy and fast.

In order to run Sugar CRM on your server, you need to have MySQL database server and Apache web server installed. Both are coming pre-installed with all our ‘full’ OS templates.

At the very beginning of the installation, update your system:

# yum -y update

We need to allow files of at least 6 MB to be uploaded in the PHP configuration file. You can find the location of the PHP configuration file with the following command:

# php -i |grep php.ini
Configuration File (php.ini) Path => /etc
Loaded Configuration File => /etc/php.ini

Open the configuration file and make sure that ‘upload_max_size’ is set to 6M or more:

# vi /etc/php.ini
upload_max_filesize = 6M

and restart the web server:

# service httpd restart

Download the latest release of the Sugar CRM community edition from http://sourceforge.net/projects/sugarcrm/files/1%20-%20SugarCRM%206.5.X/SugarCommunityEdition-6.5.X which currently is 6.5.16

# wget http://downloads.sourceforge.net/project/sugarcrm/1%20-%20SugarCRM%206.5.X/SugarCommunityEdition-6.5.X/SugarCE-6.5.16.zip

Unzip the zip archive to the document root directory:

# unzip SugarCE-6.5.16.zip -d /var/www/html

We will rename the extracted directory to something simpler:

# mv SugarCE-Full-6.5.16 sugarcrm

and this directory needs to be owned by the Apache user:

# chown -R apache:apache /var/www/html/sugarcrm

Next, create a MySQL database and user for Sugar CRM:

echo "CREATE DATABASE sugarcrm;" | mysql -u root -p
echo "CREATE USER 'sugarcrmuser'@'localhost' IDENTIFIED BY 'YOUR_PASSWORD';" | mysql -u root -p
echo "GRANT ALL PRIVILEGES ON sugarcrm.* TO 'sugarcrmuser'@'localhost';" | mysql -u root -p
echo "FLUSH PRIVILEGES;" | mysql -u root -p

Now, with your favorite browser open http://YOURDOMAIN.TLD/sugarcrm and the Sugar CRM installation wizard will come up
sugar1

On the next screen you will see instructions and requirement for the installation.

Read and accept the Sugar CRM license:
sugar2

Select the installation type. In our case we selected the typical installation:
sugar3

Need a fast and easy fix?
✔ Unlimited Managed Support
✔ Supports Your Software
✔ 2 CPU Cores
✔ 2 GB RAM
✔ 50 GB PCIe4 NVMe Disk
✔ 1854 GeekBench Score
✔ Unmetered Data Transfer
NVME 2 VPS

Now just $43 .99
/mo

GET YOUR VPS

Select the database type. We use MySQL database:
sugar4

Next, enter the information of the MySQL database we’ve created earlier in this tutorial:
sugar5

Create the Sugar CRM admin user:
sugar6

A summary of the selected setting will be displayed on the next screen. If everything is OK, click install.
sugar7

That’s all. Sugar CRM Community Edition is successfully installed on your server. Now, you can log in to Sugar CRM with your admin account and continue with the configuration.

Of course, if you are one of our Linux VPS Hosting customers, you don’t have to do any of this, simply ask our admins, sit back and relax. Our admins will install Sugar CRM for you immediately.

PS. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.

Leave a Comment