使用者工具

網站工具


tech:leantime

這是本文件的舊版!


CentOS7 安裝 Leantime 專案管理系統

  • 安裝環境 :
    • PVE 6.0.12 底下的 CT
    • CentOS Linux release 7.7.1908 (Core)

安裝相關系統環境

  • EPEL 與其他工具套件
    yum install -y epel-release yum-utils wget unzip
  • PHP 7.2 and up
    rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
    yum-config-manager --disable remi-php54
    yum-config-manager --enable remi-php73
    yum install -y php php-mysqlnd php-mbstring
  • Apache with mod_rewrite
    yum install -y httpd mod_ssl
  • MySQL 5.6 → MariaDB 10.3
    /etc/yum.repos.d/MariaDB.repo
    # MariaDB 10.3 CentOS repository list - created 2019-01-25 13:04 UTC
    # http://downloads.mariadb.org/mariadb/repositories/
    [mariadb]
    name = MariaDB
    baseurl = http://yum.mariadb.org/10.3/centos7-amd64
    gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
    gpgcheck=1
    yum install -y MariaDB-server 
  • 基本參數環境設定
  • 系統初始化設定
    systemctl start httpd
    systemctl enable httpd
    systemctl start mariadb
    systemctl enable mariadb 
    mysql_secure_installation
    mysql -u root -p

安裝與設定 Leantime

  • Download latest release package
  • Upload entire directory to your server
  • Point your domain to the public/ directory
  • Rename config/configuration.sample.php to config/configuration.php
    • su - root
      cd /var/www/
      wget https://leantime.io/download/?wpdmdl=6881 -O leantime.zip
      unzip leantime.zip
      rmdir html
      mv public html
      cp config/configuration.sample.php config/configuration.php
  • Create an empty MySQL database
    mysql -u root -p
    create database leadtime;
    create user 'leadtime'@'localhost' identified by '**Password**';
    grant all on leadtime.* to 'leadtime'@'localhost';
    flush privileges;
    quit

    [[email protected] www]# mysql -u root -p
    Enter password: 
    Welcome to the MariaDB monitor.  Commands end with ; or \g.
    Your MariaDB connection id is 18
    Server version: 10.3.20-MariaDB MariaDB Server
    
    Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
    
    Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
    
    MariaDB [(none)]> create database leadtime;
    Query OK, 1 row affected (0.000 sec)
    
    MariaDB [(none)]> create user 'leadtime'@'localhost' identified by '**Password**';
    Query OK, 0 rows affected (0.000 sec)
    
    MariaDB [(none)]> grant all on leadtime.* to 'leadtime'@'localhost';
    Query OK, 0 rows affected (0.000 sec)
    
    MariaDB [(none)]> flush privileges;
    Query OK, 0 rows affected (0.000 sec)
    
    MariaDB [(none)]> quit
    Bye
    [[email protected] www]# 
    

  • Fill in your database credentials (username, password, host, dbname) in config/configuration.php
    • /var/www/config/configuration.php
      :
          /* Database */
          public $dbHost="localhost"; //Database host
              public $dbUser="leadtime"; //Database username
              public $dbPassword="**Password**"; //Database password
              public $dbDatabase="leadtime"; //Database name
       
              /* Fileupload */
      :
  • Navigate to <yourdomain.com>/install
  • Follow instructions to install database and set up first user account

參考網址

tech/leantime.1574513016.txt.gz · 上一次變更: 2019/11/23 20:43 由 jonathan_tsai