Skip to content

Faveo Helpdesk Installation on CentOS 7

Ladybird Web Solution Pvt Ltd edited this page Mar 29, 2018 · 41 revisions

Introduction

This document will list on how to install Faveo Help Desk on a new CentOS server.

We will install following dependencies in order to make Faveo Help Desk work

  • NGINX
  • PHP 7.1
  • PHP Extensions: listed in server requirement
  • MySQL/MariaDB
  • Composer
  • Cron Job

Read the detailed list of server requirement

We are using vi editor throughout to open and edit file, you can use nano editor also

Configure IP Tables

Please note that you have to make changes in the iptables configurations. This allows to open ports that are necessary in Faveo installation.

iptables -A INPUT -p tcp --dport 22 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT

iptables -A OUTPUT -p tcp --sport 22 -m conntrack --ctstate ESTABLISHED -j ACCEPT

iptables -A INPUT -p tcp --dport 80 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT

iptables -A OUTPUT -p tcp --sport 80 -m conntrack --ctstate ESTABLISHED -j ACCEPT

iptables -A INPUT -p tcp --dport 443 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT

iptables -A OUTPUT -p tcp --sport 443 -m conntrack --ctstate ESTABLISHED -j ACCEPT

PS: You have to reset the firewall and iptables to your specifications

Create a user for faveo and update all the repos.

We will create web user in this step

useradd -r www-data && usermod -G www-data www-data

Download EPEL keys

 rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

 rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

Update Yum

yum update -y

Install Common Packages and PHP with Extensions

In this step we install following

  • PHP and Extensions
  • MariaDB
  • Git
  • Curl
  • Openssl

Start Installation

yum -y install php71w-cli.x86_64 php71w-common.x86_64 php71w-fpm.x86_64 php71w-gd.x86_64 php71w-mbstring.x86_64 php71w-mcrypt.x86_64 php71w-mysql.x86_64 php71w-odbc.x86_64 php71w-pdo.x86_64 php71w-xml.x86_64 mod_php71w php71w-opcache                                                                             

systemctl stop nginx && systemctl stop php-fpm

Configure Nginx

Create copy of Nginx default config file

mv /etc/nginx/nginx.conf /etc/nginx/nginx.conf.back

wget -O /etc/nginx/nginx.conf https://www.faveohelpdesk.com/user-manual/code/centos7/nginx-conf.txt

Edit domain

wget -O /etc/nginx/conf.d/faveo-helpdesk.conf https://www.faveohelpdesk.com/user-manual/code/centos7/faveo-helpdesk-conf.txt

Open the file and replace SERVERNAME with you domain name or IP

Remove default config file

rm -rf /etc/nginx/conf.d/default.conf

Create config file for PHP FPM

wget -O /etc/php-fpm.d/faveo_php.conf https://www.faveohelpdesk.com/user-manual/code/centos7/faveo_php-conf.txt

Create a folder for Faveo and clone Faveo Help Desk Community latest release from Github to it

mkdir -p /opt/faveo/log && mkdir -p /opt/faveo/run

git clone https://github.com/ladybirdweb/faveo-helpdesk.git /opt/faveo/faveo-helpdesk`

chown -R www-data:www-data /opt/faveo 

chmod -R 755  /opt/faveo

chmod -R 755  /opt/faveo/faveo-helpdesk

chmod -R 755  /opt/faveo/faveo-helpdesk/storage

rm -rf /opt/faveo/faveo-helpdesk/example.env

Start Mysql and Create Database for faveo

service mysql start

mysql_secure_installation

mysql -u root -p

CREATE DATABASE faveo;

GRANT ALL PRIVILEGES ON faveo.* TO 'faveouser'@'localhost' IDENTIFIED BY 'faveouserpass';

FLUSH PRIVILEGES;`

quit

Start all services

setenforce 0

iptables -F

service php-fpm start

service nginx start

service mysql start

Install Composer by changing the directory to faveo folder

curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

Setup Cron

Path can vary according to your server. This cron is set for every 1 minute fetching.

crontab -e

* * * * * php /opt/faveo/faveo-helpdesk/artisan schedule:run >> /dev/null 2>&1`

Install Faveo

Now you can install Faveo via GUI Wizard or CLI.

You can access Faveo url in the browser

PS: You have to reset the firewall and iptables to your specifications

Installation and Upgrade Guide

Administrator's Guide

Agent's Guide

Email Integration

Release & Upgrade Notes

Known Issues

Contribute & Feedback

Knowledge Base

Third Party Integration

Plugins

API

Clone this wiki locally