GNU/Linux >> Linux の 問題 >  >> Debian

TaskBoardをApacheとともにインストールし、Debian11でSSLを暗号化できるようにします

TaskBoardは、実行する必要のあることを追跡するために使用される無料のオープンソースかんばんアプリケーションです。これは、すべてのタスクを追跡するのに役立つPHPベースのセルフホストアプリケーションです。すべてのタスクを管理するためのシンプルでユーザーフレンドリーなWebインターフェイスを提供します。チームや組織が作業とその完了に向けた道筋を表すために使用します。

機能

  • 無料でオープンソース
  • 無制限のボード
  • シンプルでインストールが簡単
  • 簡単なカスタマイズ
  • RESTful API
  • 基本的なユーザー管理

このチュートリアルでは、Debian11にTaskboardをインストールする方法を紹介します。

前提条件
  • Debian11を実行しているサーバー。
  • サーバーIPで指定された有効なドメイン名。
  • ルートパスワードはサーバーで構成されています。
はじめに

開始する前に、システムパッケージを更新されたバージョンに更新することをお勧めします。次のコマンドを実行して、それらすべてを更新できます。

apt-get update -y

すべてのパッケージが更新されたら、次のステップに進むことができます。

Apache、PHP、およびSqliteをインストールします

まず、Apache Webサーバー、PHP、SQLite、およびその他の必要な依存関係をサーバーにインストールする必要があります。次のコマンドを実行して、それらすべてをインストールできます。

apt-get install apache2 sqlite3 php libapache2-mod-php php-cli php-common php-json php-readline php-sqlite3 libaio1 libapr1 libhtml-template-perl libaprutil1-dbd-sqlite3 libaprutil1-ldap libaprutil1 libdbi-perl libterm-readkey-perl curl libwrap0 unzip wget -y

すべてのパッケージがインストールされたら、Apacheサービスを開始し、システムの再起動時に開始できるようにします。

systemctl start apache2
systemctl enable apache2

終了したら、次のステップに進むことができます。

タスクボードをダウンロード

まず、次のコマンドを使用して、最新バージョンのTaskboardをダウンロードします。

curl -s https://api.github.com/repos/kiswa/TaskBoard/releases/latest |grep browser_download_url | cut -d '"' -f 4 | wget -i -

ダウンロードが完了したら、次のコマンドを使用して、ダウンロードしたファイルをApacheWebルートディレクトリに抽出します。

unzip TaskBoard_v*.zip -d /var/www/html/taskboard

次に、タスクボードディレクトリに適切な所有権と権限を設定します。

chown -R www-data:www-data /var/www/html/taskboard
chmod -R 775 /var/www/html/taskboard

終了したら、次のステップに進むことができます。

タスクボード用にApacheを構成する

次に、Taskboard用のApache仮想ホスト構成ファイルを作成する必要があります。次のコマンドを実行して作成できます:

nano /etc/apache2/sites-available/taskboard.conf

次の行を追加します:

<VirtualHost *:80>
    ServerAdmin [email protected]
    DocumentRoot "/var/www/html/taskboard"
    ServerName taskboard.example.com
    <Directory "/var/www/html/taskboard">
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>
    ErrorLog "/var/log/apache2/taskboard-error_log"
    CustomLog "/var/log/apache2/taskboard-access_log" combined
</VirtualHost>

終了したらファイルを保存して閉じ、次のコマンドでApache仮想ホストを有効にします。

a2ensite taskboard.conf

次に、Apacheリライトモジュールを有効にし、次のコマンドを使用してApacheWebサービスを再起動します。

a2enmod rewrite
systemctl restart apache2

次のコマンドを使用して、Apacheサービスのステータスを確認できるようになりました。

systemctl status apache2

次の出力が得られます:

? apache2.service - The Apache HTTP Server
     Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
     Active: active (running) since Sat 2021-11-06 14:46:54 UTC; 5s ago
       Docs: https://httpd.apache.org/docs/2.4/
    Process: 23704 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
   Main PID: 23709 (apache2)
      Tasks: 6 (limit: 4679)
     Memory: 15.3M
        CPU: 110ms
     CGroup: /system.slice/apache2.service
             ??23709 /usr/sbin/apache2 -k start
             ??23710 /usr/sbin/apache2 -k start
             ??23711 /usr/sbin/apache2 -k start
             ??23712 /usr/sbin/apache2 -k start
             ??23713 /usr/sbin/apache2 -k start
             ??23714 /usr/sbin/apache2 -k start

Nov 06 14:46:54 debian11 systemd[1]: Starting The Apache HTTP Server...

終了したら、次のステップに進むことができます。

アクセスタスクボード

この時点で、Taskboardがインストールおよび構成されています。次に、Webブラウザーを開き、URL http://taskboard.example.comを使用してタスクボードにアクセスします。 。タスクボードのログインページにリダイレクトされます:

デフォルトの管理者ユーザー名とパスワードadmin/adminを入力し、サインインをクリックします ボタン。次のページにタスクボードダッシュボードが表示されます。

次に、設定をクリックします ボタンをクリックして、タスクボードのデフォルトの管理者パスワードを変更します。次のページが表示されます:

新しい管理者パスワードを入力し、変更をクリックします パスワード ボタンをクリックして変更を適用します。

SSLを暗号化して安全なタスクボード

Let's Encrypt SSLを使用してタスクボードを保護する場合は、Certbotクライアントパッケージをインストールし、タスクボードのLet'sEncryptSSLを管理する必要があります。

次のコマンドを実行してインストールできます:

apt-get install python3-certbot-apache -y

Certbotパッケージがインストールされたら、次のコマンドを実行して、タスクボードWebサイト用のLet'sEncryptSSLをダウンロードしてインストールします。

certbot --apache -d taskboard.example.com

以下に示すように、メールアドレスを提供し、利用規約に同意するよう求められます。

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator standalone, Installer None
Enter email address (used for urgent renewal and security notices) (Enter 'c' to
cancel): [email protected]

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Please read the Terms of Service at
https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf. You must
agree in order to register with the ACME server at
https://acme-v02.api.letsencrypt.org/directory
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(A)gree/(C)ancel: A

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Would you be willing to share your email address with the Electronic Frontier
Foundation, a founding partner of the Let's Encrypt project and the non-profit
organization that develops Certbot? We'd like to send you email about our work
encrypting the web, EFF news, campaigns, and ways to support digital freedom.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o: Y
Plugins selected: Authenticator apache, Installer apache
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for taskboard.example.com
Enabled Apache rewrite module
Waiting for verification...
Cleaning up challenges
Created an SSL vhost at /etc/apache2/sites-available/taskboard-le-ssl.conf
Enabled Apache socache_shmcb module
Enabled Apache ssl module
Deploying Certificate to VirtualHost /etc/apache2/sites-available/taskboard-le-ssl.conf
Enabling available site: /etc/apache2/sites-available/taskboard-le-ssl.conf

次に、以下に示すように、HTTPトラフィックをHTTPSにリダイレクトするかどうかを選択します。

Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: No redirect - Make no further changes to the webserver configuration.
2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for
new sites, or if you're confident your site works on HTTPS. You can undo this
change by editing your web server's configuration.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2

2と入力し、Enterキーを押して、WebサイトにLet'sEncryptSSLをインストールします。

Enabled Apache rewrite module
Redirecting vhost in /etc/apache2/sites-enabled/taskboard.conf to ssl vhost in /etc/apache2/sites-available/taskboard-le-ssl.conf

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Congratulations! You have successfully enabled https://taskboard.example.com

You should test your configuration at:
https://www.ssllabs.com/ssltest/analyze.html?d=taskboard.example.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

IMPORTANT NOTES:
 - Congratulations! Your certificate and chain have been saved at:
   /etc/letsencrypt/live/taskboard.example.com/fullchain.pem
   Your key file has been saved at:
   /etc/letsencrypt/live/taskboard.example.com/privkey.pem
   Your cert will expire on 2022-02-7. To obtain a new or tweaked
   version of this certificate in the future, simply run certbot again
   with the "certonly" option. To non-interactively renew *all* of
   your certificates, run "certbot renew"
 - If you like Certbot, please consider supporting our work by:

   Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
   Donating to EFF:                    https://eff.org/donate-le

これで、URL https://taskboard.example.comを使用してWebサイトに安全にアクセスできます。 。

結論

おめでとう!これで、ApacheとLet'sEncryptSSLを使用してTaskboardが正常にインストールされました。これで、中央のダッシュボードから、ボードの作成、ユーザーの追加、タスクの割り当て、およびすべての管理を行うことができます。ご不明な点がございましたら、お気軽にお問い合わせください。


Debian
  1. Debian10でLetsEncryptを使用してApacheを保護する

  2. Lets Encrypt and Secure Nginx with SSL/TLSをDebian9にインストールする

  3. Nginxを使用してAutomadCMSをインストールし、Debian10でSSLを暗号化できるようにします

  1. ApacheでTikiWikiをインストールし、Debian10でSSLを暗号化する方法

  2. ApacheでAutomadCMSをインストールし、Debian10で暗号化する方法

  3. ElkArteフォーラムをApacheでインストールし、Debian10で暗号化する方法

  1. ApacheでWonderCMSをインストールし、CentOS8でSSLを暗号化する方法

  2. Nginxを使用してOpenCartをインストールし、Debian10で暗号化する方法

  3. Drupal 9をNginxでインストールし、Debian10でSSLを暗号化する方法