Actions

Upgrading from a previous version/ja: Difference between revisions

From LimeSurvey Manual

(Updating to match new version of source page)
(Updating to match new version of source page)
 
(67 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<languages /> <div style="float:right;"><div class="simplebox">Additional pages:{toc}</div></div>__TOC__
<languages /> <div style="float:right;"><div class="simplebox">その他のページ:{toc}</div></div>__TOC__


<div class="simplebox">
=始める前に=


'''作業を始める前に、必ずバックアップを取ってください。'''
<span style='color:#FF0000'>... 非常に重要なので、よく読んでください。'''常に現在のファイルとデータベースをバックアップしてください!'''</span>


</div>
これは、[https://www.phpmyadmin.net phpMyAdmin]やファイルマネージャーのようなデータベース管理ツールを使って行うことができます。
やり方がわからない場合は、先に進めず、詳しい人に聞いてください。
 
==ComfortUpdateの利用について(推奨)==
'''簡単かつ安全にアップグレードする方法として、[[ComfortUpdate/ja|ComfortUpdate]]サービスが利用できます。'''
 
=アップグレード手順(2.x以降のバージョンからより新しいバージョンへ)=
 
以下の手順に従ってください。
*ファイルとデータベースをバックアップします([[Upgrading from a previous version/ja#Before you start...|上述しました]])。
*下記を除くすべての古いファイル/フォルダを削除する
**/application/config/security.php -'''重要:これは、バージョン4以降のLimeSurveyのすべての暗号化データの鍵です。'''
**/application/config/config.php
**/upload ディレクトリー
 
<div class="simplebox">[[File:help.png]]'''注意:''' /upload/templatesにカスタマイズしたテンプレートがある場合は、新しいLimeSurveyのバージョンに加えられた変更に合わせて'更新'してください。新旧の既定のテンプレートファイルを比較することによってこのような変更を簡単に確認することができます。カスタマイズした部分以外で違いがある場合は、更新が必要です。</div>
*新しいLimeSurveyパッケージの新しいファイルを既存の場所にコピーします。
*ブラウザで管理ページ(https://www.example.com/limesurvey/admin など)を開き、データベーススキームのアップグレードが必要かどうかを確認します。
*アップグレード後: '''ブラウザのキャッシュとCookieをクリアしてください。'''
 
=古いバージョン向けの手順=
 
残念ながら、考慮すべき点がいくつかありますので、次の手順を注意深く読んでください。


===v1.0 から v1.45 へのアップグレード===
==バージョン1.50以降からバージョン2.xx以降へのアップグレード==
*LimeSurveyの最新バージョンを[https://www.limesurvey.org/about-limesurvey/download ダウンロード]します。
*ファイルとデータベースをバックアップします([[Upgrading from a previous version/ja#.E5.A7.8B.E3.82.81.E3.82.8B.E5.89.8D.E3.81.AB|こちらで言及したとおり]])。
* すべてのインストールディレクトリファイルを置き換えます。
** 既存のインストールディレクトリ内の古いファイルをすべて削除する。
** 新しいバージョンの新しいファイルを同じインストールディレクトリにアップロードして解凍します。
** 以前のバージョンが1.90より古い場合は、カスタマイズしたテンプレートを/upload/templatesにコピーします。/templates内の既存のテンプレートと名前が一致するよう、各々のテンプレートディレクトリーの名前を変更する必要もあります。
** /uploadディレクトリーを元の場所にコピーし直します。
** [[Installation/ja#Set directory permissions|インストールに関するウィキ]]で説明されているように、ディレクトリーに設定されている'''権限'''を再確認します(/tmp、/upload、およびそのサブディレクトリーへの書き込みアクセスが必要です)。
** ブラウザーでhttp://<yourdomain>/<yourlimesurveydir>/adminを開き、指示に従ってください(古いconfig.phpにデータベースデータがあります)。既存のデータベースは自動的に検出され、必要に応じて確認後にアップグレードされます。
* 下記の特別なマニュアルチェックが適用されているか確認してください。
* '''ブラウザのキャッシュとCookieをクリアすれば'''完了です。


v1.0からv1.45では、データの構造が多くの点で変更されているので、 '''アップグレードすることはできません''' (1.08&alpha;からでも同様です)。ただし、[[アンケートのインポート|アンケートのインポート]]を用いて、v1.0のアンケートをインポートすることはできます。
{{Alert|title=注意|text=テンプレート構造は2.0xから2.50またはそれ以降の更新で変更されています。テンプレートシステムはレスポンシブテンプレートを使用しているため、古いテンプレートはもう機能しません。}}


===v1.45以降からのアップグレード===
<div class="simplebox">'''アップグレード後の特別なチェック''':
# ファイルおよびデータベースをバックアップします。
*'''以前のバージョンから2.xxへ''': 適切な質問コード付与が必要となりました。アップグレードした後、すべてのアンケートのアンケートロジックを確認し、必要に応じてコードを修正してください。
# 旧バージョンのファイルを全て削除します。
*'''v1.53より前のバージョンから''': v1.53より前のバージョンから最新バージョンにアップグレードする場合は、各ユーザーの'''グローバルユーザー権限'''を確認してください。v1.53には、それまでに作成したマスター管理アカウントと同じ権限をユーザーに与えることができる新しい'''スーパー管理者'''権限が導入されました。アップグレードスクリプトは、古いバージョンからこのアクセス権限を与えるべき人物を推測しています。これは完璧ではないので、慎重にチェックする必要があります。
# 新バージョンのファイルを同じ位置にアップロードします。
*'''以前のバージョンからv2.06へ''': 2.05から2.06への移行で、'アンケート'のグローバル権限を編集するときに未使用であった権限のいくつかが有効になりました。たとえば、ユーザーが2.05で'作成'権限のみを持っていた場合、'作成'の右側にある他の権限(読み取り、更新、削除、インポート、エクスポート)も2.06への更新によって有効になります。更新後、管理者ユーザーに'元々の'権限以外のグローバル権限があるかどうかを確認してください。必要に応じ、編集してください。
# バックアップしたファイルをもとに、config.phpを設定しなおします。旧バージョンのconfig.phpをそのままコピーしてはいけません。
</div>
# データベースをアップデートするため、インストーラ /admin/install/index.php を実行します。
# これで完了です。 (:biggrin:)


<span style='color:#FF0000'>... read this because it is very important: '''Always backup the files and the database of your current installation!'''</span>
==バージョン1.50から1.xx台のバージョンへのアップグレード==
*LimeSurveyの所望のバージョンを[https://www.limesurvey.org/about-limesurvey/download ダウンロード]してください。
*ファイルとデータベースをバックアップします([[Upgrading from a previous version/ja#.E5.A7.8B.E3.82.81.E3.82.8B.E5.89.8D.E3.81.AB|こちらで言及したとおり]])。
* すべてのインストールディレクトリーファイルを置き換えます。
** 既存のインストールディレクトリ内の古いファイルをすべて削除する。
** 新しいコードバージョンを同じインストールディレクトリにアップロードして解凍します。
** '''config.php'''ファイルを編集または置き換えます。
*** 以前のバージョンが1.70より古い場合は、新しい'''config.php'''を編集して、バックアップした'''config.php'''ファイルの変更を反映させます。'''新しいconfig.phpを古い '''config.php'''で上書きしないでください!'''
*** 以前のバージョンが1.70以降の場合、 新しい'''config.php'''をバックアップした'''config.php'''ファイルで置き換えてください(ファイル形式が変更されていないため)
** 以前のバージョンが1.90より古い場合は、カスタマイズしたテンプレートを/upload/templatesにコピーします。/templates内の既存のテンプレートと名前が一致するよう、各々のテンプレートディレクトリーの名前を変更する必要もあります。
** /uploadディレクトリーを元の場所にコピーし直します。
** [[Installation/ja#Set directory permissions|インストールに関するウィキ]]で説明されているように、ディレクトリーに設定されている'''権限'''を再確認します(/tmp、/upload、およびそのサブディレクトリーへの書き込みアクセスが必要です)。
* インストール/アップグレード手順を完了させてください。
** LimeSurvey管理のURLを開くと、確認の後にデータベーステーブルが更新されます。
** インストールスクリプトの指示に従って/admin/installディレクトリーを削除または名前を変更します。
** 下記の特別なマニュアルチェックが適用されているか確認してください。


You can do this using a database administration tool like [https://www.phpmyadmin.net phpMyAdmin] and a file manager! If you don't know how to do this, you should not proceed further and ask someone who knows or use the [[ComfortUpdate]] instead.
<div class="simplebox">'''アップグレード後の特別なチェック''':
*'''v1.53より前のバージョンから''': v1.53より前のバージョンから最新バージョンにアップグレードする場合は、各ユーザーの'''グローバルユーザー権限'''を確認してください。v1.53には、それまでに作成したマスター管理アカウントと同じ権限をユーザーに与えることができる新しい'''スーパー管理者'''権限が導入されました。アップグレードスクリプトは、古いバージョンからこのアクセス権限を与えるべき人物を推測しています。これは完璧ではないので、慎重にチェックする必要があります。
</div>


=The quick way (for minor version changes)=
==v1.50より前のバージョン(v1.0からv1.44まで)からのアップグレード==


You can use these instructions if you are doing a minor upgrade (for example from 2.00 to 2.01):
データ構造をはじめ、多くの変更があったため、v1.50より前のバージョンからアップグレードすることは<u>できません</u>。拡張子が*.sqlの古いアンケート構成ファイルを使用している場合、これらを新しいバージョンに変換する唯一の方法は、[http://www.limesurvey.org/en/archived-releases/289-limesurvey150zip バージョン1.50]をインストールし、そこに.sqlファイルをインポートして、それを最新バージョンのLimeSurveyにアップグレードすることです。詳細については、[[Transferring an installation/ja|インストールの移設方法]]に関するページを確認してください。
*Backup your files and database ([[Upgrading from a previous version#Before you start...|did we already mention that?]]).
*Delete all the old files/folders except for:
**/application/config/config.php;
**/upload directory -
<div class="simplebox">[[File:help.png]]'''Note:''' If you have any customized templates in /upload/templates, make sure you 'refresh' those with any changes that come with the new LimeSurvey version. The easiest way to check for such changes is to file-compare your old template with the new version of the default template. If you see any differences other than your customizations, a refresh is needed.</div>
*Copy the new files from the new LimeSurvey package to the existing location.
*Open the admin page in your browser (e.g. https://www.example.com/limesurvey/admin) and check if a database scheme upgrade is necessary.
*After the upgrade: '''Clear your browser cache and cookies!'''


=The thorough way (for big version jumps)=
= CLIを使用したアップグレード=


Unfortunately, there are a couple of things to consider, so please read the following instructions carefully.
PHP CLIからコマンド<code>php application/commands/console.php updatedb</code>によってデータベースをアップグレードできます。これにより、たとえばcrontabなど、コマンドラインから自動アップグレードシステムを設定することができます。ただし、この方法は推奨しません。


==Upgrading from version 1.50 or later to any later 2.xx version==
= 手動アップデートまたはComfortUpdate後のデータベースのアップグレードの失敗 =
*[https://www.limesurvey.org/about-limesurvey/download Download] the latest version of LimeSurvey
すべてを正しく実行しても、データベースのアップグレードがうまく動作しない場合があります。
* Prepare and backup the old installation
これは、データベースのバージョン相違、予期しないデータ形式または内容、異常な構成、試験で発見できなかったもの(もちろん十分な試験をしていますが)など様々な原因で発生します。
** Backup your installation directory files and SQL-based database just in case
*** At the command-line level, make a '''.zip''' or similar archive of the whole installation directory tree of files. For example, in Linux 'tar cvzf foo.tgz cps100' will tar and zip the whole cps100 directory
*** You can use [https://www.phpmyadmin.net phpMyAdmin] to export all tables or you can use the backup database function of LimeSurvey that is available in the configuration dialog (under the advanced tab) to backup the entire database
<div class="simplebox">[[File:help.png]] '''Note:''' Look for the '''LimeSurvey Administration''' button [[File:button-export-sql.png]] to export the database in the older LimeSurvey versions</div>
* Copy your '''config.php''' file, modified '''template''' directories, and the /upload directory separately for quick access later
* Replace all the installation directory files
** Delete all old files in the existing installation directory
** Upload and unpack the new code version into the same installation directory
** If your previous version is older than 1.90, copy any customized templates to /upload/templates - you will also need to rename each template directory whose name matches an existing template in /templates
** Copy your /upload directory back to the old location
** Double-check the '''permissions''' set on the directories (write access to '''/tmp''', '''/upload''', and their subdirectories is required) as described in the [[Installation#Set directory permissions|installation wiki]]
** Open http://<yourdomain>/<yourlimesurveydir>/admin in your browser and follow the instructions (you can use the old config.php as reference). The existing database will be automatically detected and if necessary, upgraded after confirmation
* Check if any special manual checks apply as listed below
* '''Now, clear your browser cache and cookies(!)''' and you are good to go


{{Alert|title=Attention|text=If you upgrade from e.g. 1.92, it might be necessary ''first'' to upgrade to the latest 1.92 release, then to 2.00, then to 2.06, and then finally to the latest version (e.g. 2.55.x). Read below for [[Upgrading from a previous version#Upgrading from version 1.50 or later to any later 1.xx version|further details]].}}
データベースのアップグレード中にエラーが発生し、LimeSurveyが使用できない状態になった場合は、前のバージョンに戻す必要があります。これには、通常のバックアップまたはComfortUpdateにより作成したデータベースとそのバックアップがあることが前提になります。


{{Alert|title=Attention|text=Please note that the template structure has changed with the update from 2.0x to 2.50 or later. Your old templates will not be working anymore as the template system is now using responsive templates.}}
次の手順を実行してください。


<div class="simplebox">'''Special checks after an upgrade''':
*既存のLimeSurveyディレクトリーとデータベースをバックアップする(これを2つ目のバックアップと呼ぶ)
*'''from any earlier version to 2.xx''': Proper question codes are mandatory now. After upgrading the installation, check the survey logic of all surveys and correct the codes where necessary
*元の(1つ目の)バックアップから既存のディレクトリーにファイルを復元する(上書きすればよい)
*'''from a version earlier than v1.53''': When upgrading from a version before v1.53 to the latest version, please check the '''global user rights''' of each user. There was a new '''superadmin''' right introduced in v1.53 that can give a user the same privilege as the master administration account created during the install. The upgrade script is guessing to whom this permission should be given in the older versions.  As this is not perfect, it should be carefully checked
*古いデータベースを削除し、元の(1つ目の)バックアップからデータベースを復元する
*'''from any earlier version to v2.06''': From 2.05 to 2.06, some unused permissions when editing global permissions for 'surveys' were activated. For example, if a user had only the 'create' permission in 2.05, the other permissions located to the right of 'create' would also get activated with the update to 2.06 (View/read, Update, Delete, Import, Export). Please check whether the admin users got any other global permissions besides the 'original' ones after the update. If yes, please edit them accordingly
</div>


==Upgrading from version 1.50 or later to any later 1.xx version==
これですべてが正常に戻るはずです。
*[https://www.limesurvey.org/about-limesurvey/download Download] the desired version of LimeSurvey
* Prepare and backup the old installation
** Backup your installation directory files and SQL-based database just in case
*** At the command-line level, make a '''.zip''' or similar archive of the whole installation directory tree of files. For example, in Linux 'tar cvzf foo.tgz cps100' will tar and zip the whole of the cps100 directory
*** Using [https://www.phpmyadmin.net phpMyAdmin] or similar to export all tables; or using the '''LimeSurvey Administration''' button [[File:button-export-sql.png]] to backup the entire database
** Copy your '''config.php''' file, modified '''template''' directories, and the /upload directory separately for quick access later
* Replace all the installation directory files
** Delete all old files in the existing installation directory
** Upload and unpack the new code version into the same installation directory
** Edit or replace the '''config.php''' file:
*** If your previous version was < 1.70: Edit the new '''config.php''' in order to reflect the changes from the backup '''config.php''' file. '''Do not just overwrite the new '''config.php''' with your old one!'''
*** If your previous version was >= 1.70: Simply replace the new '''config.php''' with your backup '''config.php''' file (as the file format has not changed)
** If your previous version was older than 1.90: Copy any customized templates to /upload/templates - you will also need to rename each template directory whose name matches an existing template in /templates
** Copy your /upload directory back to the old location
** Double-check the '''permissions''' set on the directories of LimeSurvey (write access to '''/tmp''', '''/upload''', and to their subdirectories is required) as described in the [[Installation#Set Directory permissions|installation wiki]]
* Finish the installation/upgrade process
** Once you open the URL to your LimeSurvey administration, the database tables will be updated after confirmation
** Remove or rename the /admin/install directory as/if instructed by the installation script
** Check if any special manual checks apply (as listed below)


<div class="simplebox">'''Special checks after an upgrade''':
'''この問題の報告について:'''
*'''from any earlier version to 1.92''': The '''templates''' have been changed. Please check your customized templates if they are still looking right. If not, you will have to edit your templates accordingly (check out the original templates to see what was changed)<br />
*'''from a version earlier than v1.53''': When upgrading from a version before v1.53 to the latest version, please check the '''global user rights''' of each user. There was a new '''superadmin''' right introduced in v1.53 that can give a user the same privilege as the master administration account created during the install. The upgrade script is guessing to whom this permission should be given in the older versions.  As this is not perfect, it should be carefully checked.
</div>


==Upgrading from a version earlier than v1.50 (v1.0 through v1.44)==
このような問題が発生した場合は、もれなくバグトラッカーhttps://bugs.limesurvey.orgで報告してください。


Since the data structure and a lot of other things were changed, '''upgrading from any version previous to v1.50 is <u>NOT</u> possible'''. If you have old survey structure files with an *.sql extension, the only way to get these into a newer version is to install [http://www.limesurvey.org/en/archived-releases/289-limesurvey150zip version 1.50], import the .sql file(s) there, then upgrade that version to the most recent LimeSurvey version. Check the page related to [[Transferring an installation|how an installation can be transferred]] for more details.
報告されないバグは修正されないバグです。他の人の報告があるからと言ってそれに頼らないでください。バグが既に報告されている場合は、バグトラッカーで、'はい、私もこのバグで困っています'とマークすれば、バグ修正の優先順位を上げることができます。


=FAQ=
=FAQ=


==What is the most recent LimeSurvey version that still supports PHP4?==
==実行中のアンケートがあってもアップグレードできますか?==
 
はい、できます。上記の徹底的な方法に例外が記載されているかもしれません。アップグレード後にアンケートをテストして、デザインテンプレートが正常に機能しているかを確認することを強くお勧めします。


The last release offering PHP4 support was version 1.82+.
==アンケート構成ファイル(*.sql/*.csv)を最新バージョンのLimeSurveyに移行する方法==


==Can I upgrade even if I have active surveys?==
バージョン1.50をインストールし、ファイルをインポートし、アンケート構成を新しい.csv形式にエクスポートします。最新のバージョン2.xをインストールし、.csv形式のデータをインポートし、現行の.lss形式でエクスポートします。


Yes, you can. Exceptions may be mentioned in the thorough instructions above. We strongly advise to test your surveys after upgrade to check if your design templates still work alright.
==Survey theme incompatibility==
With certain major version updates any custom survey themes will not be compatible, anymore:


==What is the best way to port the *.sql survey structure files of LimeSurvey to the latest version?==
* Update from LimeSurvey 2.6 or lower to LimeSurvey 2.50
* Update from LimeSurvey 5.x or lower to LimeSurvey 6.x


Install version 1.50, import the file, and export the survey structure to the newer .csv format. The latest version can still read the .csv survey structure format.
==Error "Multiple primary key defined" when updating MySQL database==
If you encounter this error, please check the setting ''sql_generate_invisible_primary_key'' in your MySQL server variables. This is most likely set to ''ON'', but should be set to ''OFF''. Then restore your database from the backup (as explained above) and try again.

Latest revision as of 10:52, 3 April 2024

その他のページ:{toc}

始める前に

... 非常に重要なので、よく読んでください。常に現在のファイルとデータベースをバックアップしてください!

これは、phpMyAdminやファイルマネージャーのようなデータベース管理ツールを使って行うことができます。 やり方がわからない場合は、先に進めず、詳しい人に聞いてください。

ComfortUpdateの利用について(推奨)

簡単かつ安全にアップグレードする方法として、ComfortUpdateサービスが利用できます。

アップグレード手順(2.x以降のバージョンからより新しいバージョンへ)

以下の手順に従ってください。

  • ファイルとデータベースをバックアップします(上述しました)。
  • 下記を除くすべての古いファイル/フォルダを削除する
    • /application/config/security.php -重要:これは、バージョン4以降のLimeSurveyのすべての暗号化データの鍵です。
    • /application/config/config.php
    • /upload ディレクトリー
注意: /upload/templatesにカスタマイズしたテンプレートがある場合は、新しいLimeSurveyのバージョンに加えられた変更に合わせて'更新'してください。新旧の既定のテンプレートファイルを比較することによってこのような変更を簡単に確認することができます。カスタマイズした部分以外で違いがある場合は、更新が必要です。
  • 新しいLimeSurveyパッケージの新しいファイルを既存の場所にコピーします。
  • ブラウザで管理ページ(https://www.example.com/limesurvey/admin など)を開き、データベーススキームのアップグレードが必要かどうかを確認します。
  • アップグレード後: ブラウザのキャッシュとCookieをクリアしてください。

古いバージョン向けの手順

残念ながら、考慮すべき点がいくつかありますので、次の手順を注意深く読んでください。

バージョン1.50以降からバージョン2.xx以降へのアップグレード

  • LimeSurveyの最新バージョンをダウンロードします。
  • ファイルとデータベースをバックアップします(こちらで言及したとおり)。
  • すべてのインストールディレクトリファイルを置き換えます。
    • 既存のインストールディレクトリ内の古いファイルをすべて削除する。
    • 新しいバージョンの新しいファイルを同じインストールディレクトリにアップロードして解凍します。
    • 以前のバージョンが1.90より古い場合は、カスタマイズしたテンプレートを/upload/templatesにコピーします。/templates内の既存のテンプレートと名前が一致するよう、各々のテンプレートディレクトリーの名前を変更する必要もあります。
    • /uploadディレクトリーを元の場所にコピーし直します。
    • インストールに関するウィキで説明されているように、ディレクトリーに設定されている権限を再確認します(/tmp、/upload、およびそのサブディレクトリーへの書き込みアクセスが必要です)。
    • ブラウザーでhttp://<yourdomain>/<yourlimesurveydir>/adminを開き、指示に従ってください(古いconfig.phpにデータベースデータがあります)。既存のデータベースは自動的に検出され、必要に応じて確認後にアップグレードされます。
  • 下記の特別なマニュアルチェックが適用されているか確認してください。
  • ブラウザのキャッシュとCookieをクリアすれば完了です。
  注意 : テンプレート構造は2.0xから2.50またはそれ以降の更新で変更されています。テンプレートシステムはレスポンシブテンプレートを使用しているため、古いテンプレートはもう機能しません。


アップグレード後の特別なチェック:
  • 以前のバージョンから2.xxへ: 適切な質問コード付与が必要となりました。アップグレードした後、すべてのアンケートのアンケートロジックを確認し、必要に応じてコードを修正してください。
  • v1.53より前のバージョンから: v1.53より前のバージョンから最新バージョンにアップグレードする場合は、各ユーザーのグローバルユーザー権限を確認してください。v1.53には、それまでに作成したマスター管理アカウントと同じ権限をユーザーに与えることができる新しいスーパー管理者権限が導入されました。アップグレードスクリプトは、古いバージョンからこのアクセス権限を与えるべき人物を推測しています。これは完璧ではないので、慎重にチェックする必要があります。
  • 以前のバージョンからv2.06へ: 2.05から2.06への移行で、'アンケート'のグローバル権限を編集するときに未使用であった権限のいくつかが有効になりました。たとえば、ユーザーが2.05で'作成'権限のみを持っていた場合、'作成'の右側にある他の権限(読み取り、更新、削除、インポート、エクスポート)も2.06への更新によって有効になります。更新後、管理者ユーザーに'元々の'権限以外のグローバル権限があるかどうかを確認してください。必要に応じ、編集してください。

バージョン1.50から1.xx台のバージョンへのアップグレード

  • LimeSurveyの所望のバージョンをダウンロードしてください。
  • ファイルとデータベースをバックアップします(こちらで言及したとおり)。
  • すべてのインストールディレクトリーファイルを置き換えます。
    • 既存のインストールディレクトリ内の古いファイルをすべて削除する。
    • 新しいコードバージョンを同じインストールディレクトリにアップロードして解凍します。
    • config.phpファイルを編集または置き換えます。
      • 以前のバージョンが1.70より古い場合は、新しいconfig.phpを編集して、バックアップしたconfig.phpファイルの変更を反映させます。新しいconfig.phpを古い config.phpで上書きしないでください!
      • 以前のバージョンが1.70以降の場合、 新しいconfig.phpをバックアップしたconfig.phpファイルで置き換えてください(ファイル形式が変更されていないため)
    • 以前のバージョンが1.90より古い場合は、カスタマイズしたテンプレートを/upload/templatesにコピーします。/templates内の既存のテンプレートと名前が一致するよう、各々のテンプレートディレクトリーの名前を変更する必要もあります。
    • /uploadディレクトリーを元の場所にコピーし直します。
    • インストールに関するウィキで説明されているように、ディレクトリーに設定されている権限を再確認します(/tmp、/upload、およびそのサブディレクトリーへの書き込みアクセスが必要です)。
  • インストール/アップグレード手順を完了させてください。
    • LimeSurvey管理のURLを開くと、確認の後にデータベーステーブルが更新されます。
    • インストールスクリプトの指示に従って/admin/installディレクトリーを削除または名前を変更します。
    • 下記の特別なマニュアルチェックが適用されているか確認してください。
アップグレード後の特別なチェック:
  • v1.53より前のバージョンから: v1.53より前のバージョンから最新バージョンにアップグレードする場合は、各ユーザーのグローバルユーザー権限を確認してください。v1.53には、それまでに作成したマスター管理アカウントと同じ権限をユーザーに与えることができる新しいスーパー管理者権限が導入されました。アップグレードスクリプトは、古いバージョンからこのアクセス権限を与えるべき人物を推測しています。これは完璧ではないので、慎重にチェックする必要があります。

v1.50より前のバージョン(v1.0からv1.44まで)からのアップグレード

データ構造をはじめ、多くの変更があったため、v1.50より前のバージョンからアップグレードすることはできません。拡張子が*.sqlの古いアンケート構成ファイルを使用している場合、これらを新しいバージョンに変換する唯一の方法は、バージョン1.50をインストールし、そこに.sqlファイルをインポートして、それを最新バージョンのLimeSurveyにアップグレードすることです。詳細については、インストールの移設方法に関するページを確認してください。

CLIを使用したアップグレード

PHP CLIからコマンドphp application/commands/console.php updatedbによってデータベースをアップグレードできます。これにより、たとえばcrontabなど、コマンドラインから自動アップグレードシステムを設定することができます。ただし、この方法は推奨しません。

手動アップデートまたはComfortUpdate後のデータベースのアップグレードの失敗

すべてを正しく実行しても、データベースのアップグレードがうまく動作しない場合があります。 これは、データベースのバージョン相違、予期しないデータ形式または内容、異常な構成、試験で発見できなかったもの(もちろん十分な試験をしていますが)など様々な原因で発生します。

データベースのアップグレード中にエラーが発生し、LimeSurveyが使用できない状態になった場合は、前のバージョンに戻す必要があります。これには、通常のバックアップまたはComfortUpdateにより作成したデータベースとそのバックアップがあることが前提になります。

次の手順を実行してください。

  • 既存のLimeSurveyディレクトリーとデータベースをバックアップする(これを2つ目のバックアップと呼ぶ)
  • 元の(1つ目の)バックアップから既存のディレクトリーにファイルを復元する(上書きすればよい)
  • 古いデータベースを削除し、元の(1つ目の)バックアップからデータベースを復元する

これですべてが正常に戻るはずです。

この問題の報告について:

このような問題が発生した場合は、もれなくバグトラッカーhttps://bugs.limesurvey.orgで報告してください。

報告されないバグは修正されないバグです。他の人の報告があるからと言ってそれに頼らないでください。バグが既に報告されている場合は、バグトラッカーで、'はい、私もこのバグで困っています'とマークすれば、バグ修正の優先順位を上げることができます。

FAQ

実行中のアンケートがあってもアップグレードできますか?

はい、できます。上記の徹底的な方法に例外が記載されているかもしれません。アップグレード後にアンケートをテストして、デザインテンプレートが正常に機能しているかを確認することを強くお勧めします。

アンケート構成ファイル(*.sql/*.csv)を最新バージョンのLimeSurveyに移行する方法

バージョン1.50をインストールし、ファイルをインポートし、アンケート構成を新しい.csv形式にエクスポートします。最新のバージョン2.xをインストールし、.csv形式のデータをインポートし、現行の.lss形式でエクスポートします。

Survey theme incompatibility

With certain major version updates any custom survey themes will not be compatible, anymore:

  • Update from LimeSurvey 2.6 or lower to LimeSurvey 2.50
  • Update from LimeSurvey 5.x or lower to LimeSurvey 6.x

Error "Multiple primary key defined" when updating MySQL database

If you encounter this error, please check the setting sql_generate_invisible_primary_key in your MySQL server variables. This is most likely set to ON, but should be set to OFF. Then restore your database from the backup (as explained above) and try again.