kanboard 地址 https://github.com/kanboard/kanboard
安装 apache
sudo apt install apache2 -y
重启apache
sudo /etc/init.d/apache2 restart
安装MariaDB
sudo apt install -y mariadb-server mariadb-client
启动数据库
sudo /etc/init.d/mysql start
sudo mysql_secure_installation
安装php7.2
sudo apt install -y php7.2 php7.2-mysql php7.2-gd php7.2-mbstring php7.2-common php7.2-opcache php7.2-cli php7.2-xml
安装kanboard
cd /var/www/
sudo git clone https://github.com/kanboard/kanboard.git
sudo chown -R www-data:www-data kanboard/data
为Kanboard设置一个MySQL数据库和一个数据库用户。
mysql -u root -p -e"CREATE DATABASE kanboard;"
mysql -u root -p kanboard < /var/www/kanboard/app/Schema/Sql/mysql.sql
mysql -u root -p -e"CREATE USER 'admin'@'localhost' IDENTIFIED BY 'admin';"
mysql -u root -p -e"GRANT ALL PRIVILEGES ON kanboard.* TO 'admin'@'localhost' IDENTIFIED BY 'admin' WITH GRANT OPTION;"
mysql -u root -p -e"FLUSH PRIVILEGES;"
当前系统环境
cat /proc/version
Linux version 4.9.0-040900rc6-generic (kernel@tangerine) (gcc version 6.2.0 20161005 (Ubuntu 6.2.0-5ubuntu12) ) #201611201731 SMP Sun Nov 20 22:33:21 UTC 2016
更新Kanboard配置文件以切换到MySQL 。
cd /var/www/kanboard
sudo cp config.default.php config.php
修改config.php配置
sudo vi config.php
// Database driver: sqlite, mysql or postgres (sqlite by default)
define('DB_DRIVER', 'sqlite'); //改 define('DB_DRIVER', 'mysql');
// Mysql/Postgres username
define('DB_USERNAME', 'root'); //admin
// Mysql/Postgres password
define('DB_PASSWORD', '');//admin
// Mysql/Postgres hostname
define('DB_HOSTNAME', 'localhost');
// Mysql/Postgres database name
define('DB_NAME', 'kanboard');
重启apache sudo /etc/init.d/apache2 restart