How To Install SugarCRM 6.5.20 on CentOS 7, Red Hat 7, Fedora 21
14:19
Introduction
I've been researching opensource CRM solutions and a colleague suggested SugarCRM so I headed down that path full force. As you can imagine, I ran into many frustrations due to loosely documented procedures or lack of detail.
After die-hard dedication, I was able to get my SugarCRM server up and running. In doing so, I created my own install document that I'd like to share with others.
This How-To only covers the install of SugarCRM on a Linux 7 distro, not the configuration because there's key information needed for configuring that will vary from company to company. You'll understand once you get your server up and running.
http://www.ninjasysadmin.com/how-to-install-sugarcrm-6-5-20-on-centos-7-red-hat-7-fedora-21/
Steps (20 total)
timedatectl set-timezone America/Chicago
yum install php httpd mariadb mariadb-server php-mysqlnd php-mssql php-opcache php-mbstring unzip nano wget
yum install epel-release
yum install php-imap
yum install php-imap
yum update
hostnamectl set-hostname sugarcrm
vi /etc/selinux/config
Find SELINUX=enforcing and change to
SELINUX=permissive
Write, Quit, Now
:wq!
Find SELINUX=enforcing and change to
SELINUX=permissive
Write, Quit, Now
:wq!
Make sure selinux is turned off for this session (same as permissive)
setenforce 0
setenforce 0
firewall-cmd –zone=public –add-service=http –permanent
service firewalld restart
service firewalld status
service firewalld restart
service firewalld status
systemctl enable mariadb.service
systemctl start mariadb.service
systemctl restart httpd.service
chkconfig firewalld on
chkconfig httpd on
systemctl start mariadb.service
systemctl restart httpd.service
chkconfig firewalld on
chkconfig httpd on
Before you install Sugar, set AllowOverride to All for the Sugar installation directory in the httpd.conf file. After you install Sugar, an .htaccess file is created in your Sugar installation directory.
There are at least 3 instances of AllowOverride. The first is for the root directory (/). The second is for /var/www. The third and the setting you need to change is /var/www/html.
vi /etc/httpd/conf/httpd.conf
Search for AllowOverride (for /var/www/html)
AllowOverride None
Change from None to All
Write, Quit, Now
:wq!
Search for AllowOverride (for /var/www/html)
AllowOverride None
Change from None to All
Write, Quit, Now
:wq!
vi /etc/hosts
<localhost_ip> sugarcrm.yourdomain.com sugarcrm
<localhost_ip> sugarcrm
Write, Quit, Now
:wq!
<localhost_ip> sugarcrm.yourdomain.com sugarcrm
<localhost_ip> sugarcrm
Write, Quit, Now
:wq!
Navigate to the php.ini file located in your Sugar root directory and set the variables_order parameter to EGPCS.
vi /etc/php.ini
Search for upload_max_filesize and change from 2M to 20M
upload_max_filesize =
Search for variables_order and change from GPCS to EGPCS
variables_order =
Search for date.timezone
; date.timezone =
Uncomment and set to America/Chicago as such
date.timezone = America/Chicago
Write, Quit, Now
:wq!
vi /etc/php.ini
Search for upload_max_filesize and change from 2M to 20M
upload_max_filesize =
Search for variables_order and change from GPCS to EGPCS
variables_order =
Search for date.timezone
; date.timezone =
Uncomment and set to America/Chicago as such
date.timezone = America/Chicago
Write, Quit, Now
:wq!
reboot
Navigate to WWW directory
cd /var/www
cd /var/www
wget http://downloads.sourceforge.net/project/sugarcrm/1%20-%20SugarCRM%206.5.X/SugarCommunityEdition-6.5.X/SugarCE-6.5.20.zip?r=http%3A%2F%2Fwww.sugarcrm.com%2Fthank-you-downloading-sugar-community-edition&ts=1426019617&use_mirror=superb-dca2
When complete, press Enter
When complete, press Enter
Show contents of directory
ls
ls
You should see an html directory and your download which will lead with “SugarCE-Full-6.5.20.zip” followed by a bunch of other characters
Rename that file to something more manageable (highlight the file to select the exact name)
mv SugarCE-6.5.20.zip?r=http%3A%2F%2Fwww SugarCE-Full-6.5.20.zip
Show contents of directory
ls
You should see an html directory and your new, abbreviated SugarCE-Full-6.5.20.zip file
mv SugarCE-6.5.20.zip?r=http%3A%2F%2Fwww SugarCE-Full-6.5.20.zip
Show contents of directory
ls
You should see an html directory and your new, abbreviated SugarCE-Full-6.5.20.zip file
unzip SugarCE-Full-6.5.20.zip
ls
You should see an html directory, your new, abbreviated SugarCE-Full-6.5.20.zip file, and a new directory named SugarCE-Full-6.5.20
ls
You should see an html directory, your new, abbreviated SugarCE-Full-6.5.20.zip file, and a new directory named SugarCE-Full-6.5.20
Output Example
html
SugarCE-Full-6.5.20.zip
SugarCE-Full-6.5.20
html
SugarCE-Full-6.5.20.zip
SugarCE-Full-6.5.20
cd SugarCE-Full-6.5.20
mv * /var/www/html
cd ..
rm -rf SugarCE-Full-6.5.20
mv * /var/www/html
cd ..
rm -rf SugarCE-Full-6.5.20
16. Create empty .htaccess file (Installation is supposed to do this automatically but I ran into problems so I created a blank one that can be written to)
cd /var/www/html
vi .htaccess
#
Write, Quit, Now
:wq!
cd /var/www/html
vi .htaccess
#
Write, Quit, Now
:wq!
Installation is supposed to do this automatically but I ran into problems so I created a blank one that can be written to.
cd /var/www/html
vi .htaccess
#
Write, Quit, Now
:wq!
cd /var/www/html
vi .htaccess
#
Write, Quit, Now
:wq!
chown apache:apache -R /var/www/html
chmod -R 0775 /var/www/html
Setup Root user for first use
mysqladmin -u root password NEWPW
Test root user login
mysql -u root -p
Enter NEWPW
Should now be logged into myslq
exit
mysqladmin -u root password NEWPW
Test root user login
mysql -u root -p
Enter NEWPW
Should now be logged into myslq
exit
0 comentarios