linux:limesurvey
no way to compare when less than two revisions
差分
このページの2つのバージョン間の差分を表示します。
— | linux: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.txt · 最終更新: 2020/11/24 13:21 by Wiki Editor