linux:limesurvey:limesurvey
差分
このページの2つのバージョン間の差分を表示します。
次のリビジョン | 前のリビジョン | ||
linux:limesurvey:limesurvey [2020/08/17 13:45] – 作成 Wiki Editor | linux:limesurvey:limesurvey [2020/11/24 13:21] (現在) – 削除 Wiki Editor | ||
---|---|---|---|
行 1: | 行 1: | ||
- | ====== LimeSurvey関係 ====== | ||
- | |||
- | オープンソースのWebアンケートサーバ「LimeSurvey」のインストール時のポイント。 | ||
- | |||
- | MySQLのバージョンを8系にしてInnodbを利用しようとすると、インストールスクリプトの要件チェックではじかれる。これらのチェックを無効化してやり過ごす。 | ||
- | |||
- | application/ | ||
- | |||
- | public function validateDBEngine($attribute) | ||
- | { | ||
- | if ($this-> | ||
- | && ($this-> | ||
- | $this-> | ||
- | } | ||
- | | ||
- | #if ($this-> | ||
- | # if (!$this-> | ||
- | # $this-> | ||
- | # } | ||
- | # if (!$this-> | ||
- | # $this-> | ||
- | # } | ||
- | #} | ||
- | } | ||
- | |||
- | 以前のバージョンで設定しなければならないオプションはMySQL8では廃止されているため、値がセットされていないような状況になってインストールが進められない。チェックしているロジックをすべてコメントアウトして対応。 | ||
- | |||
- | もう一つの躓きポイントは単なるバグ。ネットワーク経由でDBに接続するのではなく、ソケットを利用する場合DSNの構築にミスがありうまく接続できない。 | ||
- | |||
- | private function getMysqlDsn() { | ||
- | |||
- | $port = $this-> | ||
- | |||
- | // MySQL allow unix_socket for database location, then test if $sDatabaseLocation start with "/" | ||
- | if (substr($this-> | ||
- | $sDSN = " | ||
- | } else { | ||
- | $sDSN = " | ||
- | } | ||
- | |||
- | if ($this-> | ||
- | $sDSN .= " | ||
- | } | ||
- | return $sDSN; | ||
- | } | ||
- | |||
- | 上記の関数の「$sDSN = " | ||
- | |||
linux/limesurvey/limesurvey.1597639546.txt.bz2 · 最終更新: 2020/08/17 13:45 by Wiki Editor