Home / How To / How to install GitScrum on Debian 10

How to install GitScrum on Debian 10



GitScrum is a free and open source software for Laravel task management that helps you manage your projects easily. It uses the Git and Scrum methodology that allows your team to manage their tasks more efficiently. With GitScrum you can easily track the time-consuming task and the sub-tasks you are working on. It lets you create projects and assign users and their permission levels, and chat in real time.

It comes with a rich set of features including, User Stories, Sprint, Flexible Workflow, Time Tracking, Roadmapping, KPI Monitoring, Backlog Management, Collaboration Board, Task Effort, Team Performance, Unlimited Storage, Collaboration and many more. GitScrum is one of the best project management tools apart from other tools like Microsoft Project, Kanban and Trello. It is a perfect solution for all start-ups, sales, marketing, agencies, developers and freelancers.

In this tutorial, we will show you how to install GitScrum project management software on the Debian 1

0 server.

Prerequisites

  • A server running Debian 10.
  • A valid domain name is pointed with your server's IP address. In this tutorial we will use test.linuxbuz.com.
  • A root password is configured on the server.

Getting Started

Before you begin, it is a good idea to update your system with the latest version. You can update your system with the following command:

  apt-get update -y 
apt-get upgrade -y

After updating the system, restart it to implement the changes.

Installing LAMP Server [19659009] First you need to install Apache web server, MariaDB server, PHP and other PHP extensions on your server. You can install all with the following command:

  apt-get install apache2 mariadb server libapache2-mod-php php php-cli php-common php-mail parse php-mysql php-gmp php-curl php-mbstring php -imap php -ldap php-gd php-xml php-cli php-zip php-yaml php-dev php-pear unzip curl git-y 

When all packages are installed, open the php.ini file and adjust some settings:

  nano /etc/php/7.3/apache2/php.inivud19659011achteChang the following values: 

  memory_limit = 256M
upload_max_filesize = 100M
max_execution_time = 300
date.timezone = Asia / Kolkata

Save and close the file when you are done. Then start Apache and MariaDB service and enable them to start after system startup with the following command:

  systemctl start apache2 
systemctl start mariadb
systemctl enable apache2
systemctl enable mariadb

you move on to the next step.

Configuring MariaDB Database

By default, the MariaDB root password is not configured in Debian 10. So you have to set it first.

To do so, log in to the MariaDB shell with the following command:

  mysql 

When logged in, set your MariaDB root password with the following command:

  MariaDB [(none)]> SET PASSWORD FOR & # 39; root & # 39; @ & # 39; localhost & # 39; = PASSWORD ("rootpassword"); 

Then create a database and user for GitScrum with the following command:

  MariaDB [(none)]> CREATE DATABASE gitscrumdb; 
MariaDB [(none)]> CREATE USER & # 39; gitscrumuser & # 39; @ & # 39; localhost & # 39; IDENTIFIED OF & # 39; password & # 39 ;;

You then grant all privileges to the GitScrum database with the following command:

  MariaDB [(none)]> SUPPORT ALL ON gitscrumdb. * ON & # 39; gitscrumuser & # 39; @ & # 39; localhost & # 39; WITH GRANT OPTION; 

Then flush the privileges and exit the MariaDB shell with the following command:

  MariaDB [(none)]> FLUSH PRIVILEGES; 
MariaDB [(none)]> EXIT;

At this point, the MariaDB database is configured for GitScrum. You can now move on to the next step.

Install Composer

Composer is a PHP dependency handler. It is used to install the PHP dependencies required to build your project.

First, download the Composer installation file with the following command:

  php -r "copy (& # 39; https: //getcomposer.org/installer&#39 ;, & # 39; composer-setup.php & # 39;); "

Next, you must verify the data integrity of the downloaded file. You can verify it with the following command:

  HASH = "$ (wget -q -O - https://composer.github.io/installer.sig)" Chapter19459014achtephp-r "if (hash_file (& # 39; SHA384) & # 39;, & # 39; composer-setup.php & # 39;) === & # 39; $ HASH & # 39;) {echo & # 39; install verified & # 39 ;;} else {echo & # 39; Install corrupt & # 39 ;; unlink (& # 39; composer-setup.php & # 39;);} echo PHP_EOL; "

If all is well, you should get the following output:

  Installer verified

Finally, run the following command to install Composer on your system:

  php composer-setup.php --install-dir = / usr / local / bin --filename = composer 

At this point, the composer is installed in your system. You can now proceed to the next step.

Install GitScrum

Next, change the directory to the Apache root directory and download GitScrum with the following command:

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

You should get the following output:

  Generate autoload files
> Enlighten  Foundation  ComposerScripts :: postInstall
> php craftsmen optimize
Generates optimized class loader
The compiled class file has been deleted.
> php craft button: generate
Application key [base64:yWIVSUl6uHXpIcSt5wxsplPwGJjSj9uWKYjy/4q2XY0=] has been set.

Then change the directory to the downloaded directory and update GitScrum with the following command:

  cd laravel-gitscrum 
composer update
composer run-script post-root-package-install

Then you must integrate GitScrum with Github. To do so, create a new app in Github with the following link:

https://github.com/settings/applications/new

You should see the following screen:

 Git scrum registration

Enter your GitHub username, password and click on Sign in the button. You should see the following screen:

 OAuth registration

Enter your application name, website URL and click the Register application button. The following screen appears:

 GitScrum App

After registering the new app, copy the client ID and client secret from the above page. Then open the .env file shown below:

  nano /var/www/html/laravel-gitscrum/.envebrit19659011??Add the following lines with your database name, username, password, client ID and client secret: 

  APP_ENV = local
APP_KEY = base64: W2ToyfW8zHqtWfcZb1hp2kZgccbuy3XtERDyZywtVkE =
APP_DEBUG = true
APP_LOG_LEVEL = debug
APP_URL = http: //test.linuxbuz.com
APP_TITLE = GitScrum

GITHUB_CLIENT_ID = 39f148ce467544b487cb
GITHUB_CLIENT_SECRET = 370f0cfc50c8fca9179fae3f74b229b6b69b05f6

GITLAB_KEY =
GITLAB_SECRET =
GITLAB_INSTANCE_URI = https: //gitlab.com/

DB_CONNECTION = mysql
DB_HOST = localhost
DB_PORT = 3306
DB_DATABASE = gitscrumdb
DB_USERNAME = gitscrumuser
DB_PASSWORD = password

APP_PAGINATE = 10

PROXY_PORT =
PROXY_METHOD =
PROXY_SERVER =
PROXY_USER =
PROXY_PASS =

Save and close the file when you are done. Then run the following command to migrate the database:

  php artisan migrate 
php artisan db: seed

You should see the following output:

  Seeded: ConfigIssueEffortsTableSeeder
Seeded: ConfigPrioritiesTableSeeder
Seeded: IssueTypesTableSeeder
Seeded: ConfigStatusesTableSeeder

Then grant the correct permissions to the GitScrum directory with the following command:

  chown -R www-data: www-data / var / www / html / laravel-gitscrum / 
chmod -R 775 / var / www / html / laravel-gitscrum /

When you're done, you can move on to the next step.

Configuring Apache for GitScrum

Next, you must configure the GitScrum virtual Apache host. You can configure it by creating the following file:

  nano /etc/apache2/sites-available/gitscrum.confebrit19659011??Add the following lines: 

  
ServerAdmin [email protected]
DocumentRoot / var / www / html / laravel-gitscrum / public
Server name test.linuxbuz.com


Alternative FollowSymlinks
AllowOrrride All
Require everyone granted


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

Save and close the file when you are done. Then check the Apache configuration file for syntax errors with the following command:

  apache2ctl configtest 

If all is well, you should get the following output:

  Syntax OK

Then enable the virtual host and Apache rewrite module with the following command:

  a2ensite gitscrum.conf 
a2enmod rewrite

Restart the Apache web service to implement the changes:

  systemctl restart ap1011 You can now check the status of the Apache service with the following command: 

  systemctl status apache2 

You should get the following output:

? apache2.service - Apache HTTP server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor setting: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
?? apache2-systemd.conf
Active: active (running) since Sun 2020-02-02 12:41:30 UTC; 22 minutes ago
Process: 15407 ExecReload = / usr / sbin / apachectl graceful (code = terminated, status = 0 / SUCCESS)
Main PID: 14417 (apache2)
Details: 11 (limit: 1114)
CGroup: /system.slice/apache2.service
?? 14417 / usr / sbin / apache2-k start
?? 15412 / usr / sbin / apache2-k start
?? 15413 / usr / sbin / apache2-k start
?? 15414 / usr / sbin / apache2-k start
?? 15416 / usr / sbin / apache2-k start
?? 15417 / usr / sbin / apache2-k start
?? 15418 / usr / sbin / apache2-k start
?? 15419 / usr / sbin / apache2-k start
?? 15420 / usr / sbin / apache2-k start
?? 15422 / usr / sbin / apache2-k start
?? 15429 / usr / sbin / apache2-k start

02 Feb 12:41:29 debian10 systemd [1]: Launch Apache HTTP server ...

When you're done, you can move on to the next step.

Access GitScrum

Now open your browser and type the URL http://test.linuxbuz.com . You will be redirected to the following page:

 Access GitScrum

Click Login with GitHub . You should see the following page:

 Authorize GitScrum

Now, approve your GitScrum account. You should see your GitScrum dashboard on the following page:

 GitScrum dashboard

Conclusion

Congratulations! you have GitScrum installed on the Debian 10 server. You can now easily manage your project with GitScrum. Feel free to ask me if you have any questions.


Source link