Ocena wątku:
  • 0 głosów - średnia: 0
  • 1
  • 2
  • 3
  • 4
  • 5

HOW-TO Leantime - narzędzie do zarządzania projektem

Projekt: Leantime




Strona Oficjalnahttps://leantime.io/

Skrypt do zarządzania projektami


Instrukcja instalacji od użytkownika /u/Kualt z Reddit

# Update and install required packages
apt update
apt upgrade
apt install apache2 libapache2-mod-php php7.2-common
apt install mysql-server mysql-common mysql-client
apt install php-mysql
apt install curl

# Install Leantime
cd /var/www
mkdir Leantime
mv Leantime-V2.1.zip Leantime
cd Leantime/
unzip Leantime-V2.1.zip
chown -R www-data. /var/wwwLeantime/

# Set apache to serve Leantime
cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/100-leantime.conf
vim /etc/apache2/sites-available/100-leantime.conf
a2ensite 100-leantime.conf
a2dissite 000-default.conf

# Activate mod rewrite
a2enmod rewrite

# Making a self-signed certificate. I use mkcert as it makes it really easy. By the way, I do not recommend to use self-signed certificates for production environment.
cd ~
mkdir ~/.mkcert && cd ./.mkcert
wget -O mkcert https://github.com/FiloSottile/mkcert/releases/download/v1.4.1/mkcert-v1.4.1-linux-amd64
chmod +x mkcert
sudo apt install libnss3-tools
./mkcert -insta./mkcert localhost

# Moving newly created certificate to the right place. Put it wherever you want it to be and set apache properly.
mkdir -p /usr/local/apache/conf/
mv /root/.mkcert/localhost.pem /usr/local/apache/conf/ssl.crt
mv /root/.mkcert/localhost-key.pem /usr/local/apache/conf/ssl.key
a2enmod ssl

# Restart apache2 to apply everything
service apache2 restart

# Allow ports in firewall
ufw allow 80
ufw allow 443

# Configure mysql. Again, this is not the most secure way to set your permissions. Best would be to set permissions only on leantime database.
mysql -u root -p
CREATE USER 'leantime'@'localhost' IDENTIFIED BY 'xxxxxxxxxxxxxxxxx';
GRANT ALL PRIVILEGES ON * . * TO 'leantime'@'localhost';

# Set LeanTime config file with the database credentials
cd /var/www/Leantime/config/
cp configuration.sample.php configuration.php
vim configuration.php

  public $dbHost="localhost"; //Database host
  public $dbUser="leantime"; //Database username
  public $dbPassword="xxxxxxxxxxxxxxxx"; //Database password
  public $dbDatabase="leantime"; //Database name

Skocz do:

Użytkownicy przeglądający ten wątek: 1 gości