{"id":3082,"date":"2016-10-07T15:10:42","date_gmt":"2016-10-07T19:10:42","guid":{"rendered":"https:\/\/www.globo.tech\/learning-center\/?p=3082"},"modified":"2017-12-12T15:49:50","modified_gmt":"2017-12-12T20:49:50","slug":"install-sugarcrm-ubuntu-16","status":"publish","type":"post","link":"https:\/\/www.globo.tech\/learning-center\/install-sugarcrm-ubuntu-16\/","title":{"rendered":"How to install SugarCRM on Ubuntu 16"},"content":{"rendered":"<h1>How to install SugarCRM on Ubuntu 16<\/h1>\n<p>SugarCRM is a popular customer relationship management system that has an open source version, SugarCRM Community Edition, with many devoted Linux users. This guide will walk you through the installation of SugarCRM Community Edition on Ubuntu 16.<\/p>\n<h2>Getting Started<\/h2>\n<p>Before you begin our guide, make sure you have the following:<br \/>\n\u2022 1 server (<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 a fresh installation of Ubuntu 16<br \/>\n\u2022 All commands must be entered in root<\/p>\n<h2>Tutorial<\/h2>\n<p>SugarCRM requires a few specific PHP modules to be installed on your server.<\/p>\n<p><code>apt-get install php-cli php-common php-dev php-mysql php-curl php-gd php-pear php-imap php-mcrypt php-xmlrpc php-xsl php-zip php-mbstring<\/code><\/p>\n<p>You&#8217;ll need to also adjust some settings in your php.ini. Open up the file and edit these two variables.<\/p>\n<p><code>nano \/etc\/php\/7.0\/apache2\/php.ini<\/code><\/p>\n<p>First, find upload_max_filesize and increase it to 16M.<\/p>\n<p><code class=\"gris\">; Maximum allowed size for uploaded files.<br \/>\n; http:\/\/php.net\/upload-max-filesize<br \/>\nupload_max_filesize = 16M<\/code><\/p>\n<p>Next, find post_max_filesize and increase it to 24M. Just to be safe, it should be higher than the value you entor for upload_max_filesize.<\/p>\n<p><code class=\"gris\">; Maximum size of POST data that PHP will accept.<br \/>\n; Its value may be 0 to disable the limit. It is ignored if POST data reading<br \/>\n; is disabled through enable_post_data_reading.<br \/>\n; http:\/\/php.net\/post-max-size<br \/>\npost_max_size = 24M<\/code><\/p>\n<p>Save and close the file. Now, restart Apache so that the changes you made to php.ini will take effect.<\/p>\n<p><code>service apache2 restart<\/code><\/p>\n<p>The required php modules will need to be manually enabled.<\/p>\n<p><code>phpenmod imap<br \/>\nphpenmod zip<br \/>\nphpenmod mbstring<\/code><\/p>\n<p>SugarCRM will need its own database, so create that now. Make sure to remember the name and password for later on in the guide.<\/p>\n<p><code>mysql -u root -p<br \/>\ncreate database sugarcrm;<br \/>\ngrant all privileges on sugarcrm.* to 'globotech'@'localhost' identified by 'globotech1234';<br \/>\nflush privileges;<br \/>\nexit<\/code><\/p>\n<p>Finally, we can download SugarCRM itself. Unzip the archive and copy the content to the Document root directory on the server, 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-Full-6.5.23*<\/code><\/p>\n<p>You&#8217;ll need to modify the permissions of some directories and files and grant Apache write permissions in order for SugarCRM to work correctly.<\/p>\n<p><code>chown -R www-data:www-data \/var\/www\/html\/<\/code><\/p>\n<p>Create a .htaccess file with the following rules:<\/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>Naturally, you&#8217;ll need to grant Apache write permissions to .htaccess for it to take effect.<\/p>\n<p><code>chown www-data:www-data .htaccess<\/code><\/p>\n<p>Now restart Apache once again.<\/p>\n<p><code>service apache2 restart<\/code><\/p>\n<p>The rest of the installation takes place through a web interface. Visit the following URL for the final steps:<\/p>\n<p>http:\/\/your_IP\/install.php<\/p>\n<p>Now simply enter all the information that the form requests of you. This will include your name, email address, and the database name and password that you set earlier in the guide.<\/p>\n<p>Once you&#8217;re all finished with that, you should remove the installation directory for security reasons.<\/p>\n<p><code>cd \/var\/www\/html\/<br \/>\nrm -rf install\/ install.php<\/code><\/p>\n<h2>Conclusion<\/h2>\n<p>With the successful installation of SugarCRM, you will now have access to a premier, affordable customer relations solution. If you found this article helpful, feel free to share it with your friends and let us know in the comments below! <\/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 16 SugarCRM is a popular customer relationship management system that has an open source version, SugarCRM Community Edition, with many devoted Linux users. This guide will walk you through the installation of SugarCRM Community Edition on Ubuntu 16. Getting Started Before you begin our guide, make sure you have<!-- 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-3082","post","type-post","status-publish","format-standard","hentry","category-applications"],"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 16 - 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 16 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-16\/\" \/>\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 16 - 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 16 server. Read now!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.globo.tech\/learning-center\/install-sugarcrm-ubuntu-16\/\" \/>\n<meta property=\"og:site_name\" content=\"Globo.Tech\" \/>\n<meta property=\"article:published_time\" content=\"2016-10-07T19:10:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-12-12T20:49:50+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-16\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/install-sugarcrm-ubuntu-16\\\/\"},\"author\":{\"name\":\"GloboTech Communications\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/#\\\/schema\\\/person\\\/e17784b37f4a4f49b7bc611847912e87\"},\"headline\":\"How to install SugarCRM on Ubuntu 16\",\"datePublished\":\"2016-10-07T19:10:42+00:00\",\"dateModified\":\"2017-12-12T20:49:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/install-sugarcrm-ubuntu-16\\\/\"},\"wordCount\":411,\"commentCount\":2,\"articleSection\":[\"Applications\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/install-sugarcrm-ubuntu-16\\\/\",\"url\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/install-sugarcrm-ubuntu-16\\\/\",\"name\":\"How to install SugarCRM on Ubuntu 16 - Globo.Tech\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/#website\"},\"datePublished\":\"2016-10-07T19:10:42+00:00\",\"dateModified\":\"2017-12-12T20:49:50+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 16 server. Read now!\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/install-sugarcrm-ubuntu-16\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/install-sugarcrm-ubuntu-16\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.globo.tech\\\/learning-center\\\/install-sugarcrm-ubuntu-16\\\/#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 16\"}]},{\"@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 16 - Globo.Tech","description":"This tutorial will show you how to install the customer relationship management software SugarCRM on your Ubuntu 16 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-16\/","og_locale":"en_US","og_type":"article","og_title":"How to install SugarCRM on Ubuntu 16 - Globo.Tech","og_description":"This tutorial will show you how to install the customer relationship management software SugarCRM on your Ubuntu 16 server. Read now!","og_url":"https:\/\/www.globo.tech\/learning-center\/install-sugarcrm-ubuntu-16\/","og_site_name":"Globo.Tech","article_published_time":"2016-10-07T19:10:42+00:00","article_modified_time":"2017-12-12T20:49:50+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-16\/#article","isPartOf":{"@id":"https:\/\/www.globo.tech\/learning-center\/install-sugarcrm-ubuntu-16\/"},"author":{"name":"GloboTech Communications","@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87"},"headline":"How to install SugarCRM on Ubuntu 16","datePublished":"2016-10-07T19:10:42+00:00","dateModified":"2017-12-12T20:49:50+00:00","mainEntityOfPage":{"@id":"https:\/\/www.globo.tech\/learning-center\/install-sugarcrm-ubuntu-16\/"},"wordCount":411,"commentCount":2,"articleSection":["Applications"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.globo.tech\/learning-center\/install-sugarcrm-ubuntu-16\/","url":"https:\/\/www.globo.tech\/learning-center\/install-sugarcrm-ubuntu-16\/","name":"How to install SugarCRM on Ubuntu 16 - Globo.Tech","isPartOf":{"@id":"https:\/\/www.globo.tech\/learning-center\/#website"},"datePublished":"2016-10-07T19:10:42+00:00","dateModified":"2017-12-12T20:49:50+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 16 server. Read now!","breadcrumb":{"@id":"https:\/\/www.globo.tech\/learning-center\/install-sugarcrm-ubuntu-16\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.globo.tech\/learning-center\/install-sugarcrm-ubuntu-16\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.globo.tech\/learning-center\/install-sugarcrm-ubuntu-16\/#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 16"}]},{"@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\/3082","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=3082"}],"version-history":[{"count":6,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/3082\/revisions"}],"predecessor-version":[{"id":3992,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/3082\/revisions\/3992"}],"wp:attachment":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/media?parent=3082"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/categories?post=3082"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/tags?post=3082"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}