Cerb is a free and open source web-based application software for collaboration and email automation. It is written in PHP Language and uses MysqL/MariaDB as a database. It is used for sending a large number of emails.

Here,we will explain how to install Cerb on CentOS 7 server.

Requirements

  • A CentOS 7 server installed on your system.

  • A sudo user with root privileges.

1 Getting Started

Let's start by installing EPEL repo and updating the system with the latest stable version.

You can do this by running the following command:

sudo yum install epel-release -y
sudo yum update -y

2 Install LAMP Server

Before starting,you will need to install LAMP server (Apache,MariaDB and PHP) in your system.

First,install Apache and MariaDB with the following command:

sudo yum install httpd mariadb mariadb-server -y

Once the installation is complete,start the Apache and MariaDB service and enable them to start on boot:

sudo systemctl start httpd
sudo systemctl enable httpd
sudo systemctl start mariadb
sudo systemctl enable mariadb

Next,install PHP and other required modules with the following command:

sudo yum install install PHP PHP-curl PHP-dom PHP-gd PHP-MysqLi PHP-openssl PHP-pcre PHP-imap PHP-json PHP-mbstring PHP-session PHP-simplexml PHP-xml PHP-spl PHP-mailparse -y

ottom:0px;padding:1em;color:rgb(71,you will need to make some changes in /etc/PHP.ini file:

sudo nano /etc/PHP.ini

Change the following lines:

memory_limit=256M
upload_max_filesize=64M
post_max_size=64M
upload_tmp_dir=/tmp

Save the file when you are finished.

3 Configure Database

ottom:0px;padding:1em;color:rgb(71,you will need to secure MariaDB. You can secure it by running MysqL_secure_installation script.

sudo MysqL_secure_installation

Answer all the questions as shown below:

Setrootpassword?[Y/n]Y
Newpassword:
Re-enternewpassword:
Removeanonymoususers?[Y/n]Y
disallowrootloginremotely?[Y/n]Y
Removetestdatabaseandaccesstoit?[Y/n]Y
ReloadprivilegetablesNow?[Y/n]Y

ottom:0px;padding:1em;color:rgb(71,login to MysqL shell and create a database and user for Cerb:

MysqL -u root -p

Enter your root password and press Enter,then create a database and user with the following command:

MariaDB [(none)]> CREATE DATABASE curbdb;
MariaDB [(none)]> GRANT ALL PRIVILEGES ON curbdb.* TO 'cerb'@'localhost' IDENTIFIED BY 'cerbpassword';
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> \q

4 Install Cerb

Once Database is configured,you will need to install Cerb. You can download the latest version of Cerb from GitHub repository with the following command:

cd /var/www/html/
sudo git clone git://github.com/wgm/cerb.git cerb

ottom:0px;padding:1em;color:rgb(71,provide proper permissions to the cerb directory:

sudo chown -R apache:apache cerb
sudo chmod -R 777 cerb

5 Configure Apache for Cerb

ottom:0px;padding:1em;color:rgb(71,you will need to create a virtual host server block for Cerb. You can do this by creating cerb.conf file inside /etc/httpd/conf.d/ directory:

sudo nano /etc/httpd/conf.d/cerb.conf

Add the following lines:

<VirtualHost*:80>
ServerAdminadmin@example.com
DocumentRoot"/var/www/html/cerb.conf"
ServerNameyour-server-ip
ErrorLog"/var/log/httpd/cerb-error_log"
CustomLog"/var/log/httpd/cerb-access_log"combined
<Directory"/var/www/html/cerb/">
OptionsIndexesMultiViewsFollowSymlinks
AllowOverrideAll
Orderallow,deny
Allowfromall
</Directory>
</VirtualHost>

Save and close the file when you are finished,then restart Apache service:

sudo systemctl restart httpd

6 Access Cerb Web Interface

Before accessing Cerb web interface,you will need to allow HTTP traffic on port 80 through the system firewalld.

sudo firewall-cmd --zone=public --permanent --add-service=http
sudo firewall-cmd --reload

Now open your web browser and type the URL http://your-server-ip,then complete all required steps to finish the installation.

Once Cerb is installed,delete the install directory before using it with the following command:

sudo rm -rf /var/www/html/cerb/install

That's it,you can Now easily access and use Cerb through your web browser.

7 Links

  • Cerb

How to Install Cerb Collaboration and Email Automation on CentOS 7的更多相关文章

  1. ios – 在Restkit 0.2中为给定的类添加两个请求描述符

    我需要从User类中提供两种不同类型的POST.我试图制作两个请求描述符并将其添加到我的对象管理器,但是我收到错误“Cannotaddarequestdescriptorforthesameobjectclassasanexistingrequestdescriptor.”我的代码有没有人知道如何解决这个问题,而不需要为这些请求创建一个单独的类?任何帮助是赞赏.谢谢.解决方法您可以使用动态映射来切

  2. [快速学会Swift第三方库] SQLite.swift篇

    [快速学会Swift第三方库]sqlite.swift篇sqlite.swift是一个使用纯Swift语言封装sqlite3的操作框架。

  3. CSSwiftExtension - 贡献一个非常好用的Swift extension集合

    CSSwiftExtension是我个人开源的一个非常有用的Swiftextension集合。

  4. Swift类型不符合协议NilLiteralConvertible

    我以为写这样的东西:这不会抛出这个错误。听起来像斯威夫特让我只写第二种方式。如果你的函数可以返回nil,那么它应该被声明为…然后呼叫者知道它可以是零。(你的第二个例子是工作,但会崩溃,因为退出将隐含地尝试解开nil。

  5. swift3 – Alamofire 4.0,Swift 3 Post params没有通过

    当我升级到最新的一切时,以下停止发布参数,我不知道为什么……

  6. 无法使用swift 3和ios 10从facebook检索电子邮件

    您好我正试图从Facebook检索我的电子邮件,因为我正在使用swift播放facebookiossdk.IOS平台是10,swift3和Xcode8.我在线跟踪教程,但无法检索电子邮件.下面是我的代码:在我的appdelegate.swift文件中:我能够登录并注销但无法检索电子邮件.更新实际上,当我实际传递打印时,我可以在控制台上看到它作为可选语句.我在没有可选参数的情况下显示它时遇到了麻烦我用这种方式解决了这个问题:

  7. android – 如何在ViewPager中使用cursorLoader?

    解决方法我无法评论,所以我正在写一个答案..您有一个实现LoaderCallbacks的活动.加载数据时,您的活动会收到onLoadFinished回调.在此方法中,您有一个应该在ViewPager中显示的Cursor.要显示Cursor中的数据,请在适配器上调用swapCursor方法.因此,每次加载数据时都不要创建适配器.创建一次,然后只需调用swapCursor即可.此外,每次都找不到ViewPager–findViewById是一个繁重的操作,它应该在创建视图层次结构后执行.所以,你的onLoad

  8. 使用LoginManager登录Android Facebook SDK 4.0

    我正在尝试将旧应用程序的登录代码从SDK3.0迁移到SDK4.0.我已经使用LoginManager实现了Login,因为我有自定义登录按钮.问题是我没有得到FacebookAPI的回复.没有成功,没有错误,没有任何异常抛出.代码如下:使用调试器,我能够看到这一行:mLoginMgr.logInWithReadPermissions(mActivity,mPermissions);执行,但没有触发

  9. android – UnitTest JSONObject显示为null

    )将其添加到build.gradle文件中,如下所示这将取代存根的Android库与在桌面上工作的库.

  10. 如何在android中解析这个JSON数组

    我想要每个TAG的名称,电子邮件和图像.我必须在List元素中显示.我尝试了很多但却无法做到.只是让我知道循环,如何达到每个名称,电子邮件,图像等的值,如何保持.解决方法我为你的问题生成了一个解决方案.

随机推荐

  1. 在airgapped(离线)CentOS 6系统上安装yum软件包

    我有一个CentOS6系统,出于安全考虑,它已经被空气泄漏.它可能从未连接到互联网,如果有,它很长时间没有更新.我想将所有.rpm软件包放在一个驱动器上,这样它们就可以脱机安装而无需查询互联网.但是,我在测试VM上遇到的问题是,即使指定了本地路径,yum仍然会挂起并尝试从在线存储库进行更新.另外,有没有办法使用yum-utils/yumdownloader轻松获取该包的所有依赖项和所有依赖项?目前

  2. centos – 命名在日志旋转后停止记录到rsyslog

    CentOS6.2,绑定9.7.3,rsyslog4.6.2我最近设置了一个服务器,我注意到在日志轮换后,named已停止记录到/var/log/messages.我认为这很奇怪,因为所有日志记录都是通过rsyslog进行的,并且named不会直接写入日志文件.这更奇怪,因为我在更新区域文件后命名了HUPed,但它仍然没有记录.在我停止并重新启动命名后,记录恢复.这里发生了什么?

  3. centos – 显示错误的磁盘大小

    对于其中一个磁盘,Df-h在我的服务器上显示错误的空白区域:Cpanel表明它只有34GB免费,但还有更多.几分钟前,我删除了超过80GB的日志文件.所以,我确信它完全错了.fdisk-l/dev/sda2也显示错误:如果没有格式化,我该怎么做才能解决这个问题?并且打开文件描述符就是它需要使用才能做到这一点.所以…使用“lsof”并查找已删除的文件.重新启动写入日志文件的服务,你很可能会看到空间可用.

  4. 如何在centos 6.9上安装docker-ce 17?

    我目前正在尝试在centOS6.9服务器上安装docker-ce17,但是,当运行yuminstalldocker-ce时,我收到以下错误:如果我用跳过的标志运行它我仍然得到相同的消息,有没有人知道这方面的方法?

  5. centos – 闲置工作站的异常负载平均值

    我有一个新的工作站,具有不寻常的高负载平均值.机器规格是:>至强cpu>256GB的RAM>4x512GBSSD连接到LSI2108RAID控制器我从livecd安装了CentOS6.564位,配置了分区,网络,用户/组,并安装了一些软件,如开发工具和MATLAB.在启动几分钟后,工作站负载平均值的值介于0.5到0.9之间.但它没有做任何事情.因此我无法理解为什么负载平均值如此之高.你能帮我诊断一下这个问题吗?

  6. centos – Cryptsetup luks – 检查内核是否支持aes-xts-plain64密码

    我在CentOS5上使用cryptsetupluks加密加密了一堆硬盘.一切都很好,直到我将系统升级到CentOS6.现在我再也无法安装磁盘了.使用我的关键短语装载:我收到此错误:在/var/log/messages中:有关如何装载的任何想法?找到解决方案问题是驱动器使用大约512个字符长的交互式关键短语加密.出于某种原因,CentOS6中的新内核模块在由旧版本创建时无法正确读取512个字符的加密密钥.似乎只会影响内核或cryptsetup的不同版本,因为在同一系统上创建和打开时,512字符的密钥将起作用

  7. centos – 大量ssh登录尝试

    22个我今天登录CentOS盒找到以下内容这是过去3天内的11次登录尝试.WTF?请注意,这是我从我的提供商处获得的全新IP,该盒子是全新的.我还没有发布任何关于此框的内容.为什么我会进行如此大量的登录尝试?是某种IP/端口扫描?基本上有4名匪徒,其中2名来自中国,1名来自香港,1名来自Verizon.这只发生在SSH上.HTTP上没有问题.我应该将罪魁祸首子网路由吗?你们有什么建议?

  8. centos – kswap使用100%的CPU,即使有100GB的RAM也可用

    >Linux内核是否应该足够智能,只需从内存中清除旧缓存页而不是启动kswap?

  9. centos – Azure将VM从A2 / 3调整为DS2 v2

    我正在尝试调整前一段时间创建的几个AzureVM,从基本的A3和标准A3到标准的DS2v2.我似乎没有能力调整到这个大小的VM.必须从头开始重建服务器会有点痛苦.如果它有所不同我在VM中运行CentOS,每个都有一个带有应用程序和操作系统的磁盘.任何人都可以告诉我是否可以在不删除磁盘的情况下删除VM,创建新VM然后将磁盘附加到新VM?

  10. centos – 广泛使用RAM时服务器计算速度减慢

    我在非常具体的情况下遇到服务器速度下降的问题.事实是:>1)我使用计算应用WRF>2)我使用双XeonE5-2620v3和128GBRAM(NUMA架构–可能与问题有关!

返回
顶部