{"id":2259,"date":"2016-07-19T15:21:44","date_gmt":"2016-07-19T19:21:44","guid":{"rendered":"https:\/\/www.globo.tech\/learning-center\/?p=2259"},"modified":"2017-12-12T15:51:18","modified_gmt":"2017-12-12T20:51:18","slug":"install-sugarcrm-ubuntu-14","status":"publish","type":"post","link":"https:\/\/www.globo.tech\/learning-center\/install-sugarcrm-ubuntu-14\/","title":{"rendered":"How to Install SugarCRM on Ubuntu 14"},"content":{"rendered":"<h1>How to Install SugarCRM on Ubuntu 14<\/h1>\n<p>If you&#8217;re running a small business and are looking for a way to track details on your customers, but aren&#8217;t quite ready to leap into the deep end with Salesforce, SugarCRM may be just what you need. SugarCRM is a self-hosted, open source, customer relationship management solution with all you&#8217;ll need to get started. This guide gets you up and running with SugarCRM on an Ubuntu 14.04 server.<\/p>\n<h2>Getting Started<\/h2>\n<p>To complete this guide, you will need the following:<br \/>\n\u2022 1 Node (<a href=\"https:\/\/www.globo.tech\/cloud-server-pricing\" target=\"_blank\">Cloud Server<\/a> or <a href=\"http:\/\/www.globo.tech\/dedicated-server-hosting\" target=\"_blank\">Dedicated Server<\/a>) running Ubuntu 14.<br \/>\n\u2022 All commands should be run as the root user<br \/>\n\u2022 A LAMP stack with Apache, PHP and MySql<\/p>\n<p>When we&#8217;re done. SugarCRM will be running, and you can begin entering your business&#8217; customers and other information.<\/p>\n<h2>Tutorial<\/h2>\n<p>This CRM requires a few PHP modules that are packaged in Ubuntu&#8217;s repositories. This command installs the necessary PHP libraries.<\/p>\n<p><code>apt-get install php5-cli php5-common php5-dev php5-mysql php5-curl php5-gd php-pear php5-imap php5-mcrypt php5-xmlrpc php5-xsl<\/code><\/p>\n<p>Now we need to install the PHP jsmin module.<\/p>\n<p><code>pecl install jsmin<\/code><\/p>\n<p>With all necessary libraries installed, we must now enable them in php.ini so they are automatically available to the PHP process.<\/p>\n<p><code>nano \/etc\/php5\/apache2\/php.ini<\/code><br \/>\n<code>extension=jsmin.so<\/code><\/p>\n<p>You&#8217;ll likely be uploading some large files while using SugarCRM. To prevent web server errors, let&#8217;s increase the upload_max_filesize configuration parameter to 25 megs.<\/p>\n<p><code class=\"gris\">; Maximum allowed size for uploaded files.<br \/>\n; http:\/\/php.net\/upload-max-filesize<br \/>\nupload_max_filesize = 25M<\/code><\/p>\n<p>With all modules installed and enabled, let&#8217;s restart Apache so any PHP apps have access to the new libraries and configuration.<\/p>\n<p><code>service apache2 restart<\/code><\/p>\n<p>The CRM expects to connect to an IMAP server for tracking inbound email. Let&#8217;s pull in the IMAP module so it can accomplish this.<\/p>\n<p><code>php5enmod imap<\/code><\/p>\n<p>SugarCRM also needs a database to store customers and other information. Let&#8217;s create that now.<\/p>\n<p><code>mysql -u root -p<\/code><\/p>\n<p><code class=\"gris\">create database sugarcrm;<br \/>\ngrant all privileges on sugarcrm.* to 'username'@'localhost' identified by 'password';<br \/>\nflush privileges;<br \/>\nexit<\/code><\/p>\n<p>Next, we download the zip file for SugarCRM. It is then unzipped and placed in Apache&#8217;s document root, make sure that you don&#8217;t have already something inside the html folder or it will be overwritten.<\/p>\n<p><code>wget http:\/\/liquidtelecom.dl.sourceforge.net\/project\/sugarcrm\/1%20-%20SugarCRM%206.5.X\/SugarCommunityEdition-6.5.X\/SugarCE-6.5.23.zip<br \/>\nunzip SugarCE-6.5.23.zip<br \/>\ncd SugarCE-Full-6.5.23\/<br \/>\ncp -R * \/var\/www\/html\/<br \/>\nrm -rf \/var\/www\/html\/SugarCE-6.5.23*<\/code><\/p>\n<p>We need to modify some directory permissions. In particular, Apache needs write access to some areas of your SugarCRM installation.<\/p>\n<p><code>chown www-data:www-data -R \/var\/www\/html\/<\/code><\/p>\n<p>An .htaccess file is critical in protecting certain files in your installation from being downloaded or run, particularly important for hiding credentials and other sensitive details. Create an .htaccess file in the document root with this content:<\/p>\n<p><code>cd \/var\/www\/html<br \/>\nnano .htaccess<\/code><\/p>\n<p><code class=\"gris\"># BEGIN SUGARCRM RESTRICTIONS<br \/>\nRedirectMatch 403 (?i).*\\.log$<br \/>\nRedirectMatch 403 (?i)\/+not_imported_.*\\.txt<br \/>\nRedirectMatch 403 (?i)\/+(soap|cache|xtemplate|data|examples|include|log4php|metadata|modules)\/+.*\\.(php|tpl)<br \/>\nRedirectMatch 403 (?i)\/+emailmandelivery\\.php<br \/>\nRedirectMatch 403 (?i)\/+upload<br \/>\nRedirectMatch 403 (?i)\/+custom\/+blowfish<br \/>\nRedirectMatch 403 (?i)\/+cache\/+diagnostic<br \/>\nRedirectMatch 403 (?i)\/+files\\.md5$<br \/>\n# END SUGARCRM RESTRICTIONS<\/code><\/p>\n<p>Apache should have write permissions on the .htaccess file.<\/p>\n<p><code>chown www-data:www-data .htaccess<\/code><\/p>\n<p>Again, restart Apache so the new modules are integrated.<\/p>\n<p><code>service apache2 restart<\/code><\/p>\n<p>Visit http:\/\/your_ip\/install.php to complete the CRM&#8217; installation in its web-based interface.<\/p>\n<p>Fill in your name, email, database name and access credentials as set previously.<\/p>\n<p>When finished, remove the installer and its directory so it cannot be run again later.<\/p>\n<p><code>cd \/var\/www\/html\/<br \/>\nrm -rf install\/ install.php<\/code><\/p>\n<h2>Conclusion<\/h2>\n<p>Your CRM is now running, and your user has been created with the credentials provided in the installer. It is now time to begin entering your business&#8217; details and customers so you can begin keeping track of how they relate to your company. If this guide was helpful to you, kindly share it with others who may also be interested. <\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>How to Install SugarCRM on Ubuntu 14 If you&#8217;re running a small business and are looking for a way to track details on your customers, but aren&#8217;t quite ready to leap into the deep end with Salesforce, SugarCRM may be just what you need. SugarCRM is a self-hosted, open source, customer relationship management solution with<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[71],"tags":[],"class_list":["post-2259","post","type-post","status-publish","format-standard","hentry","category-applications","operating_system-ubuntu-14-04"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Install SugarCRM on Ubuntu 14 - Globo.Tech<\/title>\n<meta name=\"description\" content=\"This tutorial will show you how to install the customer relationship management software SugarCRM on your Ubuntu 14 server. Read now!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.globo.tech\/learning-center\/install-sugarcrm-ubuntu-14\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install SugarCRM on Ubuntu 14 - Globo.Tech\" \/>\n<meta property=\"og:description\" content=\"This tutorial will show you how to install the customer relationship management software SugarCRM on your Ubuntu 14 server. Read now!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.globo.tech\/learning-center\/install-sugarcrm-ubuntu-14\/\" \/>\n<meta property=\"og:site_name\" content=\"Globo.Tech\" \/>\n<meta property=\"article:published_time\" content=\"2016-07-19T19:21:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-12-12T20:51:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/09\/GloboTech-Logo.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"963\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"GloboTech Communications\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"GloboTech Communications\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/install-sugarcrm-ubuntu-14\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/install-sugarcrm-ubuntu-14\\\/\"},\"author\":{\"name\":\"GloboTech Communications\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/#\\\/schema\\\/person\\\/e17784b37f4a4f49b7bc611847912e87\"},\"headline\":\"How to Install SugarCRM on Ubuntu 14\",\"datePublished\":\"2016-07-19T19:21:44+00:00\",\"dateModified\":\"2017-12-12T20:51:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/install-sugarcrm-ubuntu-14\\\/\"},\"wordCount\":496,\"commentCount\":0,\"articleSection\":[\"Applications\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/install-sugarcrm-ubuntu-14\\\/\",\"url\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/install-sugarcrm-ubuntu-14\\\/\",\"name\":\"How to Install SugarCRM on Ubuntu 14 - Globo.Tech\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/#website\"},\"datePublished\":\"2016-07-19T19:21:44+00:00\",\"dateModified\":\"2017-12-12T20:51:18+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/#\\\/schema\\\/person\\\/e17784b37f4a4f49b7bc611847912e87\"},\"description\":\"This tutorial will show you how to install the customer relationship management software SugarCRM on your Ubuntu 14 server. Read now!\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/install-sugarcrm-ubuntu-14\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/install-sugarcrm-ubuntu-14\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/install-sugarcrm-ubuntu-14\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install SugarCRM on Ubuntu 14\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/#website\",\"url\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/\",\"name\":\"Globo.Tech\",\"description\":\"Welcome to the Official Globo.Tech Learning Center\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/#\\\/schema\\\/person\\\/e17784b37f4a4f49b7bc611847912e87\",\"name\":\"GloboTech Communications\",\"sameAs\":[\"http:\\\/\\\/www.gtcomm.net\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install SugarCRM on Ubuntu 14 - Globo.Tech","description":"This tutorial will show you how to install the customer relationship management software SugarCRM on your Ubuntu 14 server. Read now!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.globo.tech\/learning-center\/install-sugarcrm-ubuntu-14\/","og_locale":"en_US","og_type":"article","og_title":"How to Install SugarCRM on Ubuntu 14 - Globo.Tech","og_description":"This tutorial will show you how to install the customer relationship management software SugarCRM on your Ubuntu 14 server. Read now!","og_url":"https:\/\/www.globo.tech\/learning-center\/install-sugarcrm-ubuntu-14\/","og_site_name":"Globo.Tech","article_published_time":"2016-07-19T19:21:44+00:00","article_modified_time":"2017-12-12T20:51:18+00:00","og_image":[{"width":1920,"height":963,"url":"https:\/\/www.globo.tech\/learning-center\/wp-content\/uploads\/2016\/09\/GloboTech-Logo.png","type":"image\/png"}],"author":"GloboTech Communications","twitter_misc":{"Written by":"GloboTech Communications","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.globo.tech\/learning-center\/install-sugarcrm-ubuntu-14\/#article","isPartOf":{"@id":"https:\/\/www.globo.tech\/learning-center\/install-sugarcrm-ubuntu-14\/"},"author":{"name":"GloboTech Communications","@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87"},"headline":"How to Install SugarCRM on Ubuntu 14","datePublished":"2016-07-19T19:21:44+00:00","dateModified":"2017-12-12T20:51:18+00:00","mainEntityOfPage":{"@id":"https:\/\/www.globo.tech\/learning-center\/install-sugarcrm-ubuntu-14\/"},"wordCount":496,"commentCount":0,"articleSection":["Applications"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.globo.tech\/learning-center\/install-sugarcrm-ubuntu-14\/","url":"https:\/\/www.globo.tech\/learning-center\/install-sugarcrm-ubuntu-14\/","name":"How to Install SugarCRM on Ubuntu 14 - Globo.Tech","isPartOf":{"@id":"https:\/\/www.globo.tech\/learning-center\/#website"},"datePublished":"2016-07-19T19:21:44+00:00","dateModified":"2017-12-12T20:51:18+00:00","author":{"@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87"},"description":"This tutorial will show you how to install the customer relationship management software SugarCRM on your Ubuntu 14 server. Read now!","breadcrumb":{"@id":"https:\/\/www.globo.tech\/learning-center\/install-sugarcrm-ubuntu-14\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.globo.tech\/learning-center\/install-sugarcrm-ubuntu-14\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.globo.tech\/learning-center\/install-sugarcrm-ubuntu-14\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.globo.tech\/learning-center\/"},{"@type":"ListItem","position":2,"name":"How to Install SugarCRM on Ubuntu 14"}]},{"@type":"WebSite","@id":"https:\/\/www.globo.tech\/learning-center\/#website","url":"https:\/\/www.globo.tech\/learning-center\/","name":"Globo.Tech","description":"Welcome to the Official Globo.Tech Learning Center","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.globo.tech\/learning-center\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87","name":"GloboTech Communications","sameAs":["http:\/\/www.gtcomm.net"]}]}},"_links":{"self":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/2259","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/comments?post=2259"}],"version-history":[{"count":7,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/2259\/revisions"}],"predecessor-version":[{"id":3995,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/2259\/revisions\/3995"}],"wp:attachment":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/media?parent=2259"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/categories?post=2259"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/tags?post=2259"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}