How to Install GitScrum on Ubuntu 18.04 | 16.04 with Apache2

This brief tutorial shows students and new users how to install GitScrum on Ubuntu 18.04 | 16.04 with Apache2 HTTP server.

GitScrum is a project management tool that will help you manage your complex projects with ease. When your business deals with large data with diverse teams, a robust project management tool with cool features should help you keep your work going while keeping your teams operation mode.

With GitScrum, businesses can triage and distribute work across teams in different departments based on email, calls, orders, projects, tasks, reminders, calendar events, and more.

Whether you’re a small or large enterprise, GitScrum can help your team communicate and collaborate. and these conversations will be available on the desktop, mobile devices and everywhere you have GitScrum installed.

This Tool designed for ease of use to allow businesses to collaborate and automate engaging experiences with users across multiple devices, including mobile.

For more about GitScrum, please check their Homepage

To get started with installing GitScrum, follow the steps below:

Step 1: Install Apache2 HTTP Server

GitScrum works a web server and Apache2 HTTP server is the most popular open source web server available today. To install and use Apache2 with GitScrum, run the commands below:

sudo apt update
sudo apt install apache2

After installing Apache2, the commands below can be used to stop, start and enable Apache2 service to always start up with the server boots.

sudo systemctl stop apache2.service
sudo systemctl start apache2.service
sudo systemctl enable apache2.service

To test whether Apache2 is installed and working, simply open your browser and browse to the hostname or IP address of the server.

Apache2 Test Page

After browsing the the server hostname and you see a page above similar as above, then Apache2 is working as expected.

Step 2: Install MariaDB Database Server

GitScrum also requires a database server to store its content. If you’re looking for a truly open source database server, then MariaDB is a great place to start.

To install MariaDB run the commands below:

sudo apt-get install mariadb-server mariadb-client

After installing MariaDB, the commands below can be used to stop, start and enable MariaDB service to always start up when the server boots.

Run these on Ubuntu 16.04 LTS

sudo systemctl stop mysql.service
sudo systemctl start mysql.service
sudo systemctl enable mysql.service

Run these on Ubuntu 18.04 LTS

sudo systemctl stop mariadb.service
sudo systemctl start mariadb.service
sudo systemctl enable mariadb.service

To secure MariaDB database server, run the command below. This will allow you to set a root password, remove anonymous user, disable remote root login and more.

sudo mysql_secure_installation

When prompted, answer the questions below by following the guide.

  • Enter current password for root (enter for none): Just press the Enter
  • Set root password? [Y/n]: Y
  • New password: Enter password
  • Re-enter new password: Repeat password
  • Remove anonymous users? [Y/n]: Y
  • Disallow root login remotely? [Y/n]: Y
  • Remove test database and access to it? [Y/n]:  Y
  • Reload privilege tables now? [Y/n]:  Y

Now that MariaDB is installed, to test whether the database server was successfully installed, run the commands below.

sudo mysql -u root -p

type the root password when prompted.

mariadb welcome

If you see a similar screen as shown above, then the server was successfully installed.

Step 3: Install PHP 7.2 and Related Modules

GitScrum is a PHP based app and PHP is required. However, PHP 7.2 may not be available in Ubuntu default repositories. To run PHP 7.2 on Ubuntu 16.04 and previous, you may need to run the commands below:

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php

Then update and upgrade to PHP 7.2

sudo apt update

Next, run the commands below to install PHP 7.2 and related modules.

sudo apt install php7.2 libapache2-mod-php7.2 php7.2-common php7.2-mailparse php7.2-mysql php7.2-gmp php7.2-curl php7.2-mbstring php7.2-imap php7.2-ldap php7.2-gd php7.2-xml php7.2-cli php7.2-zip php7.2-yaml php7.2-dev php-pear

After installing PHP 7.2, run the commands below to open PHP default configuration file for Apache2.

sudo nano /etc/php/7.2/apache2/php.ini

The lines below is a good settings for most PHP based CMS. Update the configuration file with these and save.

file_uploads = On
allow_url_fopen = On
short_open_tag = On
memory_limit = 256M
upload_max_filesize = 100M
max_execution_time = 360
date.timezone = America/Chicago

Everytime you make changes to PHP configuration file, you should also restart Apache2 web server. To do so, run the commands below:

sudo systemctl restart apache2.service

Now that PHP is installed, to test whether it’s functioning, create a test file called phpinfo.php in Apache2 default root directory. ( /var/www/html/)

sudo nano /var/www/html/phpinfo.php

Then type the content below and save the file.

<?php phpinfo( ); ?>

Next, open your browser and browse to the server’s hostname or IP address followed by phpinfo.php

/phpinfo.php

You should see PHP default test page.

PHP Test Page

Step 4: Create GitScrum Database

Now that you’ve installed all the packages that are required for GitScrum to function, continue below to start configuring the servers. First run the commands below to create a blank GitScrum database.

To logon to MariaDB database server, run the commands below.

sudo mysql -u root -p

Then create a database called gitscrum

CREATE DATABASE gitscrum;

Create a database user called gitscrumuser with a new password

CREATE USER 'gitscrumuser'@'localhost' IDENTIFIED BY 'new_password_here';

Then grant the user full access to the database.

GRANT ALL ON gitscrum.* TO 'gitscrumuser'@'localhost' WITH GRANT OPTION;

Finally, save your changes and exit.

FLUSH PRIVILEGES;
EXIT;

Step 5: Download GitScrum Latest Release

To get GitScrum latest release you may want to use Composer. Composer allows you to download and manage packages and their dependencies easily.

To install Composer on Ubuntu, run the commands below:

sudo apt install curl git
curl -sS  | sudo php -- --install-dir=/usr/local/bin --filename=composer

After installing Composer above, change Apache2 home directory and download GitScrum packages into a new project folder called gitscrum.

cd /var/www/
sudo composer create-project gitscrum-community-edition/laravel-gitscrum --stability=stable --keep-vcs

After running the commands above, you should see similar lines as below:

Output:
> Illuminate\Foundation\ComposerScripts::postInstall
> php artisan optimize
Generating optimized class loader
The compiled class file has been removed.
> php artisan key:generate
Application key [base64:wQdCK1zYGHJM6l8nGqd9smgumbTCBQxRfFjCA2GUDlM=] set successfully.

Next, change into the new folder and update GitScrum packages with the following commands.

cd /var/www/laravel-gitscrum
sudo composer update
sudo composer run-script post-root-package-install

To integrate GitScrum with Github, you’ll have to sign into Github and create an app.

To do that, click the link below to create a new app in Github.

GitScrum Ubuntu Install

After registering the new app, it should give you a Click ID and Secret. Copy these two details and open GitScrum .env file in its home directory.

sudo nano /var/www/laravel-gitscrum/laravel-gitscrum/.env

Add the highlighted details and save.

APP_ENV=local
APP_KEY=base64:W2ToyfW8zHqtWfcerter2kZgccbuy3XrtirwERDyZywtVkE=
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=
APP_TITLE=GitScrum
APP_LANG=en

GITHUB_CLIENT_ID=13243c49494875180763529d
GITHUB_CLIENT_SECRET=4984b059b453eaef8938374493490f313f6b79219

GITLAB_KEY=
GITLAB_SECRET=
GITLAB_INSTANCE_URI=

BITBUCKET_CLIENT_ID=
BITBUCKET_CLIENT_SECRET=

DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=gitscrum
DB_USERNAME=gitscrumuser
DB_PASSWORD=database_password_here

APP_PAGINATE=10

PROXY_PORT=
PROXY_METHOD=
PROXY_SERVER=
PROXY_USER=
PROXY_PASS=

SLACK_CHANNEL=channel-name
SLACK_BOT_NAME=bot-name
SLACK_WEBHOOK=endpoint

Exit and save

After that, run the commands below;

sudo php artisan migrate
sudo php artisan db:seed --class=SettingSeeder

Since you just ran the web server as root, you should make sure any newly created files are owned by the www-data user and group. To do that run the commands below:

sudo chown -R www-data:www-data /var/www/laravel-gitscrum/
sudo chmod -R 755 /var/www/laravel-gitscrum/

Step 6: Configure Apache2 Virtual Host

Finally, configure Apahce2 virtual host configuration file for GitScrum. This file will control how users access GitScrum content. Run the commands below to create a new configuration file called gitscrum.conf

sudo nano /etc/apache2/sites-available/gitscrum.conf

Then copy and paste the content below into the file and save it. Replace the highlighted line with your own domain name and directory root location.

<VirtualHost *:80>
     ServerAdmin [email protected]
     DocumentRoot /var/www/laravel-gitscrum/public
     ServerName gitscrum.example.com
     ServerAlias www.gitscrum.example.com

     <Directory /var/www/laravel-gitscrum/public>
          Options FollowSymlinks
          AllowOverride All
          Require all granted
     </Directory>

     ErrorLog ${APACHE_LOG_DIR}/error.log
     CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

Save the file and exit.

Step 7: Enable the GitScrum

After configuring the VirtualHost above, enable it by running the commands below

sudo a2ensite gitscrum.conf
sudo systemctl restart apache2.service

Next open your browser and browse to the server domain name or server IP address of the host. Setup wizard.

Login with your Github account and begin setting up your environment.

/

Conclusion:

This post shows you how to install GitScrum on Ubuntu 18.04 | 16.04. If you find any error above, please use the comment form below to report it.

You may also like the post below: