Installing SugarCRM Community Edition On Ubuntu 8.10

Want to support HowtoForge? Become a subscriber!
 
Submitted by falko (Contact Author) (Forums) on Tue, 2009-01-13 17:36. :: Ubuntu

Installing SugarCRM Community Edition On Ubuntu 8.10

Version 1.0
Author: Falko Timme <ft [at] falkotimme [dot] com>
Last edited 01/07/2009

SugarCRM is a webbased CRM solution written in PHP. SugarCRM is available in different flavours called "Editions" ("Community" (free), "Professional", and "Enterprise"). For a detailed overview of the different editions, have a look at the SugarCRM website. In this tutorial I will describe the installation of the free Community Edition on Ubuntu 8.10. With the modules My Portal, Calendar, Activities, Contacts, Accounts, Leads, Opportunities, Cases, Bugtracker, Documents and Email, SugarCRM Community Edition offers everything that can be expected from a CRM solution.

 

1 Preliminary Note

In this tutorial I use the hostname server1.example.com with the IP address 192.168.0.100. These settings might differ for you, so you have to replace them where appropriate.

I will install SugarCRM in Apache's default vhost (document root /var/www) in the directory /var/www/sugarcrm. you might have to adjust this on your system.

Make sure that you are logged in as root (type in

sudo su

to become root), because we must run all the steps from this tutorial as root user.

 

2 Install The MySQL Database Server

Install unzip to be able to unpack the SugarCRM package later:

apt-get install unzip

Install MySQL:

apt-get install mysql-server mysql-client

You will be asked the following questions:

New password for the MySQL "root" user: <-- yourrootsqlpassword (a password of your choice)
Repeat password for the MySQL "root" user: <-- yourrootsqlpassword

 

3 Install The Apache Webserver And PHP

apt-get install apache2 apache2-doc apache2-mpm-prefork apache2-utils libexpat1 libapache2-mod-php5 php5-common php5-gd php5-idn php-pear php5-imap php5-mcrypt php5-mhash php5-mysql php5-sqlite php5-xmlrpc php5-xsl php5-curl

Afterwards we need to modify two settings in /etc/php5/apache2/php.ini:

vi /etc/php5/apache2/php.ini

Set the memory_limit to 64M (or more) and the upload_max_filesize to 20M:

[...]
;memory_limit = 16M      ; Maximum amount of memory a script may consume (16MB)
memory_limit = 64M
[...]
; Maximum allowed size for uploaded files.
;upload_max_filesize = 2M
upload_max_filesize = 20M
[...]

Restart Apache afterwards:

/etc/init.d/apache2 restart

 

4 Install SugarCRM

You can download SugarCRM Community Edition from http://www.sugarforge.org/frs/?group_id=6 or http://www.sugarcrm.com/crm/download/sugar-suite.html. Pick the latest .zip file (version 5.2.0 at the time of this wrinting) and install it as follows:

mkdir /var/www/sugarcrm
cd /tmp
wget http://www.sugarforge.org/frs/download.php/4902/SugarCE-5.2.0.zip
unzip SugarCE-5.2.0.zip
cd SugarCE-Full-5.2.0/
mv * /var/www/sugarcrm/
chown -R www-data:www-data /var/www/sugarcrm

Start the webbased SugarCRM installer by opening the URL http://server1.example.com/sugarcrm or http://192.168.0.100/sugarcrm in your browser.

The SugarCRM setup wizard comes up:

Scroll down and click on the Next button:

Accept the license (GPL) and click on Next:

Select Typical Install and click on Next:


Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.
Submitted by Anonymous (not registered) on Sat, 2010-12-04 13:59.

Thank you for the instructions!  I just followed them to install SugarCRM CE 6.1.0 on Ubuntu 9.10 and it seems to have worked.

Just a couple tips:

The SugarCRM CE 6.1.0 installation now recommends setting the PHP memory limit to 96M in php.ini:

memory_limit = 96M

The version 6.1.0 zip file includes a ".htaccess" file that will not be copied to the /var/www/sugarcrm/ directory using your commands.  Instead, perhaps it would be cleaner to use something like the following:

cd /var/www
unzip /tmp/SugarCE-*.zip
mv SugarCE-Full-* /var/www/sugarcrm
chown -R www-data: sugarcrm

This way even the "hidden" files in the root of the unzipped directory end up in the installed webdir.

Submitted by OldManRiver (not registered) on Thu, 2011-10-06 20:31.

All,

There are steps missing here.

I had to do:

addgroup sugarcrm

before executing the:

chown -R www-data: sugarcrm

As was getting "None existant group" errors:

Even after all that, when I run the istall.php I get tons of permission errors. I do not know what the program wants so can not correct the problems. Will post on the Sugar Forum to see what is required. Thanks! OMR

Submitted by Conor (not registered) on Tue, 2010-07-20 14:18.
Muchos gracias - just installed Sugar6.0.0 on Ubuntu9.10 using this howto.
Submitted by ago2guy (registered user) on Sun, 2009-05-10 20:02.

Great job as usual.

Installs fine on 9.04 and the latest version of SugarCRM is SugarCE-5.2.0e.zip

 

Thanks again.