SugarCRM CE installation on Debian 7 Wheezy Linux

In this config we will install SugarCRM CE the community edition of customer relationship management software by SugarCRM, Inc on Debian 7 “wheezy” Linux.

Download

The community edition of sugarCRM is licensed under AGPLv3. Current version of sugarCRM CE is 6.5.18. Head over to SugarCRM CE home page and download the latest full installation package or use the link and command below to download sugarCRM CE to your home directory:

# wget http://goo.gl/lzyQw2
Saving to: `SugarCE-6.5.18.zip'

100%[===========>] 21,267,418   722K/s   in 34s     

2014-10-20 06:09:54 (615 KB/s) - `SugarCE-6.5.18.zip' saved [21267418/21267418]

Prerequisites

Next we need install all required prerequisites to run sugarCRM. The command bellow will install all necessary parts:

# apt-get install php5-mysql libapache2-mod-php5 mysql-server unzip php5-gd php5-curl

Configuration



Here we assume that you choose to install sugarCRM into a default apache root directory /var/www. If this is not the case alter the commands below appropriately to point to your chosen installation root directory:
Remove default index.html file:

# rm /var/www/index.html 

Unzip SugarCRM installation package and move it to your installation directory. As it was already mention in our case it is /var/www:

# unzip SugarCE-6.5.18.zip 
# mv SugarCE-Full-6.5.18/* /var/www/

Make the apache webserver as an owner of the entire installation directory:

# chown -R www-data.www-data /var/www/

Change file upload size to minimum a 6 MB. This is a sugarCRM recommended minimum value so feel free to set your own file upload size depending on your needs. To change max file size open the PHP config file /etc/php5/apache2/php.ini and amend line:

upload_max_filesize = 6M

As a last configuration step create a database user to be used by sugarCRM. Login to mysql server

# mysql -p
Enter password: 
mysql>

and execute below commands:

mysql> create database sugarcrmce;
Query OK, 1 row affected (0.00 sec)

mysql> CREATE USER 'sugarcrm'@'localhost' IDENTIFIED BY 'mypass';
Query OK, 0 rows affected (0.01 sec)

mysql> grant CREATE, ALTER, DELETE, INSERT, SELECT, UPDATE, LOCK TABLES, DROP
    -> on sugarcrmce.* to sugarcrm@localhost;
Query OK, 0 rows affected (0.00 sec)

mysql> quit
Bye


Installation

What follows next is the actual installation. SugarCRM will start an installation wizard to guide you through this process. Main points of sugarCRM installation are below. To start installation wizard point your browser a destination webserver eg.:

http://sugarcrm.local/install.php


Start sugarcrm installation wizard
Choose sugarcrm typical or custom option



database selection
configure database settings to be used for sugarcrm ce



confirm if database exists and want to overwrite
setup sugardcrm administrator user



sugarcrm configuration checklist
finished installation