Help:Install:SugarCRM

From OpenLiteSpeed
Jump to: navigation, search

This article will guide you through installing SugarCRM Community Edition (Sugar CE) on OpenLiteSpeed 1.2.2 (our latest version as of this writing). Sugar CE is the popular open source version of the SugarCRM customer relationship management system. Installing Sugar CE requires no changes to OpenLiteSpeed's configurations. It only requires that you set up PHP and MySQL and install the package properly. You will need to have virtual host ready so that you have a place to install Sugar CE. We will be using the default vhost "Example" (which comes with OpenLiteSpeed), but you can create your own vhost if you like.

MySQL

1. Install MySQL

yum install mysql mysql-server

2. Create DB and user

service mysqld start
mysql -u adminusername -p
mysql> create database sugarce;
mysql> grant all privileges on sugarce.* to sugarce_user@locahost identified by 'sugarce_passwd';
mysql> exit


Install PHP modules

The easiest way to install PHP for OpenLiteSpeed is through our CentOS repository. If the LiteSpeed Repository was not installed and enabled during the web server installation, follow this guide to install and enable the LiteSpeed Repository.

Use the following command to install PHP with the modules required:

yum install lsphp53 lsphp53-common lsphp53-gd lsphp53-process lsphp53-mbstring lsphp53-mysql lsphp53-imap
Note: Sugar CE does not currently support PHP 5.4, 5.5 or 5.6.

Direct LSWS to the location of the installed PHP. (In this example, PHP 5.3 is installed by default in /usr/local/lsws/lsphp53/bin/lsphp. Change the value of the WebAdmin console > External App > your external application > Command setting to reflect that.)

If you are not using RedHat or CentOS, or you prefer to build PHP by yourself, see our instructions for building PHP for SugarCRM here.

Sugar CE

1. Download Sugar CE into a virtual host's document root. We are using the "Example" vhost that is on OpenLiteSpeed by default. Example's document root is: $SERVER_ROOT/DEFAULT/html.

cd /usr/local/lsws/DEFAULT/html
wget http://sourceforge.net/projects/sugarcrm/files/latest/download?source=files

2. Unpack Sugar CE

unzip SugarCE-6.5.18.zip

3. Prepare

mv SugarCE-Full-6.5.18 sugarce
cd sugarce
chown nobody.nobody custom/ cache/ modules/ upload/ config.php config_override.php
chown -R nobody.nobody modules/*
Note: "nobody" is the user the web server runs as.

4. Point your browser to http://localhost:8088/sugarce/install.php to run the Sugar CE installer.

SugarCE-install-start.png
SugarCE-install-ready.png
SugarCE-install-license.png
SugarCE-install-installoption.png
SugarCE-install-dbtype.png
SugarCE-install-dbconfig.png
SugarCE-install-siteconfig.png
SugarCE-install-confirmsettings.png
SugarCE-install-complete.png

Once you've completed these configurations, Sugar CE should be ready to go!