プリザンターをWindowsにインストールする
## 概要
本説明は、以下に示す環境にプリザンターの動作環境を構築するための手順を示したものです。
|対象|環境・バージョン|
|------|:--------------|
|OS|Windows Server|
|DB|SQL Server|
|Webサーバ|IIS|
|Platform|.NET 8|
|Pleasanter|プリザンター 1.4|
## 手順
構築手順は以下の通りです。
1. 事前準備
1. プリザンターのセットアップ
1. CodeDefinerの実行
1. IISのセットアップ
1. プリザンターの起動確認
## 1. 事前準備
1. プリザンターをインストールする環境に合わせて、事前の準備を行います。
[Install Pleasanter on Windows Server 2022](getting-started-pleasanter-windows-server2022)
[Install Pleasanter on Windows Server 2019](getting-started-pleasanter-windows-server2019)
[Install Pleasanter on Windows Server 2016](getting-started-pleasanter-windows-server2016)
[Install Pleasanter on Windows 10/11](getting-started-pleasanter-windows10)
## 2. プリザンターのセットアップ
1. [ダウンロードセンター](https://pleasanter.org/dlcenter)から、プリザンター最新バージョンをダウンロードします。
1. ダウンロードしたzipファイルを解凍し、サーバに配置します。
Cドライブに「web」フォルダーを作成し、そこに「pleasanter」 フォルダーを配置するものとして記述します。
C:\web\pleasanter\Implem.Pleasanter
C:\web\pleasanter\Implem.CodeDefiner
C:\web\pleasanter\Tools
![image](https://pleasanter.org/binaries/dbc3b0ef75244e9e8187bd47bbd03862)
1. データベースへの接続情報を設定します。
C:\web\pleasanter\Implem.Pleasanter\App_Data\Parameters\Rds.json を以下のように設定します。
|No|プロパティ名|値|
|:----|:----|:----|
|1|Dbms|"SQLServer"|
|2|SaConnectionString|"Server=(local);Database=master;UID=sa;PWD=<font color="Red">XXX</font>;Connection Timeout=30;"<br>※PWDの値はSQL Serverのsaアカウントのパスワードを入力してください。|
|3|OwnerConnectionString|"Server=(local);Database=#ServiceName#;UID=#ServiceName#_Owner;PWD=<font color="Red">XXX</font>;Connection Timeout=30;"※PWDの値は任意のパスワードを入力してください。|
|4|UserConnectionString|"Server=(local);Database=#ServiceName#;UID=#ServiceName#_User;PWD=<font color="Red">XXX</font>;Connection Timeout=30;"※PWDの値は任意のパスワードを入力してください。|
```json
{
"Dbms": "SQLServer",
"Provider": "Local",
"SaConnectionString": "Server=(local);Database=master;UID=sa;PWD=SetSaPWD;Connection Timeout=30;",
"OwnerConnectionString": "Server=(local);Database=#ServiceName#;UID=#ServiceName#_Owner;PWD=SetAdminsPWD;Connection Timeout=30;",
"UserConnectionString": "Server=(local);Database=#ServiceName#;UID=#ServiceName#_User;PWD=SetUsersPWD;Connection Timeout=30;",
"SqlCommandTimeOut": 0,
"MinimumTime": 3,
"DeadlockRetryCount": 4,
"DeadlockRetryInterval": 1000,
"DisableIndexChangeDetection": true
}
```
## 3. CodeDefinerの実行
1. コマンドプロンプトまたはPowerShellを起動し、以下コマンドを実行します。
```
cd C:\web\pleasanter\Implem.CodeDefiner
dotnet Implem.CodeDefiner.dll _rds
```
## 4. IISのセットアップ
1. 「サーバマネージャー」の「ツール(T)」メニューを開き「インターネット インフォメーション サービス(IIS)マネージャー」を起動します。
1. 「アプリケーションプール」の「DefaultAppPool」を選択し、「基本設定」をクリックします。
![image](https://pleasanter.org/binaries/b0d96c97e3b74d10b9f7b2c313838b67)
1. Net CLR バージョンを、「マネージコードなし」に変更します。
![image](https://pleasanter.org/binaries/1c29fb8bbca74307912728bf09709a6e)
1. 左ペインより、[サイト](/ja/manual/site)-「Default Web Site」を選択して、右ペインの詳細設定をクリックします。
![image](https://pleasanter.org/binaries/1ae3f880aa014778b37641a4c74e1805)
1. 物理パスを、「C:\web\pleasanter\Implem.Pleasanter」と入力します。
![image](https://pleasanter.org/binaries/bb117b9a1075497384806f418895b6c8)
1. 左ペインより、[サイト](/ja/manual/site)-「Default Web Site」を選択して、右ペインの「再起動」をクリックして、IISを再起動します。
![image](https://pleasanter.org/binaries/ca5a5b6a74474f709d92d0aafba9b9a0)
1. 再起動後、右ペインの「*.80(http)参照」をクリックし、プリザンターを起動します。
![image](https://pleasanter.org/binaries/e62a3e5ca4fb4ab69b54d8dd5f0bc122)
## 5. プリザンターの動作確認
1. プリザンターのログイン画面にて「ログインID: Administrator」「初期パスワード: pleasanter」を入力し、「ログイン」ボタンをクリックします。
![image](https://pleasanter.org/binaries/5477647dc121413190827affdc7fa1ff)
1. ログイン後に「Administrator」ユーザーのパスワード変更を求められるので、任意のパスワードを入力し、「変更」ボタンをクリックします。
![image](https://pleasanter.org/binaries/d57262564d8e49568553a84b273d3797)