Skip to content

Faveo Helpdesk Community Installation on CentOS 7 with Apache on PHP 5.6

Bhanu edited this page Aug 20, 2018 · 5 revisions

This article is depreciated & not in use anymore

Introduction

This document will list steps on how to install Faveo Helpdesk Community version v1.9.6 on a new CentOS7.

We will install following dependencies in order to make Faveo Helpdesk work

  • Apache
  • PHP 5.6
  • 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.

This is an optional step, If you are able to access your server remotely on Public IP. This step will not be required.Mainly on local network server this step is required. If you are purchasing/renting server in a data centre this step might not be required.

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
  • This step might vary for different data centres or cloud service providers, Please check with your hosting company on opening port number and correct settings

Download EPEL Keys

yum -y install epel-release
yum  update -y
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
yum install -y yum-utils

Update Yum

yum update

In this step we install following

  • PHP5.6 and Extensions
  • MariaDB
  • Git
  • Curl
  • Openssl

Start Installation

yum install -y git curl openssl httpd 
yum install -y php56w php56w-mbstring php56w-memcache php56w-redis  php56w-mysql php56w-pdo php56w-imap php56w-zip php56w-bcmath php56w-mcrypt php56w-fpm php56w-curl php56w-cli php56w-json php56w-common  php56w-opcache

Install Mysql and Create Database for faveo

yum install -y mariadb-server mariadb
systemctl enable mariadb
systemctl start mariadb
mysql_secure_installation
mysql -u root -p

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

Install Composer by changing the directory to faveo folder

curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/bin/composer
chmod +x /usr/bin/composer

Copy Faveo Help Desk from Github

Faveo files can be manually uploaded to server or copied from Github, if you have access to Github account then use this step, else follow the next step Create a folder for Faveo and upload Faveo Helpdesk Community

mkdir -p  /var/www/faveo/faveo-helpdesk

git clone https://github.com/ladybirdweb/faveo-helpdesk.git /var/www/faveo/faveo-helpdesk

OR Copy Faveo Help Desk via SSH

Incase you want to upload the Faveo files from your local system to your server and not use Github, then follow this step Download the Faveo zip file from our billing site https://www.faveohelpdesk.com Use a File transferring client like Filezilla,WinSCP to upload the files to our server directory. Open Filezilla and enter the root Credentials of the server and login.

Create a folder for faveo inside that in the path /var/www/faveo/faveo-helpdesk

Make sure that you have extracted all the files under that folder /var/www/faveo/faveo-helpdesk

Now continue the process by logging in back to ssh terminal

To upload files via SSH

Login to the File directory

scp faveo.zip username@destination:/var/www/faveo/faveo-helpdesk

Once the transfer is completed unzip the faveo.zip file and rename it to faveo-helpdesk. For unzip tool installation and unzipping you can use the below command

yum install -y unzip

then

unzip faveo.zip

Give correct file permission to Faveo files

chown -R apache:apache /var/www/
chown -R apache:apache /var/www/faveo/
chown -R apache:apache /var/www/faveo/faveo-helpdesk/
chmod -R 755 /var/www/
chmod -R 755 /var/www/faveo/
chmod -R 755 /var/www/faveo/faveo-helpdesk/
chmod -R 755 /var/www/faveo/faveo-helpdesk/storage/
chmod -R 755 /var/www/faveo/faveo-helpdesk/bootstrap/
systemctl start httpd
systemctl enable httpd

Create a Virtual Host Configuration

vi /etc/httpd/conf.d/faveo-helpdesk.conf

Copy the contents below to above file

<VirtualHost *:80>
ServerName localhost
ServerAdmin webmaster@localhost
DocumentRoot /var/www/faveo/faveo-helpdesk/public
<Directory /var/www/faveo/faveo-helpdesk>
AllowOverride All
</Directory>
ErrorLog /var/log/httpd/faveo-error.log
</VirtualHost>

Restart Apache service

systemctl restart httpd.service

Setup Cron

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

crontab -u apache -e

* * * * * /usr/bin/php /var/www/faveo/faveo-helpdesk/artisan schedule:run >> /dev/null 2>&1

Restart services

service mariadb restart

systemctl restart httpd

Start Installation

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
  • You need to follow steps yourself to harden the security of your server, server security is not covered in this article
  • Redis is recommended for messaging que and improving system performance
  • Always use SSL/HTTPS URL for Faveo

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