{"id":56,"date":"2016-05-06T09:21:20","date_gmt":"2016-05-06T09:21:20","guid":{"rendered":"http:\/\/symbioticindia.in\/docu\/?p=56"},"modified":"2016-05-06T09:21:20","modified_gmt":"2016-05-06T09:21:20","slug":"how-to-install-sugarcrm-community-edition-on-an-ubuntu-14-x","status":"publish","type":"post","link":"http:\/\/symbioticindia.in\/docu\/2016\/05\/06\/how-to-install-sugarcrm-community-edition-on-an-ubuntu-14-x\/","title":{"rendered":"How to Install SugarCRM Community Edition on an Ubuntu 14.x"},"content":{"rendered":"<p>Download the latest version of SugarCRM Community Edition available at http:\/\/sourceforge.net\/projects\/sugarcrm\/files\/ to the \u2018\/opt\u2019 directory on the server. Then, extract it and move the SugarCRM files and directories to the \u2018\/var\/www\/html\/sugar\u2019 directory. At the time of writing this tutorial, the latest stable version of SugarCRM Community Edition is 6.5.20.<\/p>\n<pre>cd \/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<p>SugarCRM Community Edition requires:<\/p>\n<ul>\n<li>PHP with bcmath, cURL, GD graphics library, hash, IMAP, JSON, mbstring, MySQLi, openSSL, SimpleXML, ZIP and ZLIB PHP extensions enabled.<\/li>\n<li>Apache Web Server &gt;= 2.x+<\/li>\n<li>MySQL &gt;= 5.x installed on your <strong><a title=\"Linux VPS\" href=\"https:\/\/www.rosehosting.com\/\" target=\"_blank\">Linux VPS<\/a><\/strong>.<\/li>\n<\/ul>\n<p>Update your OS package lists and install the software updates using the following commands:<\/p>\n<pre>apt-get update\r\napt-get upgrade\r\n<\/pre>\n<p>Install PHP and required PHP modules:<\/p>\n<pre>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<p>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<pre>pecl install jsmin<\/pre>\n<p>Edit the php.ini configuration file and add \u2018extension=jsmin.so\u2019 to it:<\/p>\n<pre>vi \/etc\/php5\/apache2\/php.ini<\/pre>\n<pre>extension=jsmin.so<\/pre>\n<p>Also, add\/modify the following settings:<\/p>\n<pre>post_max_size = 32M\r\nupload_max_filesize = 32M\r\nmemory_limit = 768M<\/pre>\n<p>InboundEmail and Campaigns (Email) require the IMAP libraries, so enable the IMAP module:<\/p>\n<pre>sudo php5enmod imap<\/pre>\n<p>Create a new virtual host directive in Apache. For example, create a new Apache configuration file named \u2018sugar.conf\u2019:<\/p>\n<pre>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<p>then, add the following lines:<\/p>\n<pre>&lt;VirtualHost *:80&gt;\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   &lt;Directory \/var\/www\/html\/sugar\/&gt;\r\n      Options FollowSymLinks\r\n      AllowOverride All\r\n   &lt;\/Directory&gt;\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&lt;\/VirtualHost&gt;<\/pre>\n<p>Restart the Apache web server for the changes to take effect:<\/p>\n<pre>service apache2 restart<\/pre>\n<p>The following files and directories inside the \u2018\/var\/www\/html\/sugar\/\u2019 directory need to be writable from your web server:<\/p>\n<pre>'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<p>This can easily be accomplished by executing the following command:<\/p>\n<pre>chown www-data:www-data -R \/var\/www\/html\/sugar\/<\/pre>\n<p>Create a new MySQL database named \u2018sugarcrm\u2019 on your server:<\/p>\n<pre>mysql -u root -p\r\nmysql&gt; CREATE DATABASE sugarcrm;\r\nmysql&gt; CREATE USER sugar@localhost;\r\nmysql&gt; SET PASSWORD FOR 'sugar'@'localhost' = PASSWORD(\"sugar-password\");\r\nmysql&gt; GRANT ALL PRIVILEGES ON sugarcrm.* TO 'sugar'@'localhost' IDENTIFIED BY 'sugar-password' WITH GRANT OPTION;\r\nmysql&gt; FLUSH PRIVILEGES;\r\nmysql&gt; quit<\/pre>\n<p>Do not forget to change \u2018sugar-password\u2019 with a strong password for your \u2018sugar\u2019 MySQL user.<\/p>\n<p>Open http:\/\/your-domain.com in your favorite web browser and follow the easy instructions<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Download the latest version of SugarCRM Community Edition available at http:\/\/sourceforge.net\/projects\/sugarcrm\/files\/ to the \u2018\/opt\u2019 directory on the server. Then, extract it and move the SugarCRM files and directories to the \u2018\/var\/www\/html\/sugar\u2019 directory. At the time of writing this tutorial, the latest stable version of SugarCRM Community Edition is 6.5.20. cd \/opt\/ wget http:\/\/sourceforge.net\/projects\/sugarcrm\/files\/latest\/download -O SugarCE-6.5.20.zip ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"http:\/\/symbioticindia.in\/docu\/2016\/05\/06\/how-to-install-sugarcrm-community-edition-on-an-ubuntu-14-x\/\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,12],"tags":[],"class_list":["post-56","post","type-post","status-publish","format-standard","hentry","category-sugarcrm","category-ubuntu"],"_links":{"self":[{"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/posts\/56","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/comments?post=56"}],"version-history":[{"count":1,"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/posts\/56\/revisions"}],"predecessor-version":[{"id":57,"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/posts\/56\/revisions\/57"}],"wp:attachment":[{"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/media?parent=56"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/categories?post=56"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/symbioticindia.in\/docu\/wp-json\/wp\/v2\/tags?post=56"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}