[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登錄 

登入成功 

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

首頁 


安裝完成。

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章