How to install Fly-spray on Linux mint 18.03

To install FlySpray on Linuxmint 18.03
Flyspray is an uncomplicated, web-based bug tracking system written in PHP for assisting with software development. Flyspray is free software, released under the GNU GPL license. In this tutorial, we will see the installation of Flyspray on Linux mint 18.3


features
• Web-based, platform-independent
• Multiple database support
• Easy installation
• Easy to use
• Multiple projects
• File attachments


Prerequisites
Install LAMP (Apache, MariaDB, php7)
In MariaDB (create database and user and give privileges to that user)

Php installation with required following modules

add-apt-repository ppa:ondrej/php 
apt-get update 
apt-get install php7.0 php7.0-mysql php7.0-curl php7.0-json php7.0-cgi libapache2-mod-php7.0 php7.0-mcrypt php7.0-xmlrpc php7.0-gd php7.0-mbstring php7.0 php7.0-common
php7.0-xmlrpc php7.0-soap  php7.0-xml php7.0-intl  php7.0-cli  php7.0-ldap php7.0-zip php7.0-readline php7.0-imap php7.0-tidy php7.0-recode php7.0-sq php7.0-intl

Installation

Download a flyspray package on terminal using the wget command.

linuxhelp ~ # wget https://github.com/Flyspray/flyspray/archive/v1.0-rc6.zip
--2018-07-09 14:12:29--  https://github.com/Flyspray/flyspray/archive/v1.0-rc6.zip
Resolving github.com (github.com)... 192.30.253.112, 192.30.253.113
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/Flyspray/flyspray/zip/v1.0-rc6 [following]
--2018-07-09 14:12:31--  https://codeload.github.com/Flyspray/flyspray/zip/v1.0-rc6
Resolving codeload.github.com (codeload.github.com)... 192.30.253.121, 192.30.253.120
Connecting to codeload.github.com (codeload.github.com)|192.30.253.121|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3493385 (3.3M) [application/zip]
Saving to: ‘;v1.0-rc6.zip’;

v1.0-rc6.zip               100%[=====================================>]   3.33M   138KB/s    in 23s     

2018-07-09 14:12:56 (146 KB/s) - ‘;v1.0-rc6.zip’; saved [3493385/3493385]

After Downloading extract the downloaded package

linuxhelp ~ # unzip v1.0-rc6.zip 
Archive:  v1.0-rc6.zip
7800ed1c37f06a1395ebb2937d7f45fbf13e5167
   creating: flyspray-1.0-rc6/
  inflating: flyspray-1.0-rc6/.gitignore  
  inflating: flyspray-1.0-rc6/.travis.yml  
  inflating: flyspray-1.0-rc6/README.md  
   creating: flyspray-1.0-rc6/Tests/
  inflating: flyspray-1.0-rc6/Tests/CreateTestData.php  
  inflating: flyspray-1.0-rc6/Tests/bootstrap.php  
.
.
.
  inflating: flyspray-1.0-rc6/themes/CleanFS/templates/shortcuts.tpl  
  inflating: flyspray-1.0-rc6/themes/CleanFS/templates/toplevel.tpl  
  inflating: flyspray-1.0-rc6/themes/CleanFS/theme.css  
  inflating: flyspray-1.0-rc6/themes/CleanFS/theme_print.css  
  inflating: flyspray-1.0-rc6/themes/CleanFS/typography.css  
 extracting: flyspray-1.0-rc6/themes/CleanFS/up.png  
   creating: flyspray-1.0-rc6/vendor/
  inflating: flyspray-1.0-rc6/vendor/.htaccess

Change ownership and permission of the as Flyspray follows

linuxhelp ~ # ls
@  flyspray-1.0-rc6  v1.0-rc6.zip
linuxhelp ~ # chown -R www-data:www-data flyspray-1.0-rc6/
linuxhelp ~ # chmod -R 775 flyspray-1.0-rc6/

Navigate to the apache document root directory

linuxhelp ~ # mv flyspray-1.0-rc6/ /var/www/html/

Create a new virtual host configuration for accessing the flyspray.

linuxhelp ~ # cd /etc/apache2/sites-available/
linuxhelp sites-available # vim fly.conf
<VirtualHost *:80>
ServerName www.linuxhelp1.com
DocumentRoot /var/www/ html/flyspray-1.0-rc6 /
<Directory /var/www/html/ flyspray-1.0-rc6 />
AllowOverride All
Allow from all
</Directory>
</virtualHost>

Enable the site access

linuxhelp sites-available # a2ensite fly.conf 
Enabling site fly.
To activate the new configuration, you need to run:
  service apache2 reload

Entry to the host file.

linuxhelp sites-available # vim /etc/hosts
<Give your ip >  <Give your domain name>

Now install the composer.

linuxhelp flyspray-1.0-rc6 # composer install
Loading composer repositories with package information
Updating dependencies (including require-dev)            
  - Installing ezyang/htmlpurifier (v4.8.0)
    Downloading: 100%         

  - Installing dapphp/securimage (3.6.5)
    Downloading: 100%         

  - Installing swiftmailer/swiftmailer (v5.4.9)
    Downloading: 100%         

  - Installing adodb/adodb-php (v5.20.12)
    Downloading: 100%         
.
.
.
> rm -rf vendor/dapphp/securimage/captcha.html vendor/dapphp/securimage/example_form.php vendor/dapphp/securimage/example_form.ajax.php vendor/dapphp/securimage/securimage_play.swf vendor/dapphp/securimage/examples/
> rm -rf vendor/dapphp/securimage/audio/*
> rm -rf vendor/dapphp/securimage/backgrounds/*
> echo '<?php return array("session_name"=>"flyspray"); ?>' > vendor/dapphp/securimage/config.inc.ph

Restart the apache service.

linuxhelp flyspray-1.0-rc6 # systemctl restart apache2.service

Now you can proceed the further installation and configuration from the browser by navigating to the following URL: http://<ipaddress or domain name


Verify the prerequisites for installing flyspray as shown below


Configure the Database setup as follow


Configure the Admin user setup


The installation is completed. Now, click view site.


Now, click ‘;remove the folder / setup’;.


Now, you can use flyspray application.

Login page of flyspray.

After the Successful login, you will see the Admin dashboard of flySpray as shown below

With this, the method to install FlySpray on linuxmint-18.03 comes to an end

Tag : Linux Mint
FAQ
Q
what are all the system requirements needed for linuxmint?
A
SYSTEM REQUIREMENTS are,
Flyspray has very few external dependencies and this makes it easier to install and maintain than something like Bugzilla. The following stuff are required to get Flyspray up and running:

Computer to act as a server. Our SSD VPS hosting plans are perfect for this.
Web Server like Apache, Nginx etc.. Apache is recommended
PHP web scripting language 5.2 or later
PHP-GD library
PHP-XML library
OpenSSL library
MySQL or PostgreSQL database server
Q
how to install composer on linuxmint?
A
use the below command to install the composer
# composer install
Q
where to get the package of fly spray in linuxmint?
A
Download a flyspray package on terminal using the wget command.
# wget https://github.com/Flyspray/flyspray/archive/v1.0-rc6.zip
Q
what are all the features of fly spray in linuxmint?
A
the features of fly spray are,
• Web-based, platform-independent
• Multiple database support
• Easy installation
• Easy to use
• Multiple projects
• File attachments
Q
what is the use of installing fly-spray in linuxmint?
A
Flyspray is an uncomplicated, web-based bug tracking system written in PHP for assisting with software development. Flyspray is free software, released under the GNU GPL license.