1.下载centos7,好像2024维护就过期了
http://mirrors.nju.edu.cn/centos/7.9.2009/isos/x86_64/
2.下载Vtiger CRM 安装包,看一下里面的安装说明
https://www.vtiger.com/open-source-crm/download-open-source/#download
Installation¶
Vtiger CRM is web-application built using PHP.
Pre-requisites
Apache 2.1+
MySQL 5.1+
storage_engine = InnoDB
local_infile = ON (under [mysqld] section)
sql_mode = empty (or NO_ENGINE_SUBSTITUTION) for MySQL 5.6+
PHP 5.2+, 7.0+
php-imap
php-curl
php-xml
memory_limit (min. 256MB)
max_execution_time (min. 60 seconds)
error_reporting (E_ERROR & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED)
display_errors = OFF
short_open_tag = OFF
Hardware: 4 GB RAM, 250 GB Disk (for file attachments)
Procedure
Get your LAMP, WAMP, MAMP configured that meets the above pre-requisites.
Unzip Vtiger CRM into web-folder (or document root)
Make sure to provide writeable access to (Apache process owner) on web-folder.
Visit http://yourserver.tld/index.php
The wizard will help you get through next steps of installation.
3.安装centos7,
装好重启,网络ping不通。
到/etc/sysconfig/netwrok-scripts/
找到ifcfg-eth0, 将里面的 onboot改成yes ,重启。
4.安装宝塔,主要安装LAMP比较省事
https://www.bt.cn/bbs/forum.php?mod=viewthread&tid=1186
yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && sh install.sh
安装成功后,把下面的宝塔控制面板地址记住:
外网面板地址: https://SERVER_IP:11080/d8f52957
内网面板地址: https://172.168.0.100:11080/d8f52957
username: qld8fkwo
password: 73e473e4
If you cannot access the panel,
release the following panel port [11080] in the security group
若无法访问面板,请检查防火墙/安全组是否有放行面板[11080]端口
因已开启面板自签证书,访问面板会提示不匹配证书,请参考以下链接配置证书
https://www.bt.cn/bbs/thread-105443-1-1.html
5.配置宝塔LAMP
登录内网面板地址: https://SERVER_IP:11080/d8f52957
宝塔会提示安装LAMP、LNMP,选一个安装即可,按Vtiger CRM安装要求选择LAMP
6.将下载的CRM解压
使用宝塔控制面板,将下载vtigerCRM上传解压到 www
7.添加CRM站点,添加站点设置目录
8.创建数据库
得到数据库名称和密码
9.初始化Vtiger CRM
登录http://172.168.0.100/index.php,进行配置
主要配置数据库连接和管理员密码
可能会遇到如下错误,主要是因为版本兼容问题:
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; UserTimeZones has a deprecated constructor in /www/crm/modules/Users/UserTimeZonesArray.php on line 15
Deprecated: Function get_magic_quotes_gpc() is deprecated in /www/crm/includes/http/Request.php on line 25
MySQL Server should be configured with:
[mysqld]
sql_mode = ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
找到/etc/my.cnf,添加sql_mode.
10.登录Viger CRM进行后续的配置操作, 学习和了解这个开源CRM系统