[CRM] CentOS7.4 安装SugarCRM

 

官网:http://www.sugarcrm.com
社区:https://community.sugarcrm.com/sugarcrm

 

安装前准备:

1. 安装MySQL(MySQL-5.7)

# 安装MySQL-5.7
[developer@vm software]$ wget https://repo.mysql.com//mysql80-community-release-el7-2.noarch.rpm
[developer@vm software]$ sudo rpm -Uvh mysql80-community-release-el7-2.noarch.rpm
[developer@vm software]$ sudo yum-config-manager --disable mysql80-community
[developer@vm software]$ sudo yum-config-manager --disable mysql56-community
[developer@vm software]$ sudo yum-config-manager --enable mysql57-community
[developer@vm software]$ sudo yum -y install mysql-community-server

# 修改MySQL数据文件路径
[developer@vm software]$ sudo mv /var/lib/mysql /data/
[developer@vm software]$ sudo vi /etc/my.cnf
datadir=/home/developer/data/mysql


# 启动MySQL Server
[developer@vm software]$ sudo systemctl start mysqld
[developer@vm software]$ [sudo grep 'temporary password' /var/log/mysqld.log

2019-06-05T09:35:48.845281Z 1 [Note] A temporary password is generated for root@localhost: ziq.bfhp6;YX
[developer@vm software]$ mysql -uroot -p
Enter password: ziq.bfhp6;YX
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.7.26

Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'mypassword';
Query OK, 0 rows affected (0.00 sec)

mysql> grant all privileges on *.* to cindy@"%" identified by "mypassword";
Query OK, 0 rows affected, 1 warning (0.00 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

mysql> exit
Bye
[developer@vm software]$

# 配置开机自启动
[developer@vm software]$ sudo systemctl enable mysqld

2. 安装PHP(PHP-5.4.45)

# Repo Installation
[developer@vm software]$ sudo rpm -ivh remi-release-7.rpm
[developer@vm software]$ sudo rpm -ivh epel-release-7-11.noarch.rpm

# Enable the Repo
[developer@vm software]$ sudo vi /etc/yum.repos.d/remi.repo
修改[remi]下的enabled=1

# Installing PHP
[developer@vm software]$ sudo yum -y install php php-gd php-mysql php-mcrypt php-mbstring --skip-broken

参考:https://www.mojowill.com/geek/howto-install-php-5-4-5-5-or-5-6-on-centos-6-and-centos-7/

3. 安装Apache(Apache/2.4.6)

# 安装apache
[developer@vm software]$ sudo yum -y httpd httpd-devel

# 启动
[developer@vm software]$ systemctl start httpd

# 开机自启动
[developer@vm software]$ systemctl enable httpd

 

安装SugarCRM

4. 下载安装SugarCRM(SugarCRM-6.5.26)

# 下载
[root@vm software]# wget https://master.dl.sourceforge.net/project/sugarcrm/OldFiles/1%20-%20SugarCRM%206.5.X/SugarCommunityEdition-6.5.X/SugarCE-6.5.26.zip

# 解压
[root@ldap1 software]# unzip SugarCE-6.5.26.zip 

# 拷贝到apache目录
[root@ldap1 software]# cp -rf SugarCE-Full-6.5.26/* /var/www/html/

# 修改属主和权限
[root@ldap1 software]# cd /var/www/html/
[root@ldap1 html]# chmod -R 755 custom/ cache/ modules/ upload/
[root@ldap1 html]# chgrp -R apache custom/ cache/ modules/ upload/
[root@ldap1 html]# chmod 755 config.php config_override.php 
[root@ldap1 html]# chgrp apache config.php config_override.php

# 新建.htaccess文件并设置属主属性
[root@ldap1 html]# touch .htaccess
[root@ldap1 html]# chmod 755 .htaccess 
[root@ldap1 html]# chgrp apache .htaccess 

浏览器访问:http://IP/install.php打开安装页面,下一步

一系列安全检查之后点击下一步

接受协议,下一步

 

通过一系列的数据库、文件夹权限等系统检查之后到达安装页面,选择标准安装或者自定义安装,下一步

选择MySQL作为SugarCRM的内部数据库,下一步

配置数据库信息,下一步

配置SugarCRM系统URL以及管理员账号,下一步

网站安全设置,所有的勾都去掉

最后一步审查SugarCRM的配置,开始安装

 

安装完成

点击完成之后转到SugarCRM登录页面,使用刚才设置的管理员账号密码admin/yourpassword登录 

登入成功 

 按照提示一步一步设置完,完成

首页 


安装完成。

 

©️2020 CSDN 皮肤主题: 深蓝海洋 设计师:CSDN官方博客 返回首页