We need to install additional php5 dependencies and the git and curl dependencies to retrieve needed files.
1. sudo apt-get install python-software-properties
2. sudo apt-get install php5-gd php5-curl php5-mcrypt git curl
3. sudo apt-get install php5-cli
4. sudo apt-get install mysql-server php5-mysql
5. Troubleshoot: If mysqli is not enabled then run the following command.
sudo apt-get install php5-mysqlnd
6. sudo apt-get install sqlite3 libsqlite3-dev
7. Troubleshoot: if sqlite extension not found error occours then run the following command: sudo apt-get install php5-sqlite
8. Then finally restart the apache server by the following command: sudo service apache2 restart
Composer will pull multiple dependencies from their respective repositories to build the Laravel framework that Invoice Faveo is built from.
1. curl -sS https://getcomposer.org/installer | php
2. sudo mv composer.phar /usr/local/bin/composer
Install Faveo HELPDESK
Pull needed files from Github into the folder faveo: git clone https://github.com/ladybirdweb/faveo-helpdesk
Move the faveo folder to the web server directory. Then change directory to the faveo folder.
1. sudo mv faveo /var/www/
2. cd /var/www/faveo
Use composer to install framework
1. sudo composer install
Update Composer and re-install packages
1. sudo composer update
2. sudo composer install
Configure Apache Web Server
Open the default sites configuration file
1. sudo nano /etc/apache2/sites-available/000-default.conf
Change the DocumentRoot line to the ‘public’ sub-folder of the faveo folder. Then add a directory rewrite for the folder
Enable the rewrite apache mod
1. sudo a2enmod rewrite
2. sudo service apache2 restart
Change ownership of the faveo folder to the web server.
1. sudo chown www-data:www-data -R /var/www/faveo
Create a Database
You need to create a database before starting the installation process. Inorder to do that
To begin, sign into MySQL with the following command:
mysql -u root -p
Enter the administrator password you set up during installation. You will be given a MySQL prompt.
We can now create a database by typing the following command:
CREATE DATABASE new_database;
Query OK, 1 row affected (0.00 sec)
To avoid errors in the event that the database name we’ve chosen already exists, use the following command:
CREATE DATABASE IF NOT EXISTS new_database;
Query OK, 1 row affected, 1 warning (0.01 sec)
The warning indicates that the database already existed and no new database was created.
If we leave the “IF NOT EXISTS” option off, and the database already exists, we will receive the following error:
ERROR 1007 (HY000): Can’t create database ‘other_database’; database exists
How to View Databases in MySQL
To view a list of the current databases that you have created, use the following command:
| Database |
| information_schema |
| mysql |
| new_database |
| other_database |
| performance_schema |
5 rows in set (0.00 sec)
The “information_schema”, “performance_schema”, and “mysql” databases are set up by default in most cases and should be left alone unless you know what you are doing.
How to Change Databases in MySQL
Any operations performed without explicitly specifying a database will be performed on the currently selected database.
Find out which database is currently selected with the following command:
Image: Shows login to database as superuser and creating a new database.
Open a web browser and navigate to the web server
Follow the instructions given in each step.
Running Faveo On Local Server
You have to run the following commands from the terminal to install Lamp and configure it.
1. sudo apt-get install lamp-server^
2. sudo nano /etc/apache2/conf-available/fqdn.conf insert ServerName localhost
3. sudo apt-get install mysql-server mysql-client
Agree to the license agreement and proceed to the next step.
This will take you to Test/Probe Prerequisites Page where the basic environment test is carried out
As it shows four errors which means system is not compactabe to run Faveo as the respective extensions are not enabled.
In order to fix this you need to ensure mysqli extension and mysql extension enabled and discussed in Install Dependencies section .
See the image below:
Once this is done restart the apache server.
If all the depndencies are installed then the application will prompt a success message as shown in image below.
Database Connection: You need to enter the database details that was created.
As filled below
Database connection Status: Success/Failed
This shows a message if the connection to database was success or failure as shown in image.
Create an Admin Account and Local Information:
Once the account is created the installtion process is complete and takes you to the final step.
Faveo Login Page:
Once you hit submit this will take you to the login page
Login with your credentials and it will take you to FAVEO HELPDESK DASHBOARD!
Congratulations! Faveo HELPDESK is installed on ubuntu server.