{"id":17039,"date":"2015-04-15T12:37:51","date_gmt":"2015-04-15T17:37:51","guid":{"rendered":"https:\/\/secure.rosehosting.com\/blog\/?p=17039"},"modified":"2022-06-03T03:44:25","modified_gmt":"2022-06-03T08:44:25","slug":"how-to-install-sugarcrm-community-edition-on-an-ubuntu-14-04-vps","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-sugarcrm-community-edition-on-an-ubuntu-14-04-vps\/","title":{"rendered":"How to Install Sugar CRM Community Edition on an Ubuntu 14.04 VPS"},"content":{"rendered":"
Sugar CRM Community Edition is an open source and web based customer relationship management (CRM) software. It provides many functions such as activity management, contacts, accounts, campaigns, web-to-lead forms, dashboards, email clients and marketing, project management, bug tracking, shared calendars etc. that allow maximum management for business and client relationships. <\/p>\n Download the latest version of Sugar CRM Community Edition available at http:\/\/sourceforge.net\/projects\/sugarcrm\/files\/ to the ‘\/opt’ directory on the server. Then, extract it and move the Sugar CRM files and directories to the ‘\/var\/www\/html\/sugar’ directory. At the time of writing this tutorial, the latest stable version of Sugar CRM Community Edition is 6.5.20.<\/p>\n Sugar CRM Community Edition requires:<\/p>\n Update your OS package lists and install the software updates using the following commands:<\/p>\n Install PHP and required PHP modules:<\/p>\n In order to improve performance, it is recommended to have JSMin PHP extension installed on your server. The JSMin PHP extension can be installed using the pecl command:<\/p>\n Edit the php.ini configuration file and add ‘extension=jsmin.so’ to it:<\/p>\n Also, add\/modify the following settings:<\/p>\n InboundEmail and Campaigns (Email) require the IMAP libraries, so enable the IMAP module:<\/p>\n Create a new virtual host directive in Apache. For example, create a new Apache configuration file named \u2018sugar.conf’:<\/p>\n then, add the following lines:<\/p>\n Restart the Apache web server for the changes to take effect:<\/p>\n The following files and directories inside the ‘\/var\/www\/html\/sugar\/’ directory need to be writable from your web server:<\/p>\n This can easily be accomplished by executing the following command:<\/p>\n Create a new MySQL database named ‘sugarcrm’ on your server:<\/p>\n Do not forget to change \u2018sugar-password\u2019 with a strong password for your \u2018sugar\u2019 MySQL user.<\/p>\n Open http:\/\/your-domain.com in your favorite web browser and follow the easy instructions.<\/p>\n In order to run Sugar Schedulers, add the following line to the crontab file:<\/p>\n That is it. The Sugar CRM installation is now complete. Of course you don\u2019t have to do any of this if you use one of our Ubuntu Optimized VPS Hosting<\/a> services, in which case you can simply ask our expert Linux admins to install Sugar CRM<\/strong> for you. They are available 24×7 and will take care of your request immediately.<\/p>\n PS.<\/strong><\/span> 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.<\/p>\n","protected":false},"excerpt":{"rendered":" Sugar CRM Community Edition is an open source and web based customer relationship management (CRM) software. It provides many functions … <\/p>\n
\nIn this tutorial we will show you how to install Sugar CRM\u00a0Community Edition on an Ubuntu VPS<\/a><\/strong> in less than 5 minutes.<\/p>\ncd \/opt\/\r\nwget http:\/\/sourceforge.net\/projects\/sugarcrm\/files\/latest\/download -O SugarCE-6.5.20.zip\r\nunzip SugarCE-6.5.20.zip\r\nmv SugarCE-Full-6.5.20 \/var\/www\/html\/sugar<\/pre>\n
\n
apt-get update\r\napt-get upgrade\r\n<\/pre>\n
apt-get install php5 php5-cli php5-common php5-dev php5-mysql php5-curl php5-gd php-pear php5-imap php5-mcrypt php5-xmlrpc php5-xsl<\/pre>\n
pecl install jsmin<\/pre>\n
vi \/etc\/php5\/apache2\/php.ini<\/pre>\n
extension=jsmin.so<\/pre>\n
post_max_size = 32M\r\nupload_max_filesize = 32M\r\nmemory_limit = 768M<\/pre>\n
sudo php5enmod imap<\/pre>\n
touch \/etc\/apache2\/sites-available\/sugar.conf\r\nln -s \/etc\/apache2\/sites-available\/sugar.conf \/etc\/apache2\/sites-enabled\/sugar.conf\r\nvi \/etc\/apache2\/sites-available\/sugar.conf<\/pre>\n
<VirtualHost *:80>\r\n ServerAdmin admin@your-domain.com\r\n DocumentRoot \/var\/www\/html\/sugar\/\r\n ServerName your-domain.com\r\n ServerAlias www.your-domain.com\r\n <Directory \/var\/www\/html\/sugar\/>\r\n Options FollowSymLinks\r\n AllowOverride All\r\n <\/Directory>\r\n ErrorLog \/var\/log\/apache2\/your-domain.com-error_log\r\n CustomLog \/var\/log\/apache2\/your-domain.com-access_log common\r\n<\/VirtualHost><\/pre>\n
service apache2 restart<\/pre>\n
'config.php' \r\n'config_override.php'\r\n'sugarcrm.log'\r\n'cache' and all subdirectories and files\r\n'custom' and all subdirectories and files\r\n'data' and all subdirectories and files\r\n'modules' and all subdirectories and files<\/pre>\n
chown www-data:www-data -R \/var\/www\/html\/sugar\/<\/pre>\n
mysql -u root -p\r\nmysql> CREATE DATABASE sugarcrm;\r\nmysql> CREATE USER sugar@localhost;\r\nmysql> SET PASSWORD FOR 'sugar'@'localhost' = PASSWORD(\"sugar-password\");\r\nmysql> GRANT ALL PRIVILEGES ON sugarcrm.* TO 'sugar'@'localhost' IDENTIFIED BY 'sugar-password' WITH GRANT OPTION;\r\nmysql> FLUSH PRIVILEGES;\r\nmysql> quit<\/pre>\n
* * * * * cd \/var\/www\/html\/sugar; php -f cron.php > \/dev\/null 2>&1<\/pre>\n