Install SugarCRM

SugarCRM is an open-source software-solution vendor which produces the Sugar Customer Relationship Management (CRM) system.

0. Prerequisites:

  • Apache Web Server
  • MySQL Database
  • PHP5 (including Pear, Curl, IMAP Modules)

1. Install PHP Pear Module

apt-get install php-pear

2. Change Permission:
chmod 766 config.php
chmod 766 -R data
chmod 766 -R cache
chmod 766 -R custom
chmod 777 -R modules

3. Create MySQL Database
mysql -u root -p
mysql> CREATE DATABASE sugarcrm;
mysql> USE sugarcrm;
mysql> GRANT ALL PRIVILEGES ON sugarcrm.* TO sugarcrm@localhost IDENTIFIED BY 'mypassword';

DB Name: sugarcrm
DB User: sugarcrm
DB User Password: mypassword
DB Host: localhost

4. Run Installation Wizard at http://localhost/sugarcrm/

1) Set /etc/php5/apache2/php.ini to increase:
- PHP Memory Limit from 16M to 40M
memory_limit = 40M
- Upload File Size:
upload_max_filesize = 48M

2) Install cURL for the purpose of transferring data.
apt-get install php5-curl

3) Install IMAP Module: InboundEmail and Campaigns (Email) require the IMAP libraries. Neither will be functional.
apt-get install php5-imap

4) Create an empty .htacess file under the root directory of SugarCRM and chmod it to 777.

After hitting the "Install" button, the Wizard will create all tables in MySQL. If you selected the "Sample Data", it will also create it for you. It will also write following data to the .htaccess file created by you.

# BEGIN SUGARCRM RESTRICTIONS RedirectMatch 403 (?i).*\.log$ RedirectMatch 403 (?i)/+not_imported_.*\.txt RedirectMatch 403 (?i)/+(soap|cache|xtemplate|data|examples|include|log4php|metadata|modules)/+.*\.(php|tpl) RedirectMatch 403 (?i)/+emailmandelivery\.php RedirectMatch 403 (?i)/+cache/+upload RedirectMatch 403 (?i)/+files\.md5$ # END SUGARCRM RESTRICTIONS

Now, you can change the .htaccess permission to 644.

Congratulations! You finished the installation of SugarCRM.

You can go to http://localhost/sugarcrm to test and use it from now.


标签: none


  1. could also work for vtiger ? :)