如何在Debian 10上安装YetiForce CRM

如何在Debian 10上安装YetiForce CRM

YetiForce是一个免费的开源客户关系管理系统,可帮助管理与客户,供应商,合作伙伴和员工的关系。 YetiForce可以与LDAP,PBX,DAV,地图,社交门户和其他Web服务集成。 YetiForce使您可以在世界任何地方远程控制您的业务。它具有丰富的功能集,包括70多个用户模块和配置面板,发票,电子邮件自动化和跟踪,电子邮件通知,活跃的大型社区,GDPR管理等等。

在本教程中,我们将向您展示如何使用Let’s Encrypt free SSL在Debian 10上安装YetiForce。

先决条件

  • 运行Debian 10且至少具有2 GB RAM的服务器。
  • 指向服务器IP的有效域名。我们将在本文中使用example.com域。
  • 在您的服务器上配置了root密码。

入门

开始之前,建议使用最新版本更新服务器。您可以使用以下命令更新它:

apt-get update -y
apt-get upgrade -y

更新服务器后,请重新启动服务器以实施更改。

安装Apache,MariaDB和PHP

首先,您需要在服务器上安装Apache,MariaDB,PHP和其他必需的库。您可以通过运行以下命令来安装它们:

apt-get install apache2 mariadb-server php libapache2-mod-php php-common php-mysql php-gmp php-curl php-intl php-mbstring php-xmlrpc php-gd php-bcmath php-soap php-ldap php-imap php-xml php-cli php-zip git unzip wget -y

安装完所有软件包后,打开php.ini文件并进行一些必要的设置:

nano /etc/php/7.3/apache2/php.ini

更改以下行:

display_errors = Off
html_errors = Off
display_startup_errors
memory_limit = 256M
post_max_size = 50M
upload_max_filesize = 100M
max_execution_time = 360
date.timezone = Asia/Kolkata

完成后保存并关闭文件。然后,启动Apache和MariaDB服务,并使用以下命令使它们在系统重新引导时启动:

systemctl start apache2
systemctl start mariadb
systemctl enable apache2
systemctl enable mariadb

完成后,您可以继续下一步。

配置数据库

默认情况下,MariaDB不安全,因此您需要对其进行安全保护。您可以通过运行以下命令来保护它:

mysql_secure_installation

回答所有问题,如下所示:

Enter current password for root (enter for none):
Set root password? [Y/n] Y
New password:
Re-enter new password:
Remove anonymous users? [Y/n] Y
Disallow root login remotely? [Y/n] Y
Remove test database and access to it? [Y/n] Y
Reload privilege tables now? [Y/n] Y

完成后,使用以下命令登录MariaDB shell:

mysql -u root -p

在提示时提供您的root密码,然后使用以下命令为YetiForce创建数据库和用户:

MariaDB [(none)]> CREATE DATABASE yetiforcedb;
MariaDB [(none)]> CREATE USER 'yetiforce'@'localhost' IDENTIFIED BY 'password';

接下来,使用以下命令为yetiforcedb授予所有特权:

MariaDB [(none)]> GRANT ALL ON yetiforcedb.* TO 'yetiforce'@'localhost' WITH GRANT OPTION;

接下来,刷新特权并使用以下命令从MariaDB shell退出:

MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> EXIT;

至此,您已经为YetiForce配置了MariaDB数据库。接下来,您可以继续下载YetiForce。

下载YetiForce

首先,您需要从sourceforge网站下载YetiForce。您可以使用以下命令下载它:

wget https://excellmedia.dl.sourceforge.net/project/yetiforce/YetiForce%20CRM%205.x.x/5.1.0/YetiForceCRM-5.1.0-complete.zip

下载完成后,通过运行以下命令将下载的文件解压缩到Apache Web根目录:

mkdir /var/www/html/yetiforce
unzip YetiForceCRM-5.1.0-complete.zip -d /var/www/html/yetiforce

接下来,对yetiforce目录赋予适当的权限,如下所示:

chown -R www-data:www-data /var/www/html/yetiforce
chmod -R 755 /var/www/html/yetiforce

完成后,您可以继续下一步。

为YetiForce配置Apache

接下来,您将需要为YetiForce创建一个Apache虚拟主机配置文件。您可以使用以下命令创建它:

nano /etc/apache2/sites-available/yetiforce.conf

添加以下行:


     ServerAdmin [email protected]
     DocumentRoot /var/www/html/yetiforce
     ServerName example.com

     
          Options FollowSymlinks
          AllowOverride All
          Require all granted
     

     ErrorLog ${APACHE_LOG_DIR}/error.log
     CustomLog ${APACHE_LOG_DIR}/access.log combined

完成后保存并关闭文件。然后,使用以下命令启用虚拟主机并重写模块:

a2ensite yetiforce.conf
a2enmod rewrite

最后,重新启动Apache Web服务以实现更改:

systemctl restart apache2

完成后,您可以继续下一步。

让我们加密货币免费SSL来保护YetiForce

YetiForce现在已安装和配置。接下来,使用“让我们加密货币免费的SSL”保护它是一个好主意。为此,您需要在服务器上安装Certbot客户端。

默认情况下,Certbot客户端软件包在Debian 10默认存储库中不可用。您可以使用以下命令添加它:

echo "deb http://ftp.debian.org/debian buster-backports main" >> /etc/apt/sources.list

接下来,更新存储库并使用以下命令安装Certbot客户端:

apt-get update -y
apt-get install python-certbot-apache -t buster-backports

安装后,运行以下命令以获取并安装您域的SSL证书:

certbot --apache -d example.com

您将被要求提供您的电子邮件地址并同意服务条款。

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Enter email address (used for urgent renewal and security notices) (Enter 'c' to
cancel): [email protected]

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Please read the Terms of Service at
https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf. You must
agree in order to register with the ACME server at
https://acme-v02.api.letsencrypt.org/directory
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(A)gree/(C)ancel: A

接下来,您将需要选择是否将HTTP流量重定向到HTTPS,删除HTTP访问,如下所示:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: No redirect - Make no further changes to the webserver configuration.
2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for
new sites, or if you're confident your site works on HTTPS. You can undo this
change by editing your web server's configuration.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2

选择选项2为您的域下载并安装免费的SSL证书,然后按Enter键完成安装,如下所示:

IMPORTANT NOTES:
 - Congratulations! Your certificate and chain have been saved at:
   /etc/letsencrypt/live/example.com/fullchain.pem
   Your key file has been saved at:
   /etc/letsencrypt/live/example.com/privkey.pem
   Your cert will expire on 2020-03-23. To obtain a new or tweaked
   version of this certificate in the future, simply run certbot-auto
   again with the "certonly" option. To non-interactively renew *all*
   of your certificates, run "certbot-auto renew"
 - If you like Certbot, please consider supporting our work by:

   Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
   Donating to EFF:                    https://eff.org/donate-le

访问YetiForce

现在,打开您的Web浏览器并输入URL https://example.com。您将被重定向到YetiForce欢迎页面:

YetiForce安装向导

单击安装按钮。您应该看到以下页面:

YetiForce许可证

接下来,单击“我同意”按钮以接受许可协议。您应该看到以下页面:

系统配置

提供您的数据库名称,用户名,密码,管理员用户详细信息,然后单击下一步按钮。您应该看到以下页面:

确认设定

现在,单击“下一步”按钮以确认更改。您应该看到以下页面:

验证服务器配置

现在,单击“下一步”按钮以验证服务器配置。您应该看到以下页面:

设置公司详细信息

现在,提供您的公司详细信息,然后单击下一步按钮。您将被重定向到以下页面中的YetiForce仪表板:

YetiForce CRM仪表板

结论

在上面的文章中,您学习了如何在Debian 10服务器上使用Let’s Encrypt free SSL来安装YetiForce。现在,您可以根据需要继续配置其他设置。如有任何问题,随时问我。

资讯来源:由0x资讯编译自HOWTOFORGE,版权归作者所有,未经许可,不得转载
你可能还喜欢