<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.limesurvey.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Rickylu</id>
	<title>LimeSurvey Manual - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.limesurvey.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Rickylu"/>
	<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/Special:Contributions/Rickylu"/>
	<updated>2026-08-11T14:46:20Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=LimeSurvey_PRO_vs_LimeSurvey_CE/zh-hant&amp;diff=379692</id>
		<title>LimeSurvey PRO vs LimeSurvey CE/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=LimeSurvey_PRO_vs_LimeSurvey_CE/zh-hant&amp;diff=379692"/>
		<updated>2025-02-25T10:01:02Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: Created page with &amp;quot;&amp;#039;&amp;#039;LimeSurvey GmbH&amp;#039;&amp;#039; 是指圍繞LimeSurvey 軟體建立的公司，以便更好地協調其開發並提供各種 LimeSurvey 付費服務（例如託管、個人化模板、附加套件、技術支援等等）。&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Introduction&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=簡介=&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;注意：LimeSurvey PRO 現在更名為 LimeSurvey Cloud。&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
在開始討論&#039;&#039;&#039;LimeSurvey Cloud&#039;&#039;&#039;和&#039;&#039;&#039;LimeSurvey CE&#039;&#039;&#039; （LimeSurvey 社群版）之前，了解&#039;&#039;LimeSurvey&#039;&#039;和&#039;&#039;LimeSurvey GmbH&#039;&#039;之間的差異非常重要。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;mw-translate-fuzzy&amp;quot;&amp;gt;&lt;br /&gt;
&#039;&#039;LimeSurvey&#039;&#039; 以及之後的版本是根據 [https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html GNU 通用公共授權 v2]（GPL v2) 免費發布的一種架設於伺服器上的軟體。&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;LimeSurvey GmbH&#039;&#039; 是指圍繞LimeSurvey 軟體建立的公司，以便更好地協調其開發並提供各種 LimeSurvey 付費服務（例如託管、個人化模板、附加套件、技術支援等等）。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;[[File:help.png]] 要了解有關 LimeSurvey 許可證的更多信息，請訪問 https://community.limesurvey.org/licence-trademark/。&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
由於 LimeSurvey 具有通用公共授權並且是一個&amp;lt;u&amp;gt;[https://en.wikipedia.org/wiki/Open_source_software 開源軟體]&amp;lt;/u&amp;gt; ，因此任何人都可以出於商業、私人和教育目的使用、修改和分發它， &#039;&#039;&#039;名稱和徽標除外，它們已註冊為商標&#039;&#039;&#039;。例如，LimeSurvey 可以輕鬆用於建立和分發用於評估大學課程或教授的問卷，也可以將其安裝在私人伺服器上，以便為您的企業進行線上/線下市場研究。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;[[File:help.png]] LimeSurvey 是一款開源軟體。該程式的代碼已完全公開。您可以透過 https://github.com/LimeSurvey/LimeSurvey 存取它。&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
必須滿足最低需求才能在您的電腦（用於開發目的）或伺服器上安裝 LimeSurvey。請閱讀我們的[[Installation_-_LimeSurvey_CE/zh-hant|安裝指南]]，以取得有關如何安裝 LimeSurvey 的詳細指南。&lt;br /&gt;
&lt;br /&gt;
However, for users who may find the installation process too complex and who do not have knowledge of server administration, [https://www.limesurvey.org/ LimeSurvey GmbH] offers [https://www.limesurvey.org/en/pricing Cloud hosting services].  With [https://www.limesurvey.org/en/pricing Cloud hosting services], a LimeSurvey instance is created for you in seconds!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:provsce.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;[[File:help.png]] Quite often, you will see words related to &#039;&#039;hosting services&#039;&#039;, &#039;&#039;self-hosted software&#039;&#039;, and &#039;&#039;personal server&#039;&#039; mentioned within this wiki section. We suggest the [https://www.limesurvey.org/en/blog/20-blog/120-hosting-solutions-two-sides-of-the-same-coin following post from our blog] to better grasp these hosting-related concepts.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=LimeSurvey Cloud vs LimeSurvey CE=&lt;br /&gt;
&lt;br /&gt;
Check out the following table for a brief summary of features of each service for a better understanding of the differences between them:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; style=&amp;quot;text-align: center; color: black&amp;quot;&lt;br /&gt;
|+LimeSurvey Cloud vs LimeSurvey CE&lt;br /&gt;
|&#039;&#039;&#039;LimeSurvey Cloud&#039;&#039;&#039;&lt;br /&gt;
|&#039;&#039;&#039;LimeSurvey CE&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
|Hosting is provided by LimeSurvey. The installation process should take no longer than 5 minutes.&lt;br /&gt;
|Self-hosted. &lt;br /&gt;
|-&lt;br /&gt;
|You can choose one of the four types of plans: [https://www.limesurvey.org/en/pricing FREE, BASIC, EXPERT and ENTERPRISE].&lt;br /&gt;
|You may either use the free version or pick one of the [https://www.limesurvey.org/en/pricing three premium plans].  The premium plans contain the ComfortUpdate feature, access to older versions and a multitude of design templates.&lt;br /&gt;
|-&lt;br /&gt;
|Always uses the latest stable version of LimeSurvey.&lt;br /&gt;
|You get access not only to the latest releases, but also to the older ones. You choose which to use.&lt;br /&gt;
|-&lt;br /&gt;
|Technical support included for the paid plans.&lt;br /&gt;
|Technical ComfortUpdate support included for the premium plans.&lt;br /&gt;
|-&lt;br /&gt;
|Contains all the features that make LimeSurvey great.&lt;br /&gt;
|Contains all the features that make LimeSurvey great.&lt;br /&gt;
|-&lt;br /&gt;
|LimeSurvey Cloud comes with response and storage usage reminders due to the fact that these are limited on the free plan. &lt;br /&gt;
|LimeSurvey CE does not have response and storage usage reminders.  Limitations are due to the amount of space allocated from the personal server to the LimeSurvey-related tasks.&lt;br /&gt;
|-&lt;br /&gt;
|No direct server access. Third-party plugins/extensions can be added to your LimeSurvey instance by us on request.&lt;br /&gt;
|If you own your server, you can access your LimeSurvey installation. You can start [[Optional settings|tweaking it]] and make further enhancements by adding additional extensions/add-ons.&lt;br /&gt;
|-&lt;br /&gt;
|The instance is automatically updated by us for minor versions. You decide on the point in time for major versions.&lt;br /&gt;
|The ComfortUpdate tool is used to update the LimeSurvey installation. The update can also be done manually.  &lt;br /&gt;
|-&lt;br /&gt;
| Server and installation configuration is handled by us, saving you valuable time.&lt;br /&gt;
|Ideal for hands-on people with technical knowledge. [[LimeSurvey_Manual|The LimeSurvey manual]] Is a great place to start learning.&lt;br /&gt;
|-&lt;br /&gt;
|Reliable response inflow due to a self-renewing subscription system.&lt;br /&gt;
|The only limitation is related to your server and its configuration.&lt;br /&gt;
|-&lt;br /&gt;
|More flexibility - You have 3 days until the date of renewal to cancel your subscription!&lt;br /&gt;
|The software is hosted on your server. There are no links between the activity performed by you with the help of the &#039;&#039;LimeSurvey software&#039;&#039; and &#039;&#039;LimeSurvey GmbH&#039;&#039;.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{Box|Please note that the above table is just a summary of the main features provided by the two versions of LimeSurvey. For an exhaustive description, access the following limesurvey.org links: [https://community.limesurvey.org/comfort-update-extension/ LimeSurvey CE] or [https://https://www.limesurvey.org/pricing LimeSurvey Cloud] to get a complete description of each.}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==LimeSurvey CE==&lt;br /&gt;
&lt;br /&gt;
Convinced that &#039;&#039;&#039;LimeSurvey CE&#039;&#039;&#039; is right for you? You can install it on your server now. To download LimeSurvey CE, click the &#039;&#039;&#039;Downloads&#039;&#039;&#039; tab from the [https://community.limesurvey.org/ LimeSurvey] page. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:LimeSurvey.org - Project - Downloads.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following page will load:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;center&amp;gt;[[File:Project - Downloads - Display.png]]&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;LimeSurvey Cloud&#039;&#039;&#039;: If you click on the &#039;&#039;&#039;Sign up for free&#039;&#039;&#039; button, you will be first asked to create a [https://www.limesurvey.org/en/pricing LimeSurvey.org] account in order to create and access your online LimeSurvey site. If you wish to use our hosting services, refer to the following quick start guide: [[Quick start guide - LimeSurvey 3.0+|LimeSurvey Cloud Quick Start Guide]].&lt;br /&gt;
*&#039;&#039;LimeSurvey CE&#039;&#039;: This option allows you to download the LimeSurvey software, archived in several formats, including an executable file. Use this option if you would like to install LimeSurvey on your own server or on your own computer for personal testing. It is ideal for hands-on people with technical knowledge. You will see that LimeSurvey CE is divided into stable releases and development releases. For a rock-solid software, go for the stable release. If you want to test new LimeSurvey features and help us improve it, go with the development release.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;[[File:help.png]] To get access to the latest software developments, [https://github.com/LimeSurvey/LimeSurvey follow us on GitHub].&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*&#039;&#039;&#039;Templates:&#039;&#039;&#039; You may find example surveys here, label sets, and question templates in various languages. All templates are created by the community. You can also contribute by uploading your work and making it publicly available to others.&lt;br /&gt;
*&#039;&#039;&#039;Extensions:&#039;&#039;&#039; LimeSurvey supports plugins and extensions. By clicking on the &amp;quot;Go to the extensions&amp;quot; link, you get access to a directory that contains all of the LimeSurvey third-party extensions (your own contribution can also be listed there).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Alert|Title=Attention|text=Only LimeSurvey CE supports third-party plugins! If you would like to use an extension in LimeSurvey Pro, please write [mailto:support@limesurvey.org Support].}}&lt;br /&gt;
&lt;br /&gt;
==LimeSurvey Cloud==&lt;br /&gt;
&lt;br /&gt;
Refer to the following [[Quick start guide - LimeSurvey 3.0+|step-by-step guide]] to learn how to create a [https://www.limesurvey.org/en/pricing LimeSurvey Cloud] account and launch your first survey.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&#039;simplebox&#039;&amp;gt; [[File:help.png]] You can also view the following [https://www.youtube.com/watch?v=oyoq14XpkwA video tutorial] on how to set up a professional account on LimeSurvey.&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=What do I need?=&lt;br /&gt;
&lt;br /&gt;
There is a lot of information to grasp. We are completely aware of this and you might feel a bit overwhelmed. &lt;br /&gt;
We suggest you do a &#039;&#039;&#039;cost-benefit analysis&#039;&#039;&#039;. Some aspects that are worth taking into consideration:&lt;br /&gt;
*&#039;&#039;&#039;Capital:&#039;&#039;&#039; Think of the costs of running a server for example. Even though a lot of low-cost hosting providers can be found online, take into account that you have to take care not only of your LimeSurvey installation, but also of the server configuration. If you want to create more complex surveys and/or install/create additional plugins, employees with knowledge in PHP, HTML, CSS will be needed - which means higher costs for you and your business.&lt;br /&gt;
*&#039;&#039;&#039;Human resources&#039;&#039;&#039;: If complex surveys are created, employees with IT-related skills might be needed. That is why it is better (sometimes) to outsource such services. You may use our LimeSurvey Cloud services or the help provided by our official partners.&lt;br /&gt;
*&#039;&#039;&#039;Time:&#039;&#039;&#039; Time is a limited resource. Different time-related constraints (e.g., deadlines, lots of qualitative research requests from your clients, etc.) transform time into an important independent variable that should definitely influence your final decision. &lt;br /&gt;
&lt;br /&gt;
Think of all your possible needs and available resources before choosing between LimeSurvey Cloud and LimeSurvey CE.&lt;br /&gt;
&lt;br /&gt;
Generally, if you want to use LimeSurvey without any download or configuration, you should choose LimeSurvey Cloud. You can test it freely as long as you want and then purchase one of the subscription plans.  However, if you have a running server infrastructure and want to integrate LimeSurvey into that, take a look at LimeSurvey CE. We also offer great LimeSurvey CE plans to enhance your installation with one-click updates and more custom themes.&lt;br /&gt;
&lt;br /&gt;
{{Note|Additional help can be found at one of our partners listed here: https://www.limesurvey.com/.}}&lt;br /&gt;
&lt;br /&gt;
=What if I still have questions?=&lt;br /&gt;
&lt;br /&gt;
We have an extremely helpful community. You are more than welcome to post your questions and/or thoughts on our [https://forum.limesurvey.org LimeSurvey forums] or [https://discord.gg/DEjguXn|LimeSurvey Discord channel]:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;&amp;lt;center&amp;gt;&#039;&#039;&#039;[https://discord.gg/DEjguXn Direct link to the official LimeSurvey Discord group]&#039;&#039;&#039;&amp;lt;/center&amp;gt;&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Translations:LimeSurvey_PRO_vs_LimeSurvey_CE/7/zh-hant&amp;diff=379651</id>
		<title>Translations:LimeSurvey PRO vs LimeSurvey CE/7/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Translations:LimeSurvey_PRO_vs_LimeSurvey_CE/7/zh-hant&amp;diff=379651"/>
		<updated>2025-01-18T09:47:46Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;必須滿足最低需求才能在您的電腦（用於開發目的）或伺服器上安裝 LimeSurvey。請閱讀我們的[[Installation_-_LimeSurvey_CE/zh-hant|安裝指南]]，以取得有關如何安裝 LimeSurvey 的詳細指南。&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Translations:LimeSurvey_PRO_vs_LimeSurvey_CE/7/zh-hant&amp;diff=379650</id>
		<title>Translations:LimeSurvey PRO vs LimeSurvey CE/7/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Translations:LimeSurvey_PRO_vs_LimeSurvey_CE/7/zh-hant&amp;diff=379650"/>
		<updated>2025-01-18T09:46:52Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;必須滿足最低需求才能在您的電腦（用於開發目的）或伺服器上安裝 LimeSurvey。請閱讀我們的[[安裝 - LimeSurvey CE|安裝指南]]，以取得有關如何安裝 LimeSurvey 的詳細指南。&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Translations:LimeSurvey_PRO_vs_LimeSurvey_CE/7/zh-hant&amp;diff=379649</id>
		<title>Translations:LimeSurvey PRO vs LimeSurvey CE/7/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Translations:LimeSurvey_PRO_vs_LimeSurvey_CE/7/zh-hant&amp;diff=379649"/>
		<updated>2025-01-18T09:46:06Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: Created page with &amp;quot;必須滿足最低需求才能在您的電腦（用於開發目的）或伺服器上安裝 LimeSurvey。請閱讀我們的安裝指南，以取得有關如何安裝 LimeSurvey 的詳細指南。&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;必須滿足最低需求才能在您的電腦（用於開發目的）或伺服器上安裝 LimeSurvey。請閱讀我們的[[安裝 – LimeSurvey CE|安裝指南]]，以取得有關如何安裝 LimeSurvey 的詳細指南。&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Translations:LimeSurvey_PRO_vs_LimeSurvey_CE/6/zh-hant&amp;diff=379648</id>
		<title>Translations:LimeSurvey PRO vs LimeSurvey CE/6/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Translations:LimeSurvey_PRO_vs_LimeSurvey_CE/6/zh-hant&amp;diff=379648"/>
		<updated>2025-01-18T09:44:46Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: Created page with &amp;quot;&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;File:help.png LimeSurvey 是一款開源軟體。該程式的代碼已完全公開。您可以透過 https://github.com/LimeSurvey/LimeSurvey 存取它。&amp;lt;/div&amp;gt;&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;[[File:help.png]] LimeSurvey 是一款開源軟體。該程式的代碼已完全公開。您可以透過 https://github.com/LimeSurvey/LimeSurvey 存取它。&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Translations:LimeSurvey_PRO_vs_LimeSurvey_CE/5/zh-hant&amp;diff=379647</id>
		<title>Translations:LimeSurvey PRO vs LimeSurvey CE/5/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Translations:LimeSurvey_PRO_vs_LimeSurvey_CE/5/zh-hant&amp;diff=379647"/>
		<updated>2025-01-18T09:43:36Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: Created page with &amp;quot;由於 LimeSurvey 具有通用公共授權並且是一個&amp;lt;u&amp;gt;[https://en.wikipedia.org/wiki/Open_source_software 開源軟體]&amp;lt;/u&amp;gt; ，因此任何人都可以出於商業、私人和教育目的使用、修改和分發它， &amp;#039;&amp;#039;&amp;#039;名稱和徽標除外，它們已註冊為商標&amp;#039;&amp;#039;&amp;#039;。例如，LimeSurvey 可以輕鬆用於建立和分發用於評估大學課程或教授的問卷，也可以將其安裝在私人伺服器上，以便為您的企業進行線上/線下市場研...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;由於 LimeSurvey 具有通用公共授權並且是一個&amp;lt;u&amp;gt;[https://en.wikipedia.org/wiki/Open_source_software 開源軟體]&amp;lt;/u&amp;gt; ，因此任何人都可以出於商業、私人和教育目的使用、修改和分發它， &#039;&#039;&#039;名稱和徽標除外，它們已註冊為商標&#039;&#039;&#039;。例如，LimeSurvey 可以輕鬆用於建立和分發用於評估大學課程或教授的問卷，也可以將其安裝在私人伺服器上，以便為您的企業進行線上/線下市場研究。&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Translations:LimeSurvey_PRO_vs_LimeSurvey_CE/4/zh-hant&amp;diff=379646</id>
		<title>Translations:LimeSurvey PRO vs LimeSurvey CE/4/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Translations:LimeSurvey_PRO_vs_LimeSurvey_CE/4/zh-hant&amp;diff=379646"/>
		<updated>2025-01-18T09:38:39Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: Created page with &amp;quot;&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;File:help.png 要了解有關 LimeSurvey 許可證的更多信息，請訪問 https://community.limesurvey.org/licence-trademark/。&amp;lt;/div&amp;gt;&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;[[File:help.png]] 要了解有關 LimeSurvey 許可證的更多信息，請訪問 https://community.limesurvey.org/licence-trademark/。&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Translations:LimeSurvey_PRO_vs_LimeSurvey_CE/37/zh-hant&amp;diff=379645</id>
		<title>Translations:LimeSurvey PRO vs LimeSurvey CE/37/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Translations:LimeSurvey_PRO_vs_LimeSurvey_CE/37/zh-hant&amp;diff=379645"/>
		<updated>2025-01-18T09:37:43Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: Created page with &amp;quot;&amp;#039;&amp;#039;LimeSurvey GmbH&amp;#039;&amp;#039; 是指圍繞LimeSurvey 軟體建立的公司，以便更好地協調其開發並提供各種 LimeSurvey 付費服務（例如託管、個人化模板、附加套件、技術支援等等）。&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;LimeSurvey GmbH&#039;&#039; 是指圍繞LimeSurvey 軟體建立的公司，以便更好地協調其開發並提供各種 LimeSurvey 付費服務（例如託管、個人化模板、附加套件、技術支援等等）。&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Translations:LimeSurvey_PRO_vs_LimeSurvey_CE/36/zh-hant&amp;diff=379644</id>
		<title>Translations:LimeSurvey PRO vs LimeSurvey CE/36/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Translations:LimeSurvey_PRO_vs_LimeSurvey_CE/36/zh-hant&amp;diff=379644"/>
		<updated>2025-01-18T09:34:24Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: Created page with &amp;quot;&amp;#039;&amp;#039;LimeSurvey&amp;#039;&amp;#039; 以及之後的版本是根據 [https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html GNU 通用公共授權 v2]（GPL v2) 免費發布的一種架設於伺服器上的軟體。&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;LimeSurvey&#039;&#039; 以及之後的版本是根據 [https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html GNU 通用公共授權 v2]（GPL v2) 免費發布的一種架設於伺服器上的軟體。&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Translations:LimeSurvey_PRO_vs_LimeSurvey_CE/3/zh-hant&amp;diff=379643</id>
		<title>Translations:LimeSurvey PRO vs LimeSurvey CE/3/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Translations:LimeSurvey_PRO_vs_LimeSurvey_CE/3/zh-hant&amp;diff=379643"/>
		<updated>2025-01-18T09:26:46Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: Created page with &amp;quot;在開始討論&amp;#039;&amp;#039;&amp;#039;LimeSurvey Cloud&amp;#039;&amp;#039;&amp;#039;和&amp;#039;&amp;#039;&amp;#039;LimeSurvey CE&amp;#039;&amp;#039;&amp;#039; （LimeSurvey 社群版）之前，了解&amp;#039;&amp;#039;LimeSurvey&amp;#039;&amp;#039;和&amp;#039;&amp;#039;LimeSurvey GmbH&amp;#039;&amp;#039;之間的差異非常重要。&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;在開始討論&#039;&#039;&#039;LimeSurvey Cloud&#039;&#039;&#039;和&#039;&#039;&#039;LimeSurvey CE&#039;&#039;&#039; （LimeSurvey 社群版）之前，了解&#039;&#039;LimeSurvey&#039;&#039;和&#039;&#039;LimeSurvey GmbH&#039;&#039;之間的差異非常重要。&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Translations:LimeSurvey_PRO_vs_LimeSurvey_CE/35/zh-hant&amp;diff=379642</id>
		<title>Translations:LimeSurvey PRO vs LimeSurvey CE/35/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Translations:LimeSurvey_PRO_vs_LimeSurvey_CE/35/zh-hant&amp;diff=379642"/>
		<updated>2025-01-18T09:25:20Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;注意：LimeSurvey PRO 現在更名為 LimeSurvey Cloud。&amp;#039;&amp;#039;&amp;#039;&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;注意：LimeSurvey PRO 現在更名為 LimeSurvey Cloud。&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Translations:LimeSurvey_PRO_vs_LimeSurvey_CE/2/zh-hant&amp;diff=379641</id>
		<title>Translations:LimeSurvey PRO vs LimeSurvey CE/2/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Translations:LimeSurvey_PRO_vs_LimeSurvey_CE/2/zh-hant&amp;diff=379641"/>
		<updated>2025-01-18T09:25:04Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: Created page with &amp;quot;=簡介=&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=簡介=&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Translations:LimeSurvey_PRO_vs_LimeSurvey_CE/1/zh-hant&amp;diff=379640</id>
		<title>Translations:LimeSurvey PRO vs LimeSurvey CE/1/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Translations:LimeSurvey_PRO_vs_LimeSurvey_CE/1/zh-hant&amp;diff=379640"/>
		<updated>2025-01-18T09:24:57Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: Created page with &amp;quot;__TOC__&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Translations:LimeSurvey_PRO_vs_LimeSurvey_CE/Page_display_title/zh-hant&amp;diff=379639</id>
		<title>Translations:LimeSurvey PRO vs LimeSurvey CE/Page display title/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Translations:LimeSurvey_PRO_vs_LimeSurvey_CE/Page_display_title/zh-hant&amp;diff=379639"/>
		<updated>2025-01-18T09:24:43Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: Created page with &amp;quot;LimeSurvey PRO 與 LimeSurvey CE 的差異&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;LimeSurvey PRO 與 LimeSurvey CE 的差異&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Translations:Installation_-_LimeSurvey_CE/53/zh-hant&amp;diff=379638</id>
		<title>Translations:Installation - LimeSurvey CE/53/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Translations:Installation_-_LimeSurvey_CE/53/zh-hant&amp;diff=379638"/>
		<updated>2025-01-18T09:20:22Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;對於問卷管理方&#039;&#039;&#039;,我們目前支援 Edge 和所有較新的瀏覽器，如 FF、Chrome、Opera 等等，並需啟用 JavaScript。&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Translations:Installation_-_LimeSurvey_CE/46/zh-hant&amp;diff=379637</id>
		<title>Translations:Installation - LimeSurvey CE/46/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Translations:Installation_-_LimeSurvey_CE/46/zh-hant&amp;diff=379637"/>
		<updated>2025-01-18T09:19:20Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===瀏覽器相容性===&lt;br /&gt;
&#039;&#039;&#039;對於問卷填寫方&#039;&#039;&#039;, 我們目前支援 Edge 和其他較新的瀏覽器如 FF, Chrome, Opera 等等，並需啟用JavaScript。&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Translations:Installation_-_LimeSurvey_CE/9/zh-hant&amp;diff=379636</id>
		<title>Translations:Installation - LimeSurvey CE/9/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Translations:Installation_-_LimeSurvey_CE/9/zh-hant&amp;diff=379636"/>
		<updated>2025-01-18T09:18:03Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;LimeSurvey 6.x&#039;&#039;&#039;的最低需求:&lt;br /&gt;
* 至少 250MB 硬碟空間&lt;br /&gt;
* MariaDB 10.3.38 或更高版本 &#039;&#039;&#039;或&#039;&#039;&#039; MySQL 8 或更高版本 &#039;&#039;&#039;或&#039;&#039;&#039; Microsoft SQL Server 2008 或更高版本 &#039;&#039;&#039;或&#039;&#039;&#039; Postgres 12 或更高版本。&lt;br /&gt;
* PHP 版本需求:&lt;br /&gt;
** LS 6.x 需 PHP 7.4.x ~ 8.3.x&lt;br /&gt;
** LS 5.x 需 PHP 7.2.5 ~ 8.0.x &lt;br /&gt;
** LS 3.x 需 PHP 5.5.9 ~ 7.4.x&lt;br /&gt;
* php.ini 裡 `short_open_tag` 參數設定需設為 `ON`&lt;br /&gt;
* 以下的 PHP 模組/擴充功能需啟用:&lt;br /&gt;
** [[Installation_FAQ/zh-hant#mbstring_(Multibyte_String_Functions)_library_是甚麼?|mbstring (Multibyte String Functions)]] 擴充功能&lt;br /&gt;
** 在Windows環境 需要 MySQL 的PDO驅動程式庫 (pdo_mysql 或 pdo_mysqli) 或 Postgres (pdo_pgsql) 或 MSSQL ([https://php.net/manual/en/ref.pdo-sqlsrv.php pdo_sqlsrv] 而 Linux環境需要 [http://www.php.net/manual/en/ref.pdo-dblib.php pdo_dblib] )。&lt;br /&gt;
** 還有, 我們建議常用的PHP程式庫都應該啟用&lt;br /&gt;
*** hash&lt;br /&gt;
*** session&lt;br /&gt;
*** openssl or mcrypt&lt;br /&gt;
*** fileinfo&lt;br /&gt;
*** SimpleXML&lt;br /&gt;
*** 等等…&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Installation_-_LimeSurvey_CE/zh-hant&amp;diff=377800</id>
		<title>Installation - LimeSurvey CE/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Installation_-_LimeSurvey_CE/zh-hant&amp;diff=377800"/>
		<updated>2024-07-06T08:19:02Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;注意：這些安裝說明適用於 2.0 或更高版本。 1.92 的舊安裝說明可在 [[Installation Version 1.92 or older|此處]] 找到，從舊版升級為新版的說明可在 [[Upgrading from a previous version/zh-hant|此處]] 找到。&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;General&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==概觀==&lt;br /&gt;
&lt;br /&gt;
LimeSurvey 提供了兩種安裝的方法：&lt;br /&gt;
*在您的網頁伺服器上：&amp;lt;br /&amp;gt;在這種情況下，需從步驟 1 開始按照本頁上的說明進行操作。&lt;br /&gt;
&lt;br /&gt;
*在您的本機 Windows PC 上：&amp;lt;br /&amp;gt;如果您想在自己的電腦建立問卷（主要是出於速度、開發或測試原因）並在稍後將其佈署到您的網頁伺服器上，通常只需在本機 PC 上安裝 LimeSurvey。為此，我們準備了一個特殊的 LimeSurvey 安裝包，其中包括網頁伺服器、資料庫、LimeSurvey 應用程式和 [[Installation of the LimeSurvey XAMPP package|如何安裝的說明]]。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Make_sure_you_can_use_LimeSurvey_on_your_website&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==確認 LimeSurvey 能夠在您的伺服器上執行==&lt;br /&gt;
&lt;br /&gt;
確認伺服器符合以下所有需求:&lt;br /&gt;
&lt;br /&gt;
{{Note|安裝過程中也將檢查最低需求！}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;LimeSurvey 6.x&#039;&#039;&#039;的最低需求:&lt;br /&gt;
* 至少 250MB 硬碟空間&lt;br /&gt;
* MariaDB 10.3.38 或更高版本 &#039;&#039;&#039;或&#039;&#039;&#039; MySQL 8 或更高版本 &#039;&#039;&#039;或&#039;&#039;&#039; Microsoft SQL Server 2008 或更高版本 &#039;&#039;&#039;或&#039;&#039;&#039; Postgres 12 或更高版本。&lt;br /&gt;
* PHP 版本需求:&lt;br /&gt;
** LS 6.x 需 PHP 7.4.x ~ 8.x&lt;br /&gt;
** LS 5.x 需 PHP 7.2.5 ~ 8.0.x &lt;br /&gt;
** LS 3.x 需 PHP 5.5.9 ~ 7.4.x&lt;br /&gt;
* php.ini 裡 `short_open_tag` 參數設定需設為 `ON`&lt;br /&gt;
* 以下的 PHP 模組/擴充功能庫需啟用:&lt;br /&gt;
** [[Installation_FAQ/zh-hant#mbstring_(Multibyte_String_Functions)_library_是甚麼?|mbstring (Multibyte String Functions)]] 擴充功能庫&lt;br /&gt;
** 在Windows環境 需要 MySQL 的PDO驅動程式庫 (pdo_mysql 或 pdo_mysqli) 或 Postgres (pdo_pgsql) 或 MSSQL ([https://php.net/manual/en/ref.pdo-sqlsrv.php pdo_sqlsrv] 而 Linux環境需要 [http://www.php.net/manual/en/ref.pdo-dblib.php pdo_dblib] )。&lt;br /&gt;
** 還有, 我們建議常用的PHP程式庫都應該啟用&lt;br /&gt;
*** hash&lt;br /&gt;
*** session&lt;br /&gt;
*** openssl or mcrypt&lt;br /&gt;
*** fileinfo&lt;br /&gt;
*** SimpleXML&lt;br /&gt;
*** 等等…&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;注意：如果您使用 dblib PDO 驅動程式從 Linux 連接到 Windows 伺服器上的 MSSQL 資料庫，則需要正確設定底層的 FreeTDS。請查看[[Troubleshooting]]頁面以獲取更多資訊。&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
選擇性PHP擴充:&lt;br /&gt;
* &#039;&#039;&#039;GD-Library&#039;&#039;&#039; &#039;&#039;&#039;with FreeType support&#039;&#039;&#039; 需安裝才能使用驗證碼、漂亮的統計圖或透過HTML編輯器上傳圖片 - 請參閱[https://php.net/manual/image.setup.php PHP GD-Library Extension documentation]&lt;br /&gt;
* &#039;&#039;&#039;IMAP&#039;&#039;&#039; (pretty standard) 需安裝才能使用 [[Email bounce tracking system|電子郵件退回追蹤系統]] - 請參閱[https://php.net/manual/imap.setup.php PHP IMAP Extension documentation]&lt;br /&gt;
* &#039;&#039;&#039;LDAP&#039;&#039;&#039; 需安裝才能透過LDAP匯入問卷參與者 - 請參閱[https://php.net/manual/en/book.ldap.php PHP LDAP Documentation]&lt;br /&gt;
* &#039;&#039;&#039;Zip&#039;&#039;&#039; (pretty standard) 需安裝才能使用模板上傳、.zip 資源匯入和 Excel 匯出 - 請參閱[https://php.net/manual/zip.setup.php PHP Zip Extension documentation]&lt;br /&gt;
* &#039;&#039;&#039;Zlib&#039;&#039;&#039;（pretty standard）需安裝才能使用 [[ComfortUpdate]] - 請參閱[https://php.net/manual/zlib.setup.php PHP Zlib Extension documentation]&lt;br /&gt;
&lt;br /&gt;
在大多數情況下，您的網頁伺服器供應商或系統管理員能夠協助您解決這些選用元件的問題。&lt;br /&gt;
&lt;br /&gt;
如果您想透過 Microsoft 的 IIS 執行，請查看 [[Installation on XP with IIS]] 可能也會有所幫助。&lt;br /&gt;
&lt;br /&gt;
===瀏覽器相容性===&lt;br /&gt;
&#039;&#039;&#039;對於問卷填寫方&#039;&#039;&#039;, 我們目前支援 IE11 (除了相容性模式) 和其他較新的瀏覽器如 Edge, FireFox, Chrome, Opera 等等，並需啟用JavaScript。 &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;對於問卷管理方&#039;&#039;&#039;,我們目前支援 Edge 和所有較新的瀏覽器，如 FireFox、Chrome、Opera 等等，並需啟用 JavaScript。&amp;lt;u&amp;gt;問卷管理者部份我們不再支援任何 Internet Explorer 版本。&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====螢幕解析度====&lt;br /&gt;
對於問卷填寫方我們支援任何螢幕解析度(360px x 640px 還有以上)。&lt;br /&gt;
對於問卷管理方最小支援螢幕解析度是1280px x 1024px。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Hosting_for_LimeSurvey&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
===LimeSurvey 託管===&lt;br /&gt;
&lt;br /&gt;
LimeSurvey 應該能夠執行於大多數提供 PHP 和 MySQL 的伺服器供應商。如果您想要找現成的 LimeSurvey 版本，您可以嘗試 [https://www.limesurvey.org/editions-and-prices/limesurvey-pro/editions-and-prices-professional LimeSurvey Cloud]，或參考我們的[[LimeSurvey-compatible hosting companies|LimeSurvey相容託管供應商清單]]。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Download_the_LimeSurvey_package&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==下載 LimeSurvey 套件==&lt;br /&gt;
&lt;br /&gt;
[https://community.limesurvey.org/downloads/ 下載]最新穩定的 LimeSurvey zip 安裝套件（您也可以選用 gzip、bz2 和 7zip 套件）並將其儲存到本機磁碟中。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Unpack_the_LimeSurvey_package&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==解壓縮 LimeSurvey 套件==&lt;br /&gt;
&lt;br /&gt;
使用您喜歡的壓縮軟體將 zip 檔案解壓縮到選定的目錄/資料夾中。解壓縮檔案時，請確保檔案的目錄結構（這是大多數解壓縮程式的預設行為）。安裝目錄的路徑名不應包含&#039;(&#039;或&#039;)&#039;特殊字符，但可以包含&#039;&#039;&#039;空格&#039;&#039;&#039;字符。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Collect_information_about_your_server&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==收集您伺服器的資訊==&lt;br /&gt;
&lt;br /&gt;
您需要取得以下資訊才能在網頁伺服器上正確安裝 LimeSurvey：&lt;br /&gt;
*您要建立 limesurvey 的域名來指向它的服務 (例如 &#039;&#039;http://my.domain.com/limesurvey&#039;&#039;)。&lt;br /&gt;
*limesurvey 在伺服器所在的實質位置(例如 &#039;&#039;/home/usr/htdocs/limesurvey&#039;&#039;)。&lt;br /&gt;
*您資料庫的 IP/網路位置(例如 &#039;&#039;localhost&#039;&#039;)。&lt;br /&gt;
*如果您的資料庫使用非標準連接埠，您就要找出埠號。&lt;br /&gt;
*您資料庫使用的使用者名稱及密碼。&lt;br /&gt;
*大部分資料庫的供應商不會讓應用程式建立資料庫，此時您需要自行建立。  如果您是使用這類的供應商，請自行建立一個資料庫(例如 &#039;&#039;limesurvey&#039;&#039;)。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Upload_the_files_to_your_web_server&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==將檔案上傳到您的網頁伺服器==&lt;br /&gt;
&lt;br /&gt;
使用 FTP 程式（例如 FileZilla）連接到您的網頁伺服器並建立一個目錄來儲存程式，然後將解壓縮後的檔案上傳到此目錄。請注意，務必以&#039;&#039;&#039;二進位模式上傳檔案&#039;&#039;&#039;(請從 FTP 程式的設定裡檢查)。使用 ASCII 模式上傳可能會導致預料之外的錯誤（例如 安裝過程中出現「找不到類別」錯誤），而且圖片檔也可能無法正確上傳。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Set_directory_permissions&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==設定目錄權限==&lt;br /&gt;
&lt;br /&gt;
為了使程式正常工作，它需要某些目錄的訪問權限 - 尤其Linux/*nix 系統更是如此。&lt;br /&gt;
* &#039;&#039;&#039;&amp;quot;/limesurvey/tmp&amp;quot;&#039;&#039;&#039; 目錄(包含所有的子目錄和檔案)用於匯入和上傳，應為您的網頁伺服器開啟&#039;&#039;讀和寫&#039;&#039;權限。&lt;br /&gt;
* &#039;&#039;&#039;&amp;quot;/limesurvey/upload/&amp;quot;&#039;&#039;&#039; 目錄(包含所有的子目錄和檔案)也必須為您的網頁伺服器開啟&#039;&#039;讀和寫&#039;&#039;權限，以便啟用圖片和媒體檔案上傳功能。&lt;br /&gt;
* &#039;&#039;&#039;&amp;quot;/limesurvey/application/config/&amp;quot;&#039;&#039;&#039; 目錄也需要讓網頁伺服器有&#039;&#039;讀和寫&#039;&#039; 的權限。&lt;br /&gt;
*其他目錄可以設定為&#039;&#039;唯讀&#039;&#039;。您可能會想要在 Linux/Unix 中將 /limesurvey/admin 目錄中的每個檔案權限設定為&#039;&#039;唯讀&#039;&#039;。&lt;br /&gt;
&lt;br /&gt;
{{Alert|如果您使用的是 Linux，則設定權限取決於您的網頁伺服器配置。例如，如果您在 CentOS 上使用 Apache HTTPD，請鍵入 &#039;&#039;&#039;chmod -R 755 &amp;lt;directory&amp;gt; ; chown -R apache &amp;lt;directory&amp;gt;&#039;&#039;&#039;。這將賦予所有使用者讀取權限，並且您的網頁伺服器將擁有寫入權限。有關 Linux 權限的更多資訊，請查看 [https://www.linux.com/learn/tutorials/309527-understanding-linux-file-permissions 這個連結]。}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Create_a_database_user&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==建立資料庫使用者==&lt;br /&gt;
&lt;br /&gt;
LimeSurvey 將建立一個資料庫及所有需要的資料表。為此，需要一組資料庫的帳號和密碼。我們通常建議建立具有以下權限的帳號：&lt;br /&gt;
&lt;br /&gt;
- MySQL: SELECT, CREATE, INSERT, UPDATE, DELETE, ALTER, DROP, INDEX&lt;br /&gt;
&lt;br /&gt;
- PostgreSQL: SELECT, INSERT, UPDATE, DELETE, TRUNCATE, TRIGGER&lt;br /&gt;
&lt;br /&gt;
- Microsoft SQL Server: &#039;&#039;不明 - 如果您知道如何設定，請填寫於此處&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Run_the_installation_script&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==執行安裝程式==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;進入“example.org/limesurvey/admin”&#039;&#039;&#039;。如果您正確設定了所有內容，LimeSurvey 安裝程式應該會啟動 - 只需按照說明進行操作即可。系統將詢問您是否希望建立資料庫和/或在資料庫內建立資料表。 LimeSurvey 將在資料庫中建立所需的資料表。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Connect_to_the_administration_script_for_the_first_time&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==第一次執行管理者設定程式==&lt;br /&gt;
&lt;br /&gt;
安裝程式執行完後您就可以開始使用問卷系統了！開啟瀏覽器，在網址列輸入 管理後臺的網址。如果您是使用 &#039;limesurvey&#039; 作為目錄名稱來存放它所有的檔案, 網址大概會是如下形式 &amp;quot;http://www.example.com/limesurvey/admin&amp;quot;&lt;br /&gt;
&lt;br /&gt;
您應該會看到登入畫面。預設登入憑證（如果在安裝過程中未更改）為：&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&#039;html&#039;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
使用者：admin&lt;br /&gt;
密碼：password&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;緊記第一次登入後馬上要更改預設的密碼.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Further_configuration&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==進一步的設定==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Caching&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
===快取===&lt;br /&gt;
&lt;br /&gt;
LimeSurvey 預設使用 Yii 做檔案快取，但可以配置為使用其他快取引擎。可能的其他快取有：&lt;br /&gt;
&lt;br /&gt;
* Memcached&lt;br /&gt;
* Redis&lt;br /&gt;
* WinCache&lt;br /&gt;
* XCache&lt;br /&gt;
&lt;br /&gt;
請參閱 [https://www.yiiframework.com/doc/api/1.1/CCache Yii documentation] 以了解完整說明。&lt;br /&gt;
&lt;br /&gt;
從 LimeSurvey 4.0.0 開始，您也可以在 ExpressionScript 中快取運算。根據調查的複雜程度，這可以顯著提高速度。若要啟用 emcache，請將底下的語法新增至您的 config.php 檔案(components array)：&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&#039;emcache&#039; =&amp;gt; array(&#039;class&#039; =&amp;gt; &#039;CFileCache&#039;),&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
與主要的 Yii 快取一樣，LimeSurvey也可以使用其他快取系統。&lt;br /&gt;
&lt;br /&gt;
{{Note| emcache 與隨機問卷不相容，在這種情況下將自動關閉。}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;What_if_I_have_problems...&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==如果我遇到問題怎麼辦...==&lt;br /&gt;
&lt;br /&gt;
正如所有電腦程式，運作過程難免偶有問題，導致運作失常的原因也很多。如果您操作上有麻煩，請先查看 [[Installation FAQ]] 。如果無法找到解決辦法，請將問題發佈到支援論壇 [https://www.limesurvey.org/forum LimeSurvey forums] ，或開一個 [https://www.limesurvey.org/contact-us 維修單] (僅適用於使用LimeSurvey Cloud的客戶)，或是加入我們的 [https://discord.gg/DEjguXn Discord channel] 。&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Translations:Installation_-_LimeSurvey_CE/52/zh-hant&amp;diff=377799</id>
		<title>Translations:Installation - LimeSurvey CE/52/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Translations:Installation_-_LimeSurvey_CE/52/zh-hant&amp;diff=377799"/>
		<updated>2024-07-06T08:18:14Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;注意：這些安裝說明適用於 2.0 或更高版本。 1.92 的舊安裝說明可在 [[Installation Version 1.92 or older|此處]] 找到，從舊版升級為新版的說明可在 [[Upgrading from a previous version/zh-hant|此處]] 找到。&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Upgrading_from_a_previous_version/zh-hant&amp;diff=377798</id>
		<title>Upgrading from a previous version/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Upgrading_from_a_previous_version/zh-hant&amp;diff=377798"/>
		<updated>2024-07-06T08:15:02Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: Created page with &amp;quot;&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;&amp;#039;&amp;#039;&amp;#039;升級後的特殊檢查&amp;#039;&amp;#039;&amp;#039;: *&amp;#039;&amp;#039;&amp;#039;從v1.53之前的版本開始&amp;#039;&amp;#039;&amp;#039;：從v1.53之前的版本升級到最新版本時，請檢查每個使用者的&amp;#039;&amp;#039;&amp;#039;全域使用者權限&amp;#039;&amp;#039;&amp;#039;。 v1.53 中引入了新的&amp;#039;&amp;#039;&amp;#039;超級管理者&amp;#039;&amp;#039;&amp;#039;權限，可以為使用者提供與安裝期間建立的主管理帳戶相同的權限。升級程序無法猜測出應該向哪個使用者授予此權限。出於這個原因，請人工指定。&amp;lt;/div&amp;gt;&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt; &amp;lt;div style=&amp;quot;float:right;&amp;quot;&amp;gt;&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;附加頁：{toc}&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt; __TOC__&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Before_you_start...&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=開始之前...=&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&#039;color:#FF0000&#039;&amp;gt;....閱讀此內容，因為它非常重要：&#039;&#039;&#039;務必備份目前的安裝檔案和資料庫！&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
您可以使用資料庫管理工具例如 [https://www.phpmyadmin.net phpMyAdmin] 和檔案管理器來執行此操作！&lt;br /&gt;
如果您不知道怎麼備份，請勿繼續下面的操作並尋找其他人的幫助。&lt;br /&gt;
&lt;br /&gt;
==建議使用 ComfortUpdate==&lt;br /&gt;
&#039;&#039;&#039;最簡單/安全的升級方法就是使用我們的[[ComfortUpdate]]服務。&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Upgrade_instructions_(from_2.x_or_newer_to_any_later_version)&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=升級說明（從2.x或更高版本到任何之後的版本）=&lt;br /&gt;
&lt;br /&gt;
請按照以下說明操作：&lt;br /&gt;
*備份您的檔案和資料庫([[Upgrading from a previous version/zh-hant#Before you start...|我們之前有提過嗎?]])。&lt;br /&gt;
*刪除所有舊文件/資料夾，除了以下檔案：&lt;br /&gt;
**/application/config/security.php - &#039;&#039;&#039;很重要!!這是 LimeSurvey（版本 4 及更高版本）中所有加密資料的金鑰&#039;&#039;&#039;&lt;br /&gt;
**/application/config/config.php;&lt;br /&gt;
**/upload 目錄&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;[[File:help.png]]&#039;&#039;&#039;注意：&#039;&#039;&#039; 如果 /upload/templates 中有任何自訂模板，請確保「更新」這些模板以應對使用新 LimeSurvey 版本所造成的變化。檢查此類變更的最簡單方法是將舊範本與新版本的預設範本進行檔案比較。如果您發現自訂之外的任何差異，則需要更新。&amp;lt;/div&amp;gt;&lt;br /&gt;
*將新檔案從新的 LimeSurvey 套件複製到現有位置。&lt;br /&gt;
*在瀏覽器開啟管理者介面 (e.g. https://www.example.com/limesurvey/admin) 並檢查是否需要升級資料庫架構。&lt;br /&gt;
*完成升級後&#039;&#039;&#039;清空您瀏覽器的快取和Cookies&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Instructions_for_older_versions&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=更舊版本的說明=&lt;br /&gt;
&lt;br /&gt;
不幸的是，有一些事情需要您再想想，所以請仔細閱讀以下說明。&lt;br /&gt;
&lt;br /&gt;
==Upgrading from version 1.50 or later to any later 2.xx version==&lt;br /&gt;
*[https://www.limesurvey.org/about-limesurvey/download Download] the latest version of LimeSurvey&lt;br /&gt;
*Backup your files and database ([[Upgrading from a previous version#Before you start...|did we already mention that?]]).&lt;br /&gt;
* Replace all the installation directory files&lt;br /&gt;
** Delete all old files in the existing installation directory&lt;br /&gt;
** Upload and unpack the new files of the new version into the same installation directory&lt;br /&gt;
** 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&lt;br /&gt;
** Copy your /upload directory back to the old location&lt;br /&gt;
** Double-check the &#039;&#039;&#039;permissions&#039;&#039;&#039; set on the directories (write access to &#039;&#039;&#039;/tmp&#039;&#039;&#039;, &#039;&#039;&#039;/upload&#039;&#039;&#039;, and their subdirectories is required) as described in the [[Installation#Set directory permissions|installation wiki]]&lt;br /&gt;
** Open http://&amp;lt;yourdomain&amp;gt;/&amp;lt;yourlimesurveydir&amp;gt;/admin in your browser and follow the instructions (You will find the database data in the old config.php). The existing database will be automatically detected and if necessary, upgraded after confirmation.&lt;br /&gt;
* Check if any special manual checks apply as listed below&lt;br /&gt;
* &#039;&#039;&#039;Now, clear your browser cache and cookies&#039;&#039;&#039; and you are good to go&lt;br /&gt;
&lt;br /&gt;
{{Alert|title=Attention|text=請注意，範本結構隨著從 2.0x 更新到 2.50 或更高版本而變化。您的舊模板將不再起作用，因為模板系統現在使用響應式模板。}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;&#039;&#039;&#039;Special checks after an upgrade&#039;&#039;&#039;:&lt;br /&gt;
*&#039;&#039;&#039;from any earlier version to 2.xx&#039;&#039;&#039;: Proper question codes are mandatory now. After upgrading the installation, check the survey logic of all surveys and correct the codes where necessary&lt;br /&gt;
*&#039;&#039;&#039;from a version earlier than v1.53&#039;&#039;&#039;: When upgrading from a version before v1.53 to the latest version, please check the &#039;&#039;&#039;global user rights&#039;&#039;&#039; of each user. There was a new &#039;&#039;&#039;superadmin&#039;&#039;&#039; right introduced in v1.53 that can give a user the same privilege as the master administration account created during the installation. 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.&lt;br /&gt;
*&#039;&#039;&#039;from any earlier version to v2.06&#039;&#039;&#039;: From 2.05 to 2.06, some unused permissions when editing global permissions for &#039;surveys&#039; were activated. For example, if a user had only the &#039;create&#039; permission in 2.05, the other permissions located to the right of &#039;create&#039; 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 &#039;original&#039; ones after the update. If yes, please edit them accordingly.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Upgrading from version 1.50 or later to any later 1.xx version==&lt;br /&gt;
*[https://www.limesurvey.org/about-limesurvey/download Download] the desired version of LimeSurvey&lt;br /&gt;
* Backup your files and database ([[Upgrading from a previous version#Before you start...|did we already mention that?]]).&lt;br /&gt;
* Replace all the installation directory files&lt;br /&gt;
** Delete all old files in the existing installation directory&lt;br /&gt;
** Upload and unpack the new code version into the same installation directory&lt;br /&gt;
** Edit or replace the &#039;&#039;&#039;config.php&#039;&#039;&#039; file:&lt;br /&gt;
*** If your previous version was &amp;lt; 1.70: Edit the new &#039;&#039;&#039;config.php&#039;&#039;&#039; in order to reflect the changes from the backup &#039;&#039;&#039;config.php&#039;&#039;&#039; file. &#039;&#039;&#039;Do not just overwrite the new &#039;&#039;&#039;config.php&#039;&#039;&#039; with your old one!&#039;&#039;&#039;&lt;br /&gt;
*** If your previous version was &amp;gt;= 1.70: Simply replace the new &#039;&#039;&#039;config.php&#039;&#039;&#039; with your backup &#039;&#039;&#039;config.php&#039;&#039;&#039; file (as the file format has not changed)&lt;br /&gt;
** 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&lt;br /&gt;
** Copy your /upload directory back to the old location&lt;br /&gt;
** Double-check the &#039;&#039;&#039;permissions&#039;&#039;&#039; set on the directories of LimeSurvey (write access to &#039;&#039;&#039;/tmp&#039;&#039;&#039;, &#039;&#039;&#039;/upload&#039;&#039;&#039;, and to their subdirectories is required) as described in the [[Installation#Set Directory permissions|installation wiki]]&lt;br /&gt;
* Finish the installation/upgrade process&lt;br /&gt;
** Once you open the URL to your LimeSurvey administration, the database tables will be updated after confirmation&lt;br /&gt;
** Remove or rename the /admin/install directory as/if instructed by the installation script&lt;br /&gt;
** Check if any special manual checks apply (as listed below)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;&#039;&#039;&#039;升級後的特殊檢查&#039;&#039;&#039;:&lt;br /&gt;
*&#039;&#039;&#039;從v1.53之前的版本開始&#039;&#039;&#039;：從v1.53之前的版本升級到最新版本時，請檢查每個使用者的&#039;&#039;&#039;全域使用者權限&#039;&#039;&#039;。 v1.53 中引入了新的&#039;&#039;&#039;超級管理者&#039;&#039;&#039;權限，可以為使用者提供與安裝期間建立的主管理帳戶相同的權限。升級程序無法猜測出應該向哪個使用者授予此權限。出於這個原因，請人工指定。&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Upgrading_from_a_version_earlier_than_v1.50_(v1.0_through_v1.44)&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==從 v1.50 之前的版本升級（v1.0 到 v1.44）==&lt;br /&gt;
&lt;br /&gt;
由於資料結構和許多其他內容發生了變化，&#039;&#039;&#039;從其他更早的版本升級到1.50是&amp;lt;u&amp;gt;不可行&amp;lt;/u&amp;gt;的&#039;&#039;&#039;。如果您留有*.sql 檔案格式的舊版結構文件，將這些文件轉換為新版本的唯一方法是安裝[http://www.limesurvey.org/en/archived-releases/289-limesurvey150zip 版本1.50] ，接著匯入 .sql 文件，然後將該問卷版本升級到最新的 LimeSurvey 版本。檢查[[Transferring an installation|如何轉移安裝]]以了解更多詳細資訊。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Upgrading_using_CLI&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
= 使用 CLI 升級 =&lt;br /&gt;
&lt;br /&gt;
您可以透過 PHP CLI 升級資料庫： &amp;lt;code&amp;gt;php application/commands/console.php updatedb&amp;lt;/code&amp;gt;。 這允許您透過命令列自動升級系統（例如，在 crontab 中），但不建議這樣做。&lt;br /&gt;
&lt;br /&gt;
= 手動更新資料庫升級失敗/ComfortUpdate=&lt;br /&gt;
有時，即使您所做的一切正確，但在資料庫升級過程中總是會發生意外。&lt;br /&gt;
可能是因為不同的資料庫版本、意外的資料格式或內容、不尋常的配置或我們的測試中未出現的任何其他內容（是的，我們測試了很多！）&lt;br /&gt;
&lt;br /&gt;
如果您在資料庫更新期間發生錯誤並且您的 LimeSurvey 實例最終處於不可使用的狀態，您希望返回到先前的版本。&lt;br /&gt;
這邊預設您仍然擁有資料庫和檔案備份，無論是來自常規備份還是由 Comfortupdate 建立的備份。&lt;br /&gt;
&lt;br /&gt;
請執行以下步驟：&lt;br /&gt;
&lt;br /&gt;
*備份現有的 LimeSurvey 目錄和資料庫（是的，再做一次 - 我們叫它第二個備份）&lt;br /&gt;
*從原來的(第一個備份)還原檔案到現存的資料夾(直接覆蓋它們沒關係)&lt;br /&gt;
*刪除目前的資料庫然後從(第一個備份)還原資料&lt;br /&gt;
&lt;br /&gt;
就是這樣。一切都應該恢復正常。&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;關於報告此問題的說明：&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
如果您遇到這樣的問題，請務必在我們的錯誤追蹤網站裡回報此問題：https://bugs.limesurvey.org&lt;br /&gt;
&lt;br /&gt;
未回報的錯誤就是不會被修復的錯誤。請不要等別人回報此錯誤。如果您發現該錯誤已被回報，您還可以透過在錯誤追蹤器中將其標記為「是的，此錯誤影響我」來幫助提高錯誤的優先順序。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;FAQ&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=常見問題=&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Can_I_upgrade_even_if_I_have_active_surveys?&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==即使我有進行中的問卷，我也可以升級嗎？==&lt;br /&gt;
&lt;br /&gt;
是的你可以升級。上面的詳細說明中可能會提到例外。我們強烈建議您在升級後測試您的問卷，以確定您設計的模板是否可以正常運作。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;How_to_convert_*.sql/*.csv_survey_structure_files_to_the_latest_LimeSurvey_version?&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==如何將*.sql/*.csv問卷結構檔轉換為最新的LimeSurvey版本？==&lt;br /&gt;
&lt;br /&gt;
安裝版本 1.50，匯入文件，並將調查結構匯出成為較新的 .csv 格式。然後安裝最新版本 2.x 並匯入 .csv 格式並將其匯出為目前的 .lss 格式。&lt;br /&gt;
&lt;br /&gt;
==Survey theme incompatibility==&lt;br /&gt;
With certain major version updates any custom survey themes will not be compatible, anymore:&lt;br /&gt;
&lt;br /&gt;
* Update from LimeSurvey 2.6 or lower to LimeSurvey 2.50&lt;br /&gt;
* Update from LimeSurvey 5.x or lower to LimeSurvey 6.x&lt;br /&gt;
&lt;br /&gt;
==Error &amp;quot;Multiple primary key defined&amp;quot; when updating MySQL database==&lt;br /&gt;
If you encounter this error, please check the setting &#039;&#039;sql_generate_invisible_primary_key&#039;&#039; in your MySQL server variables. This is most likely set to &#039;&#039;ON&#039;&#039;, but should be set to &#039;&#039;OFF&#039;&#039;. Then restore your database from the backup (as explained above) and try again.&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Translations:Upgrading_from_a_previous_version/12/zh-hant&amp;diff=377797</id>
		<title>Translations:Upgrading from a previous version/12/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Translations:Upgrading_from_a_previous_version/12/zh-hant&amp;diff=377797"/>
		<updated>2024-07-06T08:14:32Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: Created page with &amp;quot;&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;&amp;#039;&amp;#039;&amp;#039;升級後的特殊檢查&amp;#039;&amp;#039;&amp;#039;: *&amp;#039;&amp;#039;&amp;#039;從v1.53之前的版本開始&amp;#039;&amp;#039;&amp;#039;：從v1.53之前的版本升級到最新版本時，請檢查每個使用者的&amp;#039;&amp;#039;&amp;#039;全域使用者權限&amp;#039;&amp;#039;&amp;#039;。 v1.53 中引入了新的&amp;#039;&amp;#039;&amp;#039;超級管理者&amp;#039;&amp;#039;&amp;#039;權限，可以為使用者提供與安裝期間建立的主管理帳戶相同的權限。升級程序無法猜測出應該向哪個使用者授予此權限。出於這個原因，請人工指定。&amp;lt;/div&amp;gt;&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;&#039;&#039;&#039;升級後的特殊檢查&#039;&#039;&#039;:&lt;br /&gt;
*&#039;&#039;&#039;從v1.53之前的版本開始&#039;&#039;&#039;：從v1.53之前的版本升級到最新版本時，請檢查每個使用者的&#039;&#039;&#039;全域使用者權限&#039;&#039;&#039;。 v1.53 中引入了新的&#039;&#039;&#039;超級管理者&#039;&#039;&#039;權限，可以為使用者提供與安裝期間建立的主管理帳戶相同的權限。升級程序無法猜測出應該向哪個使用者授予此權限。出於這個原因，請人工指定。&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Upgrading_from_a_previous_version/zh-hant&amp;diff=377796</id>
		<title>Upgrading from a previous version/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Upgrading_from_a_previous_version/zh-hant&amp;diff=377796"/>
		<updated>2024-07-06T08:09:02Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: Created page with &amp;quot;= 手動更新資料庫升級失敗/ComfortUpdate= 有時，即使您所做的一切正確，但在資料庫升級過程中總是會發生意外。 可能是因為不同的資料庫版本、意外的資料格式或內容、不尋常的配置或我們的測試中未出現的任何其他內容（是的，我們測試了很多！）&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt; &amp;lt;div style=&amp;quot;float:right;&amp;quot;&amp;gt;&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;附加頁：{toc}&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt; __TOC__&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Before_you_start...&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=開始之前...=&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&#039;color:#FF0000&#039;&amp;gt;....閱讀此內容，因為它非常重要：&#039;&#039;&#039;務必備份目前的安裝檔案和資料庫！&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
您可以使用資料庫管理工具例如 [https://www.phpmyadmin.net phpMyAdmin] 和檔案管理器來執行此操作！&lt;br /&gt;
如果您不知道怎麼備份，請勿繼續下面的操作並尋找其他人的幫助。&lt;br /&gt;
&lt;br /&gt;
==建議使用 ComfortUpdate==&lt;br /&gt;
&#039;&#039;&#039;最簡單/安全的升級方法就是使用我們的[[ComfortUpdate]]服務。&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Upgrade_instructions_(from_2.x_or_newer_to_any_later_version)&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=升級說明（從2.x或更高版本到任何之後的版本）=&lt;br /&gt;
&lt;br /&gt;
請按照以下說明操作：&lt;br /&gt;
*備份您的檔案和資料庫([[Upgrading from a previous version/zh-hant#Before you start...|我們之前有提過嗎?]])。&lt;br /&gt;
*刪除所有舊文件/資料夾，除了以下檔案：&lt;br /&gt;
**/application/config/security.php - &#039;&#039;&#039;很重要!!這是 LimeSurvey（版本 4 及更高版本）中所有加密資料的金鑰&#039;&#039;&#039;&lt;br /&gt;
**/application/config/config.php;&lt;br /&gt;
**/upload 目錄&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;[[File:help.png]]&#039;&#039;&#039;注意：&#039;&#039;&#039; 如果 /upload/templates 中有任何自訂模板，請確保「更新」這些模板以應對使用新 LimeSurvey 版本所造成的變化。檢查此類變更的最簡單方法是將舊範本與新版本的預設範本進行檔案比較。如果您發現自訂之外的任何差異，則需要更新。&amp;lt;/div&amp;gt;&lt;br /&gt;
*將新檔案從新的 LimeSurvey 套件複製到現有位置。&lt;br /&gt;
*在瀏覽器開啟管理者介面 (e.g. https://www.example.com/limesurvey/admin) 並檢查是否需要升級資料庫架構。&lt;br /&gt;
*完成升級後&#039;&#039;&#039;清空您瀏覽器的快取和Cookies&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Instructions_for_older_versions&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=更舊版本的說明=&lt;br /&gt;
&lt;br /&gt;
不幸的是，有一些事情需要您再想想，所以請仔細閱讀以下說明。&lt;br /&gt;
&lt;br /&gt;
==Upgrading from version 1.50 or later to any later 2.xx version==&lt;br /&gt;
*[https://www.limesurvey.org/about-limesurvey/download Download] the latest version of LimeSurvey&lt;br /&gt;
*Backup your files and database ([[Upgrading from a previous version#Before you start...|did we already mention that?]]).&lt;br /&gt;
* Replace all the installation directory files&lt;br /&gt;
** Delete all old files in the existing installation directory&lt;br /&gt;
** Upload and unpack the new files of the new version into the same installation directory&lt;br /&gt;
** 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&lt;br /&gt;
** Copy your /upload directory back to the old location&lt;br /&gt;
** Double-check the &#039;&#039;&#039;permissions&#039;&#039;&#039; set on the directories (write access to &#039;&#039;&#039;/tmp&#039;&#039;&#039;, &#039;&#039;&#039;/upload&#039;&#039;&#039;, and their subdirectories is required) as described in the [[Installation#Set directory permissions|installation wiki]]&lt;br /&gt;
** Open http://&amp;lt;yourdomain&amp;gt;/&amp;lt;yourlimesurveydir&amp;gt;/admin in your browser and follow the instructions (You will find the database data in the old config.php). The existing database will be automatically detected and if necessary, upgraded after confirmation.&lt;br /&gt;
* Check if any special manual checks apply as listed below&lt;br /&gt;
* &#039;&#039;&#039;Now, clear your browser cache and cookies&#039;&#039;&#039; and you are good to go&lt;br /&gt;
&lt;br /&gt;
{{Alert|title=Attention|text=請注意，範本結構隨著從 2.0x 更新到 2.50 或更高版本而變化。您的舊模板將不再起作用，因為模板系統現在使用響應式模板。}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;&#039;&#039;&#039;Special checks after an upgrade&#039;&#039;&#039;:&lt;br /&gt;
*&#039;&#039;&#039;from any earlier version to 2.xx&#039;&#039;&#039;: Proper question codes are mandatory now. After upgrading the installation, check the survey logic of all surveys and correct the codes where necessary&lt;br /&gt;
*&#039;&#039;&#039;from a version earlier than v1.53&#039;&#039;&#039;: When upgrading from a version before v1.53 to the latest version, please check the &#039;&#039;&#039;global user rights&#039;&#039;&#039; of each user. There was a new &#039;&#039;&#039;superadmin&#039;&#039;&#039; right introduced in v1.53 that can give a user the same privilege as the master administration account created during the installation. 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.&lt;br /&gt;
*&#039;&#039;&#039;from any earlier version to v2.06&#039;&#039;&#039;: From 2.05 to 2.06, some unused permissions when editing global permissions for &#039;surveys&#039; were activated. For example, if a user had only the &#039;create&#039; permission in 2.05, the other permissions located to the right of &#039;create&#039; 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 &#039;original&#039; ones after the update. If yes, please edit them accordingly.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Upgrading from version 1.50 or later to any later 1.xx version==&lt;br /&gt;
*[https://www.limesurvey.org/about-limesurvey/download Download] the desired version of LimeSurvey&lt;br /&gt;
* Backup your files and database ([[Upgrading from a previous version#Before you start...|did we already mention that?]]).&lt;br /&gt;
* Replace all the installation directory files&lt;br /&gt;
** Delete all old files in the existing installation directory&lt;br /&gt;
** Upload and unpack the new code version into the same installation directory&lt;br /&gt;
** Edit or replace the &#039;&#039;&#039;config.php&#039;&#039;&#039; file:&lt;br /&gt;
*** If your previous version was &amp;lt; 1.70: Edit the new &#039;&#039;&#039;config.php&#039;&#039;&#039; in order to reflect the changes from the backup &#039;&#039;&#039;config.php&#039;&#039;&#039; file. &#039;&#039;&#039;Do not just overwrite the new &#039;&#039;&#039;config.php&#039;&#039;&#039; with your old one!&#039;&#039;&#039;&lt;br /&gt;
*** If your previous version was &amp;gt;= 1.70: Simply replace the new &#039;&#039;&#039;config.php&#039;&#039;&#039; with your backup &#039;&#039;&#039;config.php&#039;&#039;&#039; file (as the file format has not changed)&lt;br /&gt;
** 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&lt;br /&gt;
** Copy your /upload directory back to the old location&lt;br /&gt;
** Double-check the &#039;&#039;&#039;permissions&#039;&#039;&#039; set on the directories of LimeSurvey (write access to &#039;&#039;&#039;/tmp&#039;&#039;&#039;, &#039;&#039;&#039;/upload&#039;&#039;&#039;, and to their subdirectories is required) as described in the [[Installation#Set Directory permissions|installation wiki]]&lt;br /&gt;
* Finish the installation/upgrade process&lt;br /&gt;
** Once you open the URL to your LimeSurvey administration, the database tables will be updated after confirmation&lt;br /&gt;
** Remove or rename the /admin/install directory as/if instructed by the installation script&lt;br /&gt;
** Check if any special manual checks apply (as listed below)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;&#039;&#039;&#039;Special checks after an upgrade&#039;&#039;&#039;:&lt;br /&gt;
*&#039;&#039;&#039;From a version earlier than v1.53&#039;&#039;&#039;: When upgrading from a version before v1.53 to the latest version, please check the &#039;&#039;&#039;global user rights&#039;&#039;&#039; of each user. There was a new &#039;&#039;&#039;superadmin&#039;&#039;&#039; 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.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Upgrading_from_a_version_earlier_than_v1.50_(v1.0_through_v1.44)&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==從 v1.50 之前的版本升級（v1.0 到 v1.44）==&lt;br /&gt;
&lt;br /&gt;
由於資料結構和許多其他內容發生了變化，&#039;&#039;&#039;從其他更早的版本升級到1.50是&amp;lt;u&amp;gt;不可行&amp;lt;/u&amp;gt;的&#039;&#039;&#039;。如果您留有*.sql 檔案格式的舊版結構文件，將這些文件轉換為新版本的唯一方法是安裝[http://www.limesurvey.org/en/archived-releases/289-limesurvey150zip 版本1.50] ，接著匯入 .sql 文件，然後將該問卷版本升級到最新的 LimeSurvey 版本。檢查[[Transferring an installation|如何轉移安裝]]以了解更多詳細資訊。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Upgrading_using_CLI&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
= 使用 CLI 升級 =&lt;br /&gt;
&lt;br /&gt;
您可以透過 PHP CLI 升級資料庫： &amp;lt;code&amp;gt;php application/commands/console.php updatedb&amp;lt;/code&amp;gt;。 這允許您透過命令列自動升級系統（例如，在 crontab 中），但不建議這樣做。&lt;br /&gt;
&lt;br /&gt;
= 手動更新資料庫升級失敗/ComfortUpdate=&lt;br /&gt;
有時，即使您所做的一切正確，但在資料庫升級過程中總是會發生意外。&lt;br /&gt;
可能是因為不同的資料庫版本、意外的資料格式或內容、不尋常的配置或我們的測試中未出現的任何其他內容（是的，我們測試了很多！）&lt;br /&gt;
&lt;br /&gt;
如果您在資料庫更新期間發生錯誤並且您的 LimeSurvey 實例最終處於不可使用的狀態，您希望返回到先前的版本。&lt;br /&gt;
這邊預設您仍然擁有資料庫和檔案備份，無論是來自常規備份還是由 Comfortupdate 建立的備份。&lt;br /&gt;
&lt;br /&gt;
請執行以下步驟：&lt;br /&gt;
&lt;br /&gt;
*備份現有的 LimeSurvey 目錄和資料庫（是的，再做一次 - 我們叫它第二個備份）&lt;br /&gt;
*從原來的(第一個備份)還原檔案到現存的資料夾(直接覆蓋它們沒關係)&lt;br /&gt;
*刪除目前的資料庫然後從(第一個備份)還原資料&lt;br /&gt;
&lt;br /&gt;
就是這樣。一切都應該恢復正常。&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;關於報告此問題的說明：&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
如果您遇到這樣的問題，請務必在我們的錯誤追蹤網站裡回報此問題：https://bugs.limesurvey.org&lt;br /&gt;
&lt;br /&gt;
未回報的錯誤就是不會被修復的錯誤。請不要等別人回報此錯誤。如果您發現該錯誤已被回報，您還可以透過在錯誤追蹤器中將其標記為「是的，此錯誤影響我」來幫助提高錯誤的優先順序。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;FAQ&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=常見問題=&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Can_I_upgrade_even_if_I_have_active_surveys?&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==即使我有進行中的問卷，我也可以升級嗎？==&lt;br /&gt;
&lt;br /&gt;
是的你可以升級。上面的詳細說明中可能會提到例外。我們強烈建議您在升級後測試您的問卷，以確定您設計的模板是否可以正常運作。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;How_to_convert_*.sql/*.csv_survey_structure_files_to_the_latest_LimeSurvey_version?&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==如何將*.sql/*.csv問卷結構檔轉換為最新的LimeSurvey版本？==&lt;br /&gt;
&lt;br /&gt;
安裝版本 1.50，匯入文件，並將調查結構匯出成為較新的 .csv 格式。然後安裝最新版本 2.x 並匯入 .csv 格式並將其匯出為目前的 .lss 格式。&lt;br /&gt;
&lt;br /&gt;
==Survey theme incompatibility==&lt;br /&gt;
With certain major version updates any custom survey themes will not be compatible, anymore:&lt;br /&gt;
&lt;br /&gt;
* Update from LimeSurvey 2.6 or lower to LimeSurvey 2.50&lt;br /&gt;
* Update from LimeSurvey 5.x or lower to LimeSurvey 6.x&lt;br /&gt;
&lt;br /&gt;
==Error &amp;quot;Multiple primary key defined&amp;quot; when updating MySQL database==&lt;br /&gt;
If you encounter this error, please check the setting &#039;&#039;sql_generate_invisible_primary_key&#039;&#039; in your MySQL server variables. This is most likely set to &#039;&#039;ON&#039;&#039;, but should be set to &#039;&#039;OFF&#039;&#039;. Then restore your database from the backup (as explained above) and try again.&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Translations:Upgrading_from_a_previous_version/29/zh-hant&amp;diff=377795</id>
		<title>Translations:Upgrading from a previous version/29/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Translations:Upgrading_from_a_previous_version/29/zh-hant&amp;diff=377795"/>
		<updated>2024-07-06T08:08:50Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: Created page with &amp;quot;= 手動更新資料庫升級失敗/ComfortUpdate= 有時，即使您所做的一切正確，但在資料庫升級過程中總是會發生意外。 可能是因為不同的資料庫版本、意外的資料格式或內容、不尋常的配置或我們的測試中未出現的任何其他內容（是的，我們測試了很多！）&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= 手動更新資料庫升級失敗/ComfortUpdate=&lt;br /&gt;
有時，即使您所做的一切正確，但在資料庫升級過程中總是會發生意外。&lt;br /&gt;
可能是因為不同的資料庫版本、意外的資料格式或內容、不尋常的配置或我們的測試中未出現的任何其他內容（是的，我們測試了很多！）&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Upgrading_from_a_previous_version/zh-hant&amp;diff=377794</id>
		<title>Upgrading from a previous version/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Upgrading_from_a_previous_version/zh-hant&amp;diff=377794"/>
		<updated>2024-07-06T07:57:01Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: Created page with &amp;quot;由於資料結構和許多其他內容發生了變化，&amp;#039;&amp;#039;&amp;#039;從其他更早的版本升級到1.50是&amp;lt;u&amp;gt;不可行&amp;lt;/u&amp;gt;的&amp;#039;&amp;#039;&amp;#039;。如果您留有*.sql 檔案格式的舊版結構文件，將這些文件轉換為新版本的唯一方法是安裝[http://www.limesurvey.org/en/archived-releases/289-limesurvey150zip 版本1.50] ，接著匯入 .sql 文件，然後將該問卷版本升級到最新的 LimeSurvey 版本。檢查如何轉移安裝以...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt; &amp;lt;div style=&amp;quot;float:right;&amp;quot;&amp;gt;&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;附加頁：{toc}&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt; __TOC__&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Before_you_start...&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=開始之前...=&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&#039;color:#FF0000&#039;&amp;gt;....閱讀此內容，因為它非常重要：&#039;&#039;&#039;務必備份目前的安裝檔案和資料庫！&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
您可以使用資料庫管理工具例如 [https://www.phpmyadmin.net phpMyAdmin] 和檔案管理器來執行此操作！&lt;br /&gt;
如果您不知道怎麼備份，請勿繼續下面的操作並尋找其他人的幫助。&lt;br /&gt;
&lt;br /&gt;
==建議使用 ComfortUpdate==&lt;br /&gt;
&#039;&#039;&#039;最簡單/安全的升級方法就是使用我們的[[ComfortUpdate]]服務。&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Upgrade_instructions_(from_2.x_or_newer_to_any_later_version)&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=升級說明（從2.x或更高版本到任何之後的版本）=&lt;br /&gt;
&lt;br /&gt;
請按照以下說明操作：&lt;br /&gt;
*備份您的檔案和資料庫([[Upgrading from a previous version/zh-hant#Before you start...|我們之前有提過嗎?]])。&lt;br /&gt;
*刪除所有舊文件/資料夾，除了以下檔案：&lt;br /&gt;
**/application/config/security.php - &#039;&#039;&#039;很重要!!這是 LimeSurvey（版本 4 及更高版本）中所有加密資料的金鑰&#039;&#039;&#039;&lt;br /&gt;
**/application/config/config.php;&lt;br /&gt;
**/upload 目錄&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;[[File:help.png]]&#039;&#039;&#039;注意：&#039;&#039;&#039; 如果 /upload/templates 中有任何自訂模板，請確保「更新」這些模板以應對使用新 LimeSurvey 版本所造成的變化。檢查此類變更的最簡單方法是將舊範本與新版本的預設範本進行檔案比較。如果您發現自訂之外的任何差異，則需要更新。&amp;lt;/div&amp;gt;&lt;br /&gt;
*將新檔案從新的 LimeSurvey 套件複製到現有位置。&lt;br /&gt;
*在瀏覽器開啟管理者介面 (e.g. https://www.example.com/limesurvey/admin) 並檢查是否需要升級資料庫架構。&lt;br /&gt;
*完成升級後&#039;&#039;&#039;清空您瀏覽器的快取和Cookies&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Instructions_for_older_versions&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=更舊版本的說明=&lt;br /&gt;
&lt;br /&gt;
不幸的是，有一些事情需要您再想想，所以請仔細閱讀以下說明。&lt;br /&gt;
&lt;br /&gt;
==Upgrading from version 1.50 or later to any later 2.xx version==&lt;br /&gt;
*[https://www.limesurvey.org/about-limesurvey/download Download] the latest version of LimeSurvey&lt;br /&gt;
*Backup your files and database ([[Upgrading from a previous version#Before you start...|did we already mention that?]]).&lt;br /&gt;
* Replace all the installation directory files&lt;br /&gt;
** Delete all old files in the existing installation directory&lt;br /&gt;
** Upload and unpack the new files of the new version into the same installation directory&lt;br /&gt;
** 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&lt;br /&gt;
** Copy your /upload directory back to the old location&lt;br /&gt;
** Double-check the &#039;&#039;&#039;permissions&#039;&#039;&#039; set on the directories (write access to &#039;&#039;&#039;/tmp&#039;&#039;&#039;, &#039;&#039;&#039;/upload&#039;&#039;&#039;, and their subdirectories is required) as described in the [[Installation#Set directory permissions|installation wiki]]&lt;br /&gt;
** Open http://&amp;lt;yourdomain&amp;gt;/&amp;lt;yourlimesurveydir&amp;gt;/admin in your browser and follow the instructions (You will find the database data in the old config.php). The existing database will be automatically detected and if necessary, upgraded after confirmation.&lt;br /&gt;
* Check if any special manual checks apply as listed below&lt;br /&gt;
* &#039;&#039;&#039;Now, clear your browser cache and cookies&#039;&#039;&#039; and you are good to go&lt;br /&gt;
&lt;br /&gt;
{{Alert|title=Attention|text=請注意，範本結構隨著從 2.0x 更新到 2.50 或更高版本而變化。您的舊模板將不再起作用，因為模板系統現在使用響應式模板。}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;&#039;&#039;&#039;Special checks after an upgrade&#039;&#039;&#039;:&lt;br /&gt;
*&#039;&#039;&#039;from any earlier version to 2.xx&#039;&#039;&#039;: Proper question codes are mandatory now. After upgrading the installation, check the survey logic of all surveys and correct the codes where necessary&lt;br /&gt;
*&#039;&#039;&#039;from a version earlier than v1.53&#039;&#039;&#039;: When upgrading from a version before v1.53 to the latest version, please check the &#039;&#039;&#039;global user rights&#039;&#039;&#039; of each user. There was a new &#039;&#039;&#039;superadmin&#039;&#039;&#039; right introduced in v1.53 that can give a user the same privilege as the master administration account created during the installation. 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.&lt;br /&gt;
*&#039;&#039;&#039;from any earlier version to v2.06&#039;&#039;&#039;: From 2.05 to 2.06, some unused permissions when editing global permissions for &#039;surveys&#039; were activated. For example, if a user had only the &#039;create&#039; permission in 2.05, the other permissions located to the right of &#039;create&#039; 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 &#039;original&#039; ones after the update. If yes, please edit them accordingly.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Upgrading from version 1.50 or later to any later 1.xx version==&lt;br /&gt;
*[https://www.limesurvey.org/about-limesurvey/download Download] the desired version of LimeSurvey&lt;br /&gt;
* Backup your files and database ([[Upgrading from a previous version#Before you start...|did we already mention that?]]).&lt;br /&gt;
* Replace all the installation directory files&lt;br /&gt;
** Delete all old files in the existing installation directory&lt;br /&gt;
** Upload and unpack the new code version into the same installation directory&lt;br /&gt;
** Edit or replace the &#039;&#039;&#039;config.php&#039;&#039;&#039; file:&lt;br /&gt;
*** If your previous version was &amp;lt; 1.70: Edit the new &#039;&#039;&#039;config.php&#039;&#039;&#039; in order to reflect the changes from the backup &#039;&#039;&#039;config.php&#039;&#039;&#039; file. &#039;&#039;&#039;Do not just overwrite the new &#039;&#039;&#039;config.php&#039;&#039;&#039; with your old one!&#039;&#039;&#039;&lt;br /&gt;
*** If your previous version was &amp;gt;= 1.70: Simply replace the new &#039;&#039;&#039;config.php&#039;&#039;&#039; with your backup &#039;&#039;&#039;config.php&#039;&#039;&#039; file (as the file format has not changed)&lt;br /&gt;
** 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&lt;br /&gt;
** Copy your /upload directory back to the old location&lt;br /&gt;
** Double-check the &#039;&#039;&#039;permissions&#039;&#039;&#039; set on the directories of LimeSurvey (write access to &#039;&#039;&#039;/tmp&#039;&#039;&#039;, &#039;&#039;&#039;/upload&#039;&#039;&#039;, and to their subdirectories is required) as described in the [[Installation#Set Directory permissions|installation wiki]]&lt;br /&gt;
* Finish the installation/upgrade process&lt;br /&gt;
** Once you open the URL to your LimeSurvey administration, the database tables will be updated after confirmation&lt;br /&gt;
** Remove or rename the /admin/install directory as/if instructed by the installation script&lt;br /&gt;
** Check if any special manual checks apply (as listed below)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;&#039;&#039;&#039;Special checks after an upgrade&#039;&#039;&#039;:&lt;br /&gt;
*&#039;&#039;&#039;From a version earlier than v1.53&#039;&#039;&#039;: When upgrading from a version before v1.53 to the latest version, please check the &#039;&#039;&#039;global user rights&#039;&#039;&#039; of each user. There was a new &#039;&#039;&#039;superadmin&#039;&#039;&#039; 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.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Upgrading_from_a_version_earlier_than_v1.50_(v1.0_through_v1.44)&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==從 v1.50 之前的版本升級（v1.0 到 v1.44）==&lt;br /&gt;
&lt;br /&gt;
由於資料結構和許多其他內容發生了變化，&#039;&#039;&#039;從其他更早的版本升級到1.50是&amp;lt;u&amp;gt;不可行&amp;lt;/u&amp;gt;的&#039;&#039;&#039;。如果您留有*.sql 檔案格式的舊版結構文件，將這些文件轉換為新版本的唯一方法是安裝[http://www.limesurvey.org/en/archived-releases/289-limesurvey150zip 版本1.50] ，接著匯入 .sql 文件，然後將該問卷版本升級到最新的 LimeSurvey 版本。檢查[[Transferring an installation|如何轉移安裝]]以了解更多詳細資訊。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Upgrading_using_CLI&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
= 使用 CLI 升級 =&lt;br /&gt;
&lt;br /&gt;
您可以透過 PHP CLI 升級資料庫： &amp;lt;code&amp;gt;php application/commands/console.php updatedb&amp;lt;/code&amp;gt;。 這允許您透過命令列自動升級系統（例如，在 crontab 中），但不建議這樣做。&lt;br /&gt;
&lt;br /&gt;
= Failed database upgrade after manual update/ComfortUpdate=&lt;br /&gt;
Sometimes, even though you did everything correct, things don&#039;t work out they are supposed to during database upgrade.&lt;br /&gt;
That may happen because of various reasons: Different database versions, unexpected data formats or contents, unusual configurations or anything else that did not show up in our tests (yes, we test a lot!)&lt;br /&gt;
&lt;br /&gt;
如果您在資料庫更新期間發生錯誤並且您的 LimeSurvey 實例最終處於不可使用的狀態，您希望返回到先前的版本。&lt;br /&gt;
這邊預設您仍然擁有資料庫和檔案備份，無論是來自常規備份還是由 Comfortupdate 建立的備份。&lt;br /&gt;
&lt;br /&gt;
請執行以下步驟：&lt;br /&gt;
&lt;br /&gt;
*備份現有的 LimeSurvey 目錄和資料庫（是的，再做一次 - 我們叫它第二個備份）&lt;br /&gt;
*從原來的(第一個備份)還原檔案到現存的資料夾(直接覆蓋它們沒關係)&lt;br /&gt;
*刪除目前的資料庫然後從(第一個備份)還原資料&lt;br /&gt;
&lt;br /&gt;
就是這樣。一切都應該恢復正常。&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;關於報告此問題的說明：&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
如果您遇到這樣的問題，請務必在我們的錯誤追蹤網站裡回報此問題：https://bugs.limesurvey.org&lt;br /&gt;
&lt;br /&gt;
未回報的錯誤就是不會被修復的錯誤。請不要等別人回報此錯誤。如果您發現該錯誤已被回報，您還可以透過在錯誤追蹤器中將其標記為「是的，此錯誤影響我」來幫助提高錯誤的優先順序。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;FAQ&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=常見問題=&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Can_I_upgrade_even_if_I_have_active_surveys?&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==即使我有進行中的問卷，我也可以升級嗎？==&lt;br /&gt;
&lt;br /&gt;
是的你可以升級。上面的詳細說明中可能會提到例外。我們強烈建議您在升級後測試您的問卷，以確定您設計的模板是否可以正常運作。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;How_to_convert_*.sql/*.csv_survey_structure_files_to_the_latest_LimeSurvey_version?&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==如何將*.sql/*.csv問卷結構檔轉換為最新的LimeSurvey版本？==&lt;br /&gt;
&lt;br /&gt;
安裝版本 1.50，匯入文件，並將調查結構匯出成為較新的 .csv 格式。然後安裝最新版本 2.x 並匯入 .csv 格式並將其匯出為目前的 .lss 格式。&lt;br /&gt;
&lt;br /&gt;
==Survey theme incompatibility==&lt;br /&gt;
With certain major version updates any custom survey themes will not be compatible, anymore:&lt;br /&gt;
&lt;br /&gt;
* Update from LimeSurvey 2.6 or lower to LimeSurvey 2.50&lt;br /&gt;
* Update from LimeSurvey 5.x or lower to LimeSurvey 6.x&lt;br /&gt;
&lt;br /&gt;
==Error &amp;quot;Multiple primary key defined&amp;quot; when updating MySQL database==&lt;br /&gt;
If you encounter this error, please check the setting &#039;&#039;sql_generate_invisible_primary_key&#039;&#039; in your MySQL server variables. This is most likely set to &#039;&#039;ON&#039;&#039;, but should be set to &#039;&#039;OFF&#039;&#039;. Then restore your database from the backup (as explained above) and try again.&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Translations:Upgrading_from_a_previous_version/14/zh-hant&amp;diff=377793</id>
		<title>Translations:Upgrading from a previous version/14/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Translations:Upgrading_from_a_previous_version/14/zh-hant&amp;diff=377793"/>
		<updated>2024-07-06T07:56:45Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: Created page with &amp;quot;由於資料結構和許多其他內容發生了變化，&amp;#039;&amp;#039;&amp;#039;從其他更早的版本升級到1.50是&amp;lt;u&amp;gt;不可行&amp;lt;/u&amp;gt;的&amp;#039;&amp;#039;&amp;#039;。如果您留有*.sql 檔案格式的舊版結構文件，將這些文件轉換為新版本的唯一方法是安裝[http://www.limesurvey.org/en/archived-releases/289-limesurvey150zip 版本1.50] ，接著匯入 .sql 文件，然後將該問卷版本升級到最新的 LimeSurvey 版本。檢查如何轉移安裝以...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;由於資料結構和許多其他內容發生了變化，&#039;&#039;&#039;從其他更早的版本升級到1.50是&amp;lt;u&amp;gt;不可行&amp;lt;/u&amp;gt;的&#039;&#039;&#039;。如果您留有*.sql 檔案格式的舊版結構文件，將這些文件轉換為新版本的唯一方法是安裝[http://www.limesurvey.org/en/archived-releases/289-limesurvey150zip 版本1.50] ，接著匯入 .sql 文件，然後將該問卷版本升級到最新的 LimeSurvey 版本。檢查[[Transferring an installation|如何轉移安裝]]以了解更多詳細資訊。&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Upgrading_from_a_previous_version/zh-hant&amp;diff=377792</id>
		<title>Upgrading from a previous version/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Upgrading_from_a_previous_version/zh-hant&amp;diff=377792"/>
		<updated>2024-07-06T07:52:02Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: Created page with &amp;quot;如果您在資料庫更新期間發生錯誤並且您的 LimeSurvey 實例最終處於不可使用的狀態，您希望返回到先前的版本。 這邊預設您仍然擁有資料庫和檔案備份，無論是來自常規備份還是由 Comfortupdate 建立的備份。&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt; &amp;lt;div style=&amp;quot;float:right;&amp;quot;&amp;gt;&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;附加頁：{toc}&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt; __TOC__&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Before_you_start...&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=開始之前...=&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&#039;color:#FF0000&#039;&amp;gt;....閱讀此內容，因為它非常重要：&#039;&#039;&#039;務必備份目前的安裝檔案和資料庫！&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
您可以使用資料庫管理工具例如 [https://www.phpmyadmin.net phpMyAdmin] 和檔案管理器來執行此操作！&lt;br /&gt;
如果您不知道怎麼備份，請勿繼續下面的操作並尋找其他人的幫助。&lt;br /&gt;
&lt;br /&gt;
==建議使用 ComfortUpdate==&lt;br /&gt;
&#039;&#039;&#039;最簡單/安全的升級方法就是使用我們的[[ComfortUpdate]]服務。&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Upgrade_instructions_(from_2.x_or_newer_to_any_later_version)&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=升級說明（從2.x或更高版本到任何之後的版本）=&lt;br /&gt;
&lt;br /&gt;
請按照以下說明操作：&lt;br /&gt;
*備份您的檔案和資料庫([[Upgrading from a previous version/zh-hant#Before you start...|我們之前有提過嗎?]])。&lt;br /&gt;
*刪除所有舊文件/資料夾，除了以下檔案：&lt;br /&gt;
**/application/config/security.php - &#039;&#039;&#039;很重要!!這是 LimeSurvey（版本 4 及更高版本）中所有加密資料的金鑰&#039;&#039;&#039;&lt;br /&gt;
**/application/config/config.php;&lt;br /&gt;
**/upload 目錄&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;[[File:help.png]]&#039;&#039;&#039;注意：&#039;&#039;&#039; 如果 /upload/templates 中有任何自訂模板，請確保「更新」這些模板以應對使用新 LimeSurvey 版本所造成的變化。檢查此類變更的最簡單方法是將舊範本與新版本的預設範本進行檔案比較。如果您發現自訂之外的任何差異，則需要更新。&amp;lt;/div&amp;gt;&lt;br /&gt;
*將新檔案從新的 LimeSurvey 套件複製到現有位置。&lt;br /&gt;
*在瀏覽器開啟管理者介面 (e.g. https://www.example.com/limesurvey/admin) 並檢查是否需要升級資料庫架構。&lt;br /&gt;
*完成升級後&#039;&#039;&#039;清空您瀏覽器的快取和Cookies&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Instructions_for_older_versions&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=更舊版本的說明=&lt;br /&gt;
&lt;br /&gt;
不幸的是，有一些事情需要您再想想，所以請仔細閱讀以下說明。&lt;br /&gt;
&lt;br /&gt;
==Upgrading from version 1.50 or later to any later 2.xx version==&lt;br /&gt;
*[https://www.limesurvey.org/about-limesurvey/download Download] the latest version of LimeSurvey&lt;br /&gt;
*Backup your files and database ([[Upgrading from a previous version#Before you start...|did we already mention that?]]).&lt;br /&gt;
* Replace all the installation directory files&lt;br /&gt;
** Delete all old files in the existing installation directory&lt;br /&gt;
** Upload and unpack the new files of the new version into the same installation directory&lt;br /&gt;
** 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&lt;br /&gt;
** Copy your /upload directory back to the old location&lt;br /&gt;
** Double-check the &#039;&#039;&#039;permissions&#039;&#039;&#039; set on the directories (write access to &#039;&#039;&#039;/tmp&#039;&#039;&#039;, &#039;&#039;&#039;/upload&#039;&#039;&#039;, and their subdirectories is required) as described in the [[Installation#Set directory permissions|installation wiki]]&lt;br /&gt;
** Open http://&amp;lt;yourdomain&amp;gt;/&amp;lt;yourlimesurveydir&amp;gt;/admin in your browser and follow the instructions (You will find the database data in the old config.php). The existing database will be automatically detected and if necessary, upgraded after confirmation.&lt;br /&gt;
* Check if any special manual checks apply as listed below&lt;br /&gt;
* &#039;&#039;&#039;Now, clear your browser cache and cookies&#039;&#039;&#039; and you are good to go&lt;br /&gt;
&lt;br /&gt;
{{Alert|title=Attention|text=請注意，範本結構隨著從 2.0x 更新到 2.50 或更高版本而變化。您的舊模板將不再起作用，因為模板系統現在使用響應式模板。}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;&#039;&#039;&#039;Special checks after an upgrade&#039;&#039;&#039;:&lt;br /&gt;
*&#039;&#039;&#039;from any earlier version to 2.xx&#039;&#039;&#039;: Proper question codes are mandatory now. After upgrading the installation, check the survey logic of all surveys and correct the codes where necessary&lt;br /&gt;
*&#039;&#039;&#039;from a version earlier than v1.53&#039;&#039;&#039;: When upgrading from a version before v1.53 to the latest version, please check the &#039;&#039;&#039;global user rights&#039;&#039;&#039; of each user. There was a new &#039;&#039;&#039;superadmin&#039;&#039;&#039; right introduced in v1.53 that can give a user the same privilege as the master administration account created during the installation. 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.&lt;br /&gt;
*&#039;&#039;&#039;from any earlier version to v2.06&#039;&#039;&#039;: From 2.05 to 2.06, some unused permissions when editing global permissions for &#039;surveys&#039; were activated. For example, if a user had only the &#039;create&#039; permission in 2.05, the other permissions located to the right of &#039;create&#039; 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 &#039;original&#039; ones after the update. If yes, please edit them accordingly.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Upgrading from version 1.50 or later to any later 1.xx version==&lt;br /&gt;
*[https://www.limesurvey.org/about-limesurvey/download Download] the desired version of LimeSurvey&lt;br /&gt;
* Backup your files and database ([[Upgrading from a previous version#Before you start...|did we already mention that?]]).&lt;br /&gt;
* Replace all the installation directory files&lt;br /&gt;
** Delete all old files in the existing installation directory&lt;br /&gt;
** Upload and unpack the new code version into the same installation directory&lt;br /&gt;
** Edit or replace the &#039;&#039;&#039;config.php&#039;&#039;&#039; file:&lt;br /&gt;
*** If your previous version was &amp;lt; 1.70: Edit the new &#039;&#039;&#039;config.php&#039;&#039;&#039; in order to reflect the changes from the backup &#039;&#039;&#039;config.php&#039;&#039;&#039; file. &#039;&#039;&#039;Do not just overwrite the new &#039;&#039;&#039;config.php&#039;&#039;&#039; with your old one!&#039;&#039;&#039;&lt;br /&gt;
*** If your previous version was &amp;gt;= 1.70: Simply replace the new &#039;&#039;&#039;config.php&#039;&#039;&#039; with your backup &#039;&#039;&#039;config.php&#039;&#039;&#039; file (as the file format has not changed)&lt;br /&gt;
** 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&lt;br /&gt;
** Copy your /upload directory back to the old location&lt;br /&gt;
** Double-check the &#039;&#039;&#039;permissions&#039;&#039;&#039; set on the directories of LimeSurvey (write access to &#039;&#039;&#039;/tmp&#039;&#039;&#039;, &#039;&#039;&#039;/upload&#039;&#039;&#039;, and to their subdirectories is required) as described in the [[Installation#Set Directory permissions|installation wiki]]&lt;br /&gt;
* Finish the installation/upgrade process&lt;br /&gt;
** Once you open the URL to your LimeSurvey administration, the database tables will be updated after confirmation&lt;br /&gt;
** Remove or rename the /admin/install directory as/if instructed by the installation script&lt;br /&gt;
** Check if any special manual checks apply (as listed below)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;&#039;&#039;&#039;Special checks after an upgrade&#039;&#039;&#039;:&lt;br /&gt;
*&#039;&#039;&#039;From a version earlier than v1.53&#039;&#039;&#039;: When upgrading from a version before v1.53 to the latest version, please check the &#039;&#039;&#039;global user rights&#039;&#039;&#039; of each user. There was a new &#039;&#039;&#039;superadmin&#039;&#039;&#039; 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.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Upgrading_from_a_version_earlier_than_v1.50_(v1.0_through_v1.44)&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==從 v1.50 之前的版本升級（v1.0 到 v1.44）==&lt;br /&gt;
&lt;br /&gt;
Since the data structure and a lot of other things were changed, &#039;&#039;&#039;upgrading from any version previous to v1.50 is &amp;lt;u&amp;gt;NOT&amp;lt;/u&amp;gt; possible&#039;&#039;&#039;. 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.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Upgrading_using_CLI&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
= 使用 CLI 升級 =&lt;br /&gt;
&lt;br /&gt;
您可以透過 PHP CLI 升級資料庫： &amp;lt;code&amp;gt;php application/commands/console.php updatedb&amp;lt;/code&amp;gt;。 這允許您透過命令列自動升級系統（例如，在 crontab 中），但不建議這樣做。&lt;br /&gt;
&lt;br /&gt;
= Failed database upgrade after manual update/ComfortUpdate=&lt;br /&gt;
Sometimes, even though you did everything correct, things don&#039;t work out they are supposed to during database upgrade.&lt;br /&gt;
That may happen because of various reasons: Different database versions, unexpected data formats or contents, unusual configurations or anything else that did not show up in our tests (yes, we test a lot!)&lt;br /&gt;
&lt;br /&gt;
如果您在資料庫更新期間發生錯誤並且您的 LimeSurvey 實例最終處於不可使用的狀態，您希望返回到先前的版本。&lt;br /&gt;
這邊預設您仍然擁有資料庫和檔案備份，無論是來自常規備份還是由 Comfortupdate 建立的備份。&lt;br /&gt;
&lt;br /&gt;
請執行以下步驟：&lt;br /&gt;
&lt;br /&gt;
*備份現有的 LimeSurvey 目錄和資料庫（是的，再做一次 - 我們叫它第二個備份）&lt;br /&gt;
*從原來的(第一個備份)還原檔案到現存的資料夾(直接覆蓋它們沒關係)&lt;br /&gt;
*刪除目前的資料庫然後從(第一個備份)還原資料&lt;br /&gt;
&lt;br /&gt;
就是這樣。一切都應該恢復正常。&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;關於報告此問題的說明：&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
如果您遇到這樣的問題，請務必在我們的錯誤追蹤網站裡回報此問題：https://bugs.limesurvey.org&lt;br /&gt;
&lt;br /&gt;
未回報的錯誤就是不會被修復的錯誤。請不要等別人回報此錯誤。如果您發現該錯誤已被回報，您還可以透過在錯誤追蹤器中將其標記為「是的，此錯誤影響我」來幫助提高錯誤的優先順序。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;FAQ&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=常見問題=&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Can_I_upgrade_even_if_I_have_active_surveys?&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==即使我有進行中的問卷，我也可以升級嗎？==&lt;br /&gt;
&lt;br /&gt;
是的你可以升級。上面的詳細說明中可能會提到例外。我們強烈建議您在升級後測試您的問卷，以確定您設計的模板是否可以正常運作。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;How_to_convert_*.sql/*.csv_survey_structure_files_to_the_latest_LimeSurvey_version?&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==如何將*.sql/*.csv問卷結構檔轉換為最新的LimeSurvey版本？==&lt;br /&gt;
&lt;br /&gt;
安裝版本 1.50，匯入文件，並將調查結構匯出成為較新的 .csv 格式。然後安裝最新版本 2.x 並匯入 .csv 格式並將其匯出為目前的 .lss 格式。&lt;br /&gt;
&lt;br /&gt;
==Survey theme incompatibility==&lt;br /&gt;
With certain major version updates any custom survey themes will not be compatible, anymore:&lt;br /&gt;
&lt;br /&gt;
* Update from LimeSurvey 2.6 or lower to LimeSurvey 2.50&lt;br /&gt;
* Update from LimeSurvey 5.x or lower to LimeSurvey 6.x&lt;br /&gt;
&lt;br /&gt;
==Error &amp;quot;Multiple primary key defined&amp;quot; when updating MySQL database==&lt;br /&gt;
If you encounter this error, please check the setting &#039;&#039;sql_generate_invisible_primary_key&#039;&#039; in your MySQL server variables. This is most likely set to &#039;&#039;ON&#039;&#039;, but should be set to &#039;&#039;OFF&#039;&#039;. Then restore your database from the backup (as explained above) and try again.&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Translations:Upgrading_from_a_previous_version/30/zh-hant&amp;diff=377791</id>
		<title>Translations:Upgrading from a previous version/30/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Translations:Upgrading_from_a_previous_version/30/zh-hant&amp;diff=377791"/>
		<updated>2024-07-06T07:51:46Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: Created page with &amp;quot;如果您在資料庫更新期間發生錯誤並且您的 LimeSurvey 實例最終處於不可使用的狀態，您希望返回到先前的版本。 這邊預設您仍然擁有資料庫和檔案備份，無論是來自常規備份還是由 Comfortupdate 建立的備份。&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;如果您在資料庫更新期間發生錯誤並且您的 LimeSurvey 實例最終處於不可使用的狀態，您希望返回到先前的版本。&lt;br /&gt;
這邊預設您仍然擁有資料庫和檔案備份，無論是來自常規備份還是由 Comfortupdate 建立的備份。&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Upgrading_from_a_previous_version/zh-hant&amp;diff=377790</id>
		<title>Upgrading from a previous version/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Upgrading_from_a_previous_version/zh-hant&amp;diff=377790"/>
		<updated>2024-07-06T07:50:01Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: Created page with &amp;quot;您可以透過 PHP CLI 升級資料庫： &amp;lt;code&amp;gt;php application/commands/console.php updatedb&amp;lt;/code&amp;gt;。 這允許您透過命令列自動升級系統（例如，在 crontab 中），但不建議這樣做。&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt; &amp;lt;div style=&amp;quot;float:right;&amp;quot;&amp;gt;&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;附加頁：{toc}&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt; __TOC__&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Before_you_start...&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=開始之前...=&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&#039;color:#FF0000&#039;&amp;gt;....閱讀此內容，因為它非常重要：&#039;&#039;&#039;務必備份目前的安裝檔案和資料庫！&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
您可以使用資料庫管理工具例如 [https://www.phpmyadmin.net phpMyAdmin] 和檔案管理器來執行此操作！&lt;br /&gt;
如果您不知道怎麼備份，請勿繼續下面的操作並尋找其他人的幫助。&lt;br /&gt;
&lt;br /&gt;
==建議使用 ComfortUpdate==&lt;br /&gt;
&#039;&#039;&#039;最簡單/安全的升級方法就是使用我們的[[ComfortUpdate]]服務。&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Upgrade_instructions_(from_2.x_or_newer_to_any_later_version)&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=升級說明（從2.x或更高版本到任何之後的版本）=&lt;br /&gt;
&lt;br /&gt;
請按照以下說明操作：&lt;br /&gt;
*備份您的檔案和資料庫([[Upgrading from a previous version/zh-hant#Before you start...|我們之前有提過嗎?]])。&lt;br /&gt;
*刪除所有舊文件/資料夾，除了以下檔案：&lt;br /&gt;
**/application/config/security.php - &#039;&#039;&#039;很重要!!這是 LimeSurvey（版本 4 及更高版本）中所有加密資料的金鑰&#039;&#039;&#039;&lt;br /&gt;
**/application/config/config.php;&lt;br /&gt;
**/upload 目錄&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;[[File:help.png]]&#039;&#039;&#039;注意：&#039;&#039;&#039; 如果 /upload/templates 中有任何自訂模板，請確保「更新」這些模板以應對使用新 LimeSurvey 版本所造成的變化。檢查此類變更的最簡單方法是將舊範本與新版本的預設範本進行檔案比較。如果您發現自訂之外的任何差異，則需要更新。&amp;lt;/div&amp;gt;&lt;br /&gt;
*將新檔案從新的 LimeSurvey 套件複製到現有位置。&lt;br /&gt;
*在瀏覽器開啟管理者介面 (e.g. https://www.example.com/limesurvey/admin) 並檢查是否需要升級資料庫架構。&lt;br /&gt;
*完成升級後&#039;&#039;&#039;清空您瀏覽器的快取和Cookies&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Instructions_for_older_versions&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=更舊版本的說明=&lt;br /&gt;
&lt;br /&gt;
不幸的是，有一些事情需要您再想想，所以請仔細閱讀以下說明。&lt;br /&gt;
&lt;br /&gt;
==Upgrading from version 1.50 or later to any later 2.xx version==&lt;br /&gt;
*[https://www.limesurvey.org/about-limesurvey/download Download] the latest version of LimeSurvey&lt;br /&gt;
*Backup your files and database ([[Upgrading from a previous version#Before you start...|did we already mention that?]]).&lt;br /&gt;
* Replace all the installation directory files&lt;br /&gt;
** Delete all old files in the existing installation directory&lt;br /&gt;
** Upload and unpack the new files of the new version into the same installation directory&lt;br /&gt;
** 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&lt;br /&gt;
** Copy your /upload directory back to the old location&lt;br /&gt;
** Double-check the &#039;&#039;&#039;permissions&#039;&#039;&#039; set on the directories (write access to &#039;&#039;&#039;/tmp&#039;&#039;&#039;, &#039;&#039;&#039;/upload&#039;&#039;&#039;, and their subdirectories is required) as described in the [[Installation#Set directory permissions|installation wiki]]&lt;br /&gt;
** Open http://&amp;lt;yourdomain&amp;gt;/&amp;lt;yourlimesurveydir&amp;gt;/admin in your browser and follow the instructions (You will find the database data in the old config.php). The existing database will be automatically detected and if necessary, upgraded after confirmation.&lt;br /&gt;
* Check if any special manual checks apply as listed below&lt;br /&gt;
* &#039;&#039;&#039;Now, clear your browser cache and cookies&#039;&#039;&#039; and you are good to go&lt;br /&gt;
&lt;br /&gt;
{{Alert|title=Attention|text=請注意，範本結構隨著從 2.0x 更新到 2.50 或更高版本而變化。您的舊模板將不再起作用，因為模板系統現在使用響應式模板。}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;&#039;&#039;&#039;Special checks after an upgrade&#039;&#039;&#039;:&lt;br /&gt;
*&#039;&#039;&#039;from any earlier version to 2.xx&#039;&#039;&#039;: Proper question codes are mandatory now. After upgrading the installation, check the survey logic of all surveys and correct the codes where necessary&lt;br /&gt;
*&#039;&#039;&#039;from a version earlier than v1.53&#039;&#039;&#039;: When upgrading from a version before v1.53 to the latest version, please check the &#039;&#039;&#039;global user rights&#039;&#039;&#039; of each user. There was a new &#039;&#039;&#039;superadmin&#039;&#039;&#039; right introduced in v1.53 that can give a user the same privilege as the master administration account created during the installation. 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.&lt;br /&gt;
*&#039;&#039;&#039;from any earlier version to v2.06&#039;&#039;&#039;: From 2.05 to 2.06, some unused permissions when editing global permissions for &#039;surveys&#039; were activated. For example, if a user had only the &#039;create&#039; permission in 2.05, the other permissions located to the right of &#039;create&#039; 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 &#039;original&#039; ones after the update. If yes, please edit them accordingly.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Upgrading from version 1.50 or later to any later 1.xx version==&lt;br /&gt;
*[https://www.limesurvey.org/about-limesurvey/download Download] the desired version of LimeSurvey&lt;br /&gt;
* Backup your files and database ([[Upgrading from a previous version#Before you start...|did we already mention that?]]).&lt;br /&gt;
* Replace all the installation directory files&lt;br /&gt;
** Delete all old files in the existing installation directory&lt;br /&gt;
** Upload and unpack the new code version into the same installation directory&lt;br /&gt;
** Edit or replace the &#039;&#039;&#039;config.php&#039;&#039;&#039; file:&lt;br /&gt;
*** If your previous version was &amp;lt; 1.70: Edit the new &#039;&#039;&#039;config.php&#039;&#039;&#039; in order to reflect the changes from the backup &#039;&#039;&#039;config.php&#039;&#039;&#039; file. &#039;&#039;&#039;Do not just overwrite the new &#039;&#039;&#039;config.php&#039;&#039;&#039; with your old one!&#039;&#039;&#039;&lt;br /&gt;
*** If your previous version was &amp;gt;= 1.70: Simply replace the new &#039;&#039;&#039;config.php&#039;&#039;&#039; with your backup &#039;&#039;&#039;config.php&#039;&#039;&#039; file (as the file format has not changed)&lt;br /&gt;
** 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&lt;br /&gt;
** Copy your /upload directory back to the old location&lt;br /&gt;
** Double-check the &#039;&#039;&#039;permissions&#039;&#039;&#039; set on the directories of LimeSurvey (write access to &#039;&#039;&#039;/tmp&#039;&#039;&#039;, &#039;&#039;&#039;/upload&#039;&#039;&#039;, and to their subdirectories is required) as described in the [[Installation#Set Directory permissions|installation wiki]]&lt;br /&gt;
* Finish the installation/upgrade process&lt;br /&gt;
** Once you open the URL to your LimeSurvey administration, the database tables will be updated after confirmation&lt;br /&gt;
** Remove or rename the /admin/install directory as/if instructed by the installation script&lt;br /&gt;
** Check if any special manual checks apply (as listed below)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;&#039;&#039;&#039;Special checks after an upgrade&#039;&#039;&#039;:&lt;br /&gt;
*&#039;&#039;&#039;From a version earlier than v1.53&#039;&#039;&#039;: When upgrading from a version before v1.53 to the latest version, please check the &#039;&#039;&#039;global user rights&#039;&#039;&#039; of each user. There was a new &#039;&#039;&#039;superadmin&#039;&#039;&#039; 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.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Upgrading_from_a_version_earlier_than_v1.50_(v1.0_through_v1.44)&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==從 v1.50 之前的版本升級（v1.0 到 v1.44）==&lt;br /&gt;
&lt;br /&gt;
Since the data structure and a lot of other things were changed, &#039;&#039;&#039;upgrading from any version previous to v1.50 is &amp;lt;u&amp;gt;NOT&amp;lt;/u&amp;gt; possible&#039;&#039;&#039;. 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.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Upgrading_using_CLI&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
= 使用 CLI 升級 =&lt;br /&gt;
&lt;br /&gt;
您可以透過 PHP CLI 升級資料庫： &amp;lt;code&amp;gt;php application/commands/console.php updatedb&amp;lt;/code&amp;gt;。 這允許您透過命令列自動升級系統（例如，在 crontab 中），但不建議這樣做。&lt;br /&gt;
&lt;br /&gt;
= Failed database upgrade after manual update/ComfortUpdate=&lt;br /&gt;
Sometimes, even though you did everything correct, things don&#039;t work out they are supposed to during database upgrade.&lt;br /&gt;
That may happen because of various reasons: Different database versions, unexpected data formats or contents, unusual configurations or anything else that did not show up in our tests (yes, we test a lot!)&lt;br /&gt;
&lt;br /&gt;
If you have an error during database update and your LimeSurvey instance ends up in an unusable state, you want to go back to the previous version.&lt;br /&gt;
This assumes that you still have the database and file backup, either from your regular backup or the one created by Comfortupdate.&lt;br /&gt;
&lt;br /&gt;
請執行以下步驟：&lt;br /&gt;
&lt;br /&gt;
*備份現有的 LimeSurvey 目錄和資料庫（是的，再做一次 - 我們叫它第二個備份）&lt;br /&gt;
*從原來的(第一個備份)還原檔案到現存的資料夾(直接覆蓋它們沒關係)&lt;br /&gt;
*刪除目前的資料庫然後從(第一個備份)還原資料&lt;br /&gt;
&lt;br /&gt;
就是這樣。一切都應該恢復正常。&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;關於報告此問題的說明：&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
如果您遇到這樣的問題，請務必在我們的錯誤追蹤網站裡回報此問題：https://bugs.limesurvey.org&lt;br /&gt;
&lt;br /&gt;
未回報的錯誤就是不會被修復的錯誤。請不要等別人回報此錯誤。如果您發現該錯誤已被回報，您還可以透過在錯誤追蹤器中將其標記為「是的，此錯誤影響我」來幫助提高錯誤的優先順序。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;FAQ&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=常見問題=&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Can_I_upgrade_even_if_I_have_active_surveys?&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==即使我有進行中的問卷，我也可以升級嗎？==&lt;br /&gt;
&lt;br /&gt;
是的你可以升級。上面的詳細說明中可能會提到例外。我們強烈建議您在升級後測試您的問卷，以確定您設計的模板是否可以正常運作。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;How_to_convert_*.sql/*.csv_survey_structure_files_to_the_latest_LimeSurvey_version?&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==如何將*.sql/*.csv問卷結構檔轉換為最新的LimeSurvey版本？==&lt;br /&gt;
&lt;br /&gt;
安裝版本 1.50，匯入文件，並將調查結構匯出成為較新的 .csv 格式。然後安裝最新版本 2.x 並匯入 .csv 格式並將其匯出為目前的 .lss 格式。&lt;br /&gt;
&lt;br /&gt;
==Survey theme incompatibility==&lt;br /&gt;
With certain major version updates any custom survey themes will not be compatible, anymore:&lt;br /&gt;
&lt;br /&gt;
* Update from LimeSurvey 2.6 or lower to LimeSurvey 2.50&lt;br /&gt;
* Update from LimeSurvey 5.x or lower to LimeSurvey 6.x&lt;br /&gt;
&lt;br /&gt;
==Error &amp;quot;Multiple primary key defined&amp;quot; when updating MySQL database==&lt;br /&gt;
If you encounter this error, please check the setting &#039;&#039;sql_generate_invisible_primary_key&#039;&#039; in your MySQL server variables. This is most likely set to &#039;&#039;ON&#039;&#039;, but should be set to &#039;&#039;OFF&#039;&#039;. Then restore your database from the backup (as explained above) and try again.&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Translations:Upgrading_from_a_previous_version/26/zh-hant&amp;diff=377789</id>
		<title>Translations:Upgrading from a previous version/26/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Translations:Upgrading_from_a_previous_version/26/zh-hant&amp;diff=377789"/>
		<updated>2024-07-06T07:49:38Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: Created page with &amp;quot;您可以透過 PHP CLI 升級資料庫： &amp;lt;code&amp;gt;php application/commands/console.php updatedb&amp;lt;/code&amp;gt;。 這允許您透過命令列自動升級系統（例如，在 crontab 中），但不建議這樣做。&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;您可以透過 PHP CLI 升級資料庫： &amp;lt;code&amp;gt;php application/commands/console.php updatedb&amp;lt;/code&amp;gt;。 這允許您透過命令列自動升級系統（例如，在 crontab 中），但不建議這樣做。&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Upgrading_from_a_previous_version/zh-hant&amp;diff=377788</id>
		<title>Upgrading from a previous version/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Upgrading_from_a_previous_version/zh-hant&amp;diff=377788"/>
		<updated>2024-07-06T07:47:01Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt; &amp;lt;div style=&amp;quot;float:right;&amp;quot;&amp;gt;&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;附加頁：{toc}&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt; __TOC__&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Before_you_start...&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=開始之前...=&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&#039;color:#FF0000&#039;&amp;gt;....閱讀此內容，因為它非常重要：&#039;&#039;&#039;務必備份目前的安裝檔案和資料庫！&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
您可以使用資料庫管理工具例如 [https://www.phpmyadmin.net phpMyAdmin] 和檔案管理器來執行此操作！&lt;br /&gt;
如果您不知道怎麼備份，請勿繼續下面的操作並尋找其他人的幫助。&lt;br /&gt;
&lt;br /&gt;
==建議使用 ComfortUpdate==&lt;br /&gt;
&#039;&#039;&#039;最簡單/安全的升級方法就是使用我們的[[ComfortUpdate]]服務。&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Upgrade_instructions_(from_2.x_or_newer_to_any_later_version)&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=升級說明（從2.x或更高版本到任何之後的版本）=&lt;br /&gt;
&lt;br /&gt;
請按照以下說明操作：&lt;br /&gt;
*備份您的檔案和資料庫([[Upgrading from a previous version/zh-hant#Before you start...|我們之前有提過嗎?]])。&lt;br /&gt;
*刪除所有舊文件/資料夾，除了以下檔案：&lt;br /&gt;
**/application/config/security.php - &#039;&#039;&#039;很重要!!這是 LimeSurvey（版本 4 及更高版本）中所有加密資料的金鑰&#039;&#039;&#039;&lt;br /&gt;
**/application/config/config.php;&lt;br /&gt;
**/upload 目錄&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;[[File:help.png]]&#039;&#039;&#039;注意：&#039;&#039;&#039; 如果 /upload/templates 中有任何自訂模板，請確保「更新」這些模板以應對使用新 LimeSurvey 版本所造成的變化。檢查此類變更的最簡單方法是將舊範本與新版本的預設範本進行檔案比較。如果您發現自訂之外的任何差異，則需要更新。&amp;lt;/div&amp;gt;&lt;br /&gt;
*將新檔案從新的 LimeSurvey 套件複製到現有位置。&lt;br /&gt;
*在瀏覽器開啟管理者介面 (e.g. https://www.example.com/limesurvey/admin) 並檢查是否需要升級資料庫架構。&lt;br /&gt;
*完成升級後&#039;&#039;&#039;清空您瀏覽器的快取和Cookies&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Instructions_for_older_versions&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=更舊版本的說明=&lt;br /&gt;
&lt;br /&gt;
不幸的是，有一些事情需要您再想想，所以請仔細閱讀以下說明。&lt;br /&gt;
&lt;br /&gt;
==Upgrading from version 1.50 or later to any later 2.xx version==&lt;br /&gt;
*[https://www.limesurvey.org/about-limesurvey/download Download] the latest version of LimeSurvey&lt;br /&gt;
*Backup your files and database ([[Upgrading from a previous version#Before you start...|did we already mention that?]]).&lt;br /&gt;
* Replace all the installation directory files&lt;br /&gt;
** Delete all old files in the existing installation directory&lt;br /&gt;
** Upload and unpack the new files of the new version into the same installation directory&lt;br /&gt;
** 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&lt;br /&gt;
** Copy your /upload directory back to the old location&lt;br /&gt;
** Double-check the &#039;&#039;&#039;permissions&#039;&#039;&#039; set on the directories (write access to &#039;&#039;&#039;/tmp&#039;&#039;&#039;, &#039;&#039;&#039;/upload&#039;&#039;&#039;, and their subdirectories is required) as described in the [[Installation#Set directory permissions|installation wiki]]&lt;br /&gt;
** Open http://&amp;lt;yourdomain&amp;gt;/&amp;lt;yourlimesurveydir&amp;gt;/admin in your browser and follow the instructions (You will find the database data in the old config.php). The existing database will be automatically detected and if necessary, upgraded after confirmation.&lt;br /&gt;
* Check if any special manual checks apply as listed below&lt;br /&gt;
* &#039;&#039;&#039;Now, clear your browser cache and cookies&#039;&#039;&#039; and you are good to go&lt;br /&gt;
&lt;br /&gt;
{{Alert|title=Attention|text=請注意，範本結構隨著從 2.0x 更新到 2.50 或更高版本而變化。您的舊模板將不再起作用，因為模板系統現在使用響應式模板。}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;&#039;&#039;&#039;Special checks after an upgrade&#039;&#039;&#039;:&lt;br /&gt;
*&#039;&#039;&#039;from any earlier version to 2.xx&#039;&#039;&#039;: Proper question codes are mandatory now. After upgrading the installation, check the survey logic of all surveys and correct the codes where necessary&lt;br /&gt;
*&#039;&#039;&#039;from a version earlier than v1.53&#039;&#039;&#039;: When upgrading from a version before v1.53 to the latest version, please check the &#039;&#039;&#039;global user rights&#039;&#039;&#039; of each user. There was a new &#039;&#039;&#039;superadmin&#039;&#039;&#039; right introduced in v1.53 that can give a user the same privilege as the master administration account created during the installation. 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.&lt;br /&gt;
*&#039;&#039;&#039;from any earlier version to v2.06&#039;&#039;&#039;: From 2.05 to 2.06, some unused permissions when editing global permissions for &#039;surveys&#039; were activated. For example, if a user had only the &#039;create&#039; permission in 2.05, the other permissions located to the right of &#039;create&#039; 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 &#039;original&#039; ones after the update. If yes, please edit them accordingly.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Upgrading from version 1.50 or later to any later 1.xx version==&lt;br /&gt;
*[https://www.limesurvey.org/about-limesurvey/download Download] the desired version of LimeSurvey&lt;br /&gt;
* Backup your files and database ([[Upgrading from a previous version#Before you start...|did we already mention that?]]).&lt;br /&gt;
* Replace all the installation directory files&lt;br /&gt;
** Delete all old files in the existing installation directory&lt;br /&gt;
** Upload and unpack the new code version into the same installation directory&lt;br /&gt;
** Edit or replace the &#039;&#039;&#039;config.php&#039;&#039;&#039; file:&lt;br /&gt;
*** If your previous version was &amp;lt; 1.70: Edit the new &#039;&#039;&#039;config.php&#039;&#039;&#039; in order to reflect the changes from the backup &#039;&#039;&#039;config.php&#039;&#039;&#039; file. &#039;&#039;&#039;Do not just overwrite the new &#039;&#039;&#039;config.php&#039;&#039;&#039; with your old one!&#039;&#039;&#039;&lt;br /&gt;
*** If your previous version was &amp;gt;= 1.70: Simply replace the new &#039;&#039;&#039;config.php&#039;&#039;&#039; with your backup &#039;&#039;&#039;config.php&#039;&#039;&#039; file (as the file format has not changed)&lt;br /&gt;
** 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&lt;br /&gt;
** Copy your /upload directory back to the old location&lt;br /&gt;
** Double-check the &#039;&#039;&#039;permissions&#039;&#039;&#039; set on the directories of LimeSurvey (write access to &#039;&#039;&#039;/tmp&#039;&#039;&#039;, &#039;&#039;&#039;/upload&#039;&#039;&#039;, and to their subdirectories is required) as described in the [[Installation#Set Directory permissions|installation wiki]]&lt;br /&gt;
* Finish the installation/upgrade process&lt;br /&gt;
** Once you open the URL to your LimeSurvey administration, the database tables will be updated after confirmation&lt;br /&gt;
** Remove or rename the /admin/install directory as/if instructed by the installation script&lt;br /&gt;
** Check if any special manual checks apply (as listed below)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;&#039;&#039;&#039;Special checks after an upgrade&#039;&#039;&#039;:&lt;br /&gt;
*&#039;&#039;&#039;From a version earlier than v1.53&#039;&#039;&#039;: When upgrading from a version before v1.53 to the latest version, please check the &#039;&#039;&#039;global user rights&#039;&#039;&#039; of each user. There was a new &#039;&#039;&#039;superadmin&#039;&#039;&#039; 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.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Upgrading_from_a_version_earlier_than_v1.50_(v1.0_through_v1.44)&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==從 v1.50 之前的版本升級（v1.0 到 v1.44）==&lt;br /&gt;
&lt;br /&gt;
Since the data structure and a lot of other things were changed, &#039;&#039;&#039;upgrading from any version previous to v1.50 is &amp;lt;u&amp;gt;NOT&amp;lt;/u&amp;gt; possible&#039;&#039;&#039;. 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.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Upgrading_using_CLI&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
= 使用 CLI 升級 =&lt;br /&gt;
&lt;br /&gt;
You can upgrade the database via the PHP CLI: &amp;lt;code&amp;gt;php application/commands/console.php updatedb&amp;lt;/code&amp;gt;. This allows you to set up an auto-upgrade system via command line (for example, in a crontab), although it is not recommended.&lt;br /&gt;
&lt;br /&gt;
= Failed database upgrade after manual update/ComfortUpdate=&lt;br /&gt;
Sometimes, even though you did everything correct, things don&#039;t work out they are supposed to during database upgrade.&lt;br /&gt;
That may happen because of various reasons: Different database versions, unexpected data formats or contents, unusual configurations or anything else that did not show up in our tests (yes, we test a lot!)&lt;br /&gt;
&lt;br /&gt;
If you have an error during database update and your LimeSurvey instance ends up in an unusable state, you want to go back to the previous version.&lt;br /&gt;
This assumes that you still have the database and file backup, either from your regular backup or the one created by Comfortupdate.&lt;br /&gt;
&lt;br /&gt;
請執行以下步驟：&lt;br /&gt;
&lt;br /&gt;
*備份現有的 LimeSurvey 目錄和資料庫（是的，再做一次 - 我們叫它第二個備份）&lt;br /&gt;
*從原來的(第一個備份)還原檔案到現存的資料夾(直接覆蓋它們沒關係)&lt;br /&gt;
*刪除目前的資料庫然後從(第一個備份)還原資料&lt;br /&gt;
&lt;br /&gt;
就是這樣。一切都應該恢復正常。&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;關於報告此問題的說明：&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
如果您遇到這樣的問題，請務必在我們的錯誤追蹤網站裡回報此問題：https://bugs.limesurvey.org&lt;br /&gt;
&lt;br /&gt;
未回報的錯誤就是不會被修復的錯誤。請不要等別人回報此錯誤。如果您發現該錯誤已被回報，您還可以透過在錯誤追蹤器中將其標記為「是的，此錯誤影響我」來幫助提高錯誤的優先順序。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;FAQ&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=常見問題=&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Can_I_upgrade_even_if_I_have_active_surveys?&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==即使我有進行中的問卷，我也可以升級嗎？==&lt;br /&gt;
&lt;br /&gt;
是的你可以升級。上面的詳細說明中可能會提到例外。我們強烈建議您在升級後測試您的問卷，以確定您設計的模板是否可以正常運作。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;How_to_convert_*.sql/*.csv_survey_structure_files_to_the_latest_LimeSurvey_version?&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==如何將*.sql/*.csv問卷結構檔轉換為最新的LimeSurvey版本？==&lt;br /&gt;
&lt;br /&gt;
安裝版本 1.50，匯入文件，並將調查結構匯出成為較新的 .csv 格式。然後安裝最新版本 2.x 並匯入 .csv 格式並將其匯出為目前的 .lss 格式。&lt;br /&gt;
&lt;br /&gt;
==Survey theme incompatibility==&lt;br /&gt;
With certain major version updates any custom survey themes will not be compatible, anymore:&lt;br /&gt;
&lt;br /&gt;
* Update from LimeSurvey 2.6 or lower to LimeSurvey 2.50&lt;br /&gt;
* Update from LimeSurvey 5.x or lower to LimeSurvey 6.x&lt;br /&gt;
&lt;br /&gt;
==Error &amp;quot;Multiple primary key defined&amp;quot; when updating MySQL database==&lt;br /&gt;
If you encounter this error, please check the setting &#039;&#039;sql_generate_invisible_primary_key&#039;&#039; in your MySQL server variables. This is most likely set to &#039;&#039;ON&#039;&#039;, but should be set to &#039;&#039;OFF&#039;&#039;. Then restore your database from the backup (as explained above) and try again.&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Translations:Upgrading_from_a_previous_version/8/zh-hant&amp;diff=377787</id>
		<title>Translations:Upgrading from a previous version/8/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Translations:Upgrading_from_a_previous_version/8/zh-hant&amp;diff=377787"/>
		<updated>2024-07-06T07:46:16Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;不幸的是，有一些事情需要您再想想，所以請仔細閱讀以下說明。&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Upgrading_from_a_previous_version/zh-hant&amp;diff=377786</id>
		<title>Upgrading from a previous version/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Upgrading_from_a_previous_version/zh-hant&amp;diff=377786"/>
		<updated>2024-07-06T07:46:01Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt; &amp;lt;div style=&amp;quot;float:right;&amp;quot;&amp;gt;&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;附加頁：{toc}&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt; __TOC__&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Before_you_start...&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=開始之前...=&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&#039;color:#FF0000&#039;&amp;gt;....閱讀此內容，因為它非常重要：&#039;&#039;&#039;務必備份目前的安裝檔案和資料庫！&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
您可以使用資料庫管理工具例如 [https://www.phpmyadmin.net phpMyAdmin] 和檔案管理器來執行此操作！&lt;br /&gt;
如果您不知道怎麼備份，請勿繼續下面的操作並尋找其他人的幫助。&lt;br /&gt;
&lt;br /&gt;
==建議使用 ComfortUpdate==&lt;br /&gt;
&#039;&#039;&#039;最簡單/安全的升級方法就是使用我們的[[ComfortUpdate]]服務。&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Upgrade_instructions_(from_2.x_or_newer_to_any_later_version)&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=升級說明（從2.x或更高版本到任何之後的版本）=&lt;br /&gt;
&lt;br /&gt;
請按照以下說明操作：&lt;br /&gt;
*備份您的檔案和資料庫([[Upgrading from a previous version/zh-hant#Before you start...|我們之前有提過嗎?]])。&lt;br /&gt;
*刪除所有舊文件/資料夾，除了以下檔案：&lt;br /&gt;
**/application/config/security.php - &#039;&#039;&#039;很重要!!這是 LimeSurvey（版本 4 及更高版本）中所有加密資料的金鑰&#039;&#039;&#039;&lt;br /&gt;
**/application/config/config.php;&lt;br /&gt;
**/upload 目錄&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;[[File:help.png]]&#039;&#039;&#039;注意：&#039;&#039;&#039; 如果 /upload/templates 中有任何自訂模板，請確保「更新」這些模板以應對使用新 LimeSurvey 版本所造成的變化。檢查此類變更的最簡單方法是將舊範本與新版本的預設範本進行檔案比較。如果您發現自訂之外的任何差異，則需要更新。&amp;lt;/div&amp;gt;&lt;br /&gt;
*將新檔案從新的 LimeSurvey 套件複製到現有位置。&lt;br /&gt;
*在瀏覽器開啟管理者介面 (e.g. https://www.example.com/limesurvey/admin) 並檢查是否需要升級資料庫架構。&lt;br /&gt;
*完成升級後&#039;&#039;&#039;清空您瀏覽器的快取和Cookies&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Instructions_for_older_versions&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=更舊版本的說明=&lt;br /&gt;
&lt;br /&gt;
不幸的是，有一些事情需要考慮，所以請仔細閱讀以下說明。&lt;br /&gt;
&lt;br /&gt;
==Upgrading from version 1.50 or later to any later 2.xx version==&lt;br /&gt;
*[https://www.limesurvey.org/about-limesurvey/download Download] the latest version of LimeSurvey&lt;br /&gt;
*Backup your files and database ([[Upgrading from a previous version#Before you start...|did we already mention that?]]).&lt;br /&gt;
* Replace all the installation directory files&lt;br /&gt;
** Delete all old files in the existing installation directory&lt;br /&gt;
** Upload and unpack the new files of the new version into the same installation directory&lt;br /&gt;
** 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&lt;br /&gt;
** Copy your /upload directory back to the old location&lt;br /&gt;
** Double-check the &#039;&#039;&#039;permissions&#039;&#039;&#039; set on the directories (write access to &#039;&#039;&#039;/tmp&#039;&#039;&#039;, &#039;&#039;&#039;/upload&#039;&#039;&#039;, and their subdirectories is required) as described in the [[Installation#Set directory permissions|installation wiki]]&lt;br /&gt;
** Open http://&amp;lt;yourdomain&amp;gt;/&amp;lt;yourlimesurveydir&amp;gt;/admin in your browser and follow the instructions (You will find the database data in the old config.php). The existing database will be automatically detected and if necessary, upgraded after confirmation.&lt;br /&gt;
* Check if any special manual checks apply as listed below&lt;br /&gt;
* &#039;&#039;&#039;Now, clear your browser cache and cookies&#039;&#039;&#039; and you are good to go&lt;br /&gt;
&lt;br /&gt;
{{Alert|title=Attention|text=請注意，範本結構隨著從 2.0x 更新到 2.50 或更高版本而變化。您的舊模板將不再起作用，因為模板系統現在使用響應式模板。}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;&#039;&#039;&#039;Special checks after an upgrade&#039;&#039;&#039;:&lt;br /&gt;
*&#039;&#039;&#039;from any earlier version to 2.xx&#039;&#039;&#039;: Proper question codes are mandatory now. After upgrading the installation, check the survey logic of all surveys and correct the codes where necessary&lt;br /&gt;
*&#039;&#039;&#039;from a version earlier than v1.53&#039;&#039;&#039;: When upgrading from a version before v1.53 to the latest version, please check the &#039;&#039;&#039;global user rights&#039;&#039;&#039; of each user. There was a new &#039;&#039;&#039;superadmin&#039;&#039;&#039; right introduced in v1.53 that can give a user the same privilege as the master administration account created during the installation. 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.&lt;br /&gt;
*&#039;&#039;&#039;from any earlier version to v2.06&#039;&#039;&#039;: From 2.05 to 2.06, some unused permissions when editing global permissions for &#039;surveys&#039; were activated. For example, if a user had only the &#039;create&#039; permission in 2.05, the other permissions located to the right of &#039;create&#039; 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 &#039;original&#039; ones after the update. If yes, please edit them accordingly.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Upgrading from version 1.50 or later to any later 1.xx version==&lt;br /&gt;
*[https://www.limesurvey.org/about-limesurvey/download Download] the desired version of LimeSurvey&lt;br /&gt;
* Backup your files and database ([[Upgrading from a previous version#Before you start...|did we already mention that?]]).&lt;br /&gt;
* Replace all the installation directory files&lt;br /&gt;
** Delete all old files in the existing installation directory&lt;br /&gt;
** Upload and unpack the new code version into the same installation directory&lt;br /&gt;
** Edit or replace the &#039;&#039;&#039;config.php&#039;&#039;&#039; file:&lt;br /&gt;
*** If your previous version was &amp;lt; 1.70: Edit the new &#039;&#039;&#039;config.php&#039;&#039;&#039; in order to reflect the changes from the backup &#039;&#039;&#039;config.php&#039;&#039;&#039; file. &#039;&#039;&#039;Do not just overwrite the new &#039;&#039;&#039;config.php&#039;&#039;&#039; with your old one!&#039;&#039;&#039;&lt;br /&gt;
*** If your previous version was &amp;gt;= 1.70: Simply replace the new &#039;&#039;&#039;config.php&#039;&#039;&#039; with your backup &#039;&#039;&#039;config.php&#039;&#039;&#039; file (as the file format has not changed)&lt;br /&gt;
** 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&lt;br /&gt;
** Copy your /upload directory back to the old location&lt;br /&gt;
** Double-check the &#039;&#039;&#039;permissions&#039;&#039;&#039; set on the directories of LimeSurvey (write access to &#039;&#039;&#039;/tmp&#039;&#039;&#039;, &#039;&#039;&#039;/upload&#039;&#039;&#039;, and to their subdirectories is required) as described in the [[Installation#Set Directory permissions|installation wiki]]&lt;br /&gt;
* Finish the installation/upgrade process&lt;br /&gt;
** Once you open the URL to your LimeSurvey administration, the database tables will be updated after confirmation&lt;br /&gt;
** Remove or rename the /admin/install directory as/if instructed by the installation script&lt;br /&gt;
** Check if any special manual checks apply (as listed below)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;&#039;&#039;&#039;Special checks after an upgrade&#039;&#039;&#039;:&lt;br /&gt;
*&#039;&#039;&#039;From a version earlier than v1.53&#039;&#039;&#039;: When upgrading from a version before v1.53 to the latest version, please check the &#039;&#039;&#039;global user rights&#039;&#039;&#039; of each user. There was a new &#039;&#039;&#039;superadmin&#039;&#039;&#039; 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.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Upgrading_from_a_version_earlier_than_v1.50_(v1.0_through_v1.44)&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==從 v1.50 之前的版本升級（v1.0 到 v1.44）==&lt;br /&gt;
&lt;br /&gt;
Since the data structure and a lot of other things were changed, &#039;&#039;&#039;upgrading from any version previous to v1.50 is &amp;lt;u&amp;gt;NOT&amp;lt;/u&amp;gt; possible&#039;&#039;&#039;. 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.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Upgrading_using_CLI&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
= 使用 CLI 升級 =&lt;br /&gt;
&lt;br /&gt;
You can upgrade the database via the PHP CLI: &amp;lt;code&amp;gt;php application/commands/console.php updatedb&amp;lt;/code&amp;gt;. This allows you to set up an auto-upgrade system via command line (for example, in a crontab), although it is not recommended.&lt;br /&gt;
&lt;br /&gt;
= Failed database upgrade after manual update/ComfortUpdate=&lt;br /&gt;
Sometimes, even though you did everything correct, things don&#039;t work out they are supposed to during database upgrade.&lt;br /&gt;
That may happen because of various reasons: Different database versions, unexpected data formats or contents, unusual configurations or anything else that did not show up in our tests (yes, we test a lot!)&lt;br /&gt;
&lt;br /&gt;
If you have an error during database update and your LimeSurvey instance ends up in an unusable state, you want to go back to the previous version.&lt;br /&gt;
This assumes that you still have the database and file backup, either from your regular backup or the one created by Comfortupdate.&lt;br /&gt;
&lt;br /&gt;
請執行以下步驟：&lt;br /&gt;
&lt;br /&gt;
*備份現有的 LimeSurvey 目錄和資料庫（是的，再做一次 - 我們叫它第二個備份）&lt;br /&gt;
*從原來的(第一個備份)還原檔案到現存的資料夾(直接覆蓋它們沒關係)&lt;br /&gt;
*刪除目前的資料庫然後從(第一個備份)還原資料&lt;br /&gt;
&lt;br /&gt;
就是這樣。一切都應該恢復正常。&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;關於報告此問題的說明：&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
如果您遇到這樣的問題，請務必在我們的錯誤追蹤網站裡回報此問題：https://bugs.limesurvey.org&lt;br /&gt;
&lt;br /&gt;
未回報的錯誤就是不會被修復的錯誤。請不要等別人回報此錯誤。如果您發現該錯誤已被回報，您還可以透過在錯誤追蹤器中將其標記為「是的，此錯誤影響我」來幫助提高錯誤的優先順序。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;FAQ&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=常見問題=&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Can_I_upgrade_even_if_I_have_active_surveys?&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==即使我有進行中的問卷，我也可以升級嗎？==&lt;br /&gt;
&lt;br /&gt;
是的你可以升級。上面的詳細說明中可能會提到例外。我們強烈建議您在升級後測試您的問卷，以確定您設計的模板是否可以正常運作。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;How_to_convert_*.sql/*.csv_survey_structure_files_to_the_latest_LimeSurvey_version?&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==如何將*.sql/*.csv問卷結構檔轉換為最新的LimeSurvey版本？==&lt;br /&gt;
&lt;br /&gt;
安裝版本 1.50，匯入文件，並將調查結構匯出成為較新的 .csv 格式。然後安裝最新版本 2.x 並匯入 .csv 格式並將其匯出為目前的 .lss 格式。&lt;br /&gt;
&lt;br /&gt;
==Survey theme incompatibility==&lt;br /&gt;
With certain major version updates any custom survey themes will not be compatible, anymore:&lt;br /&gt;
&lt;br /&gt;
* Update from LimeSurvey 2.6 or lower to LimeSurvey 2.50&lt;br /&gt;
* Update from LimeSurvey 5.x or lower to LimeSurvey 6.x&lt;br /&gt;
&lt;br /&gt;
==Error &amp;quot;Multiple primary key defined&amp;quot; when updating MySQL database==&lt;br /&gt;
If you encounter this error, please check the setting &#039;&#039;sql_generate_invisible_primary_key&#039;&#039; in your MySQL server variables. This is most likely set to &#039;&#039;ON&#039;&#039;, but should be set to &#039;&#039;OFF&#039;&#039;. Then restore your database from the backup (as explained above) and try again.&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Translations:Upgrading_from_a_previous_version/7/zh-hant&amp;diff=377785</id>
		<title>Translations:Upgrading from a previous version/7/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Translations:Upgrading_from_a_previous_version/7/zh-hant&amp;diff=377785"/>
		<updated>2024-07-06T07:45:46Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=更舊版本的說明=&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Upgrading_from_a_previous_version/zh-hant&amp;diff=377784</id>
		<title>Upgrading from a previous version/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Upgrading_from_a_previous_version/zh-hant&amp;diff=377784"/>
		<updated>2024-07-06T07:45:01Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt; &amp;lt;div style=&amp;quot;float:right;&amp;quot;&amp;gt;&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;附加頁：{toc}&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt; __TOC__&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Before_you_start...&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=開始之前...=&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&#039;color:#FF0000&#039;&amp;gt;....閱讀此內容，因為它非常重要：&#039;&#039;&#039;務必備份目前的安裝檔案和資料庫！&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
您可以使用資料庫管理工具例如 [https://www.phpmyadmin.net phpMyAdmin] 和檔案管理器來執行此操作！&lt;br /&gt;
如果您不知道怎麼備份，請勿繼續下面的操作並尋找其他人的幫助。&lt;br /&gt;
&lt;br /&gt;
==建議使用 ComfortUpdate==&lt;br /&gt;
&#039;&#039;&#039;最簡單/安全的升級方法就是使用我們的[[ComfortUpdate]]服務。&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Upgrade_instructions_(from_2.x_or_newer_to_any_later_version)&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=升級說明（從2.x或更高版本到任何之後的版本）=&lt;br /&gt;
&lt;br /&gt;
請按照以下說明操作：&lt;br /&gt;
*備份您的檔案和資料庫([[Upgrading from a previous version/zh-hant#Before you start...|我們之前有提過嗎?]])。&lt;br /&gt;
*刪除所有舊文件/資料夾，除了以下檔案：&lt;br /&gt;
**/application/config/security.php - &#039;&#039;&#039;很重要!!這是 LimeSurvey（版本 4 及更高版本）中所有加密資料的金鑰&#039;&#039;&#039;&lt;br /&gt;
**/application/config/config.php;&lt;br /&gt;
**/upload 目錄&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;[[File:help.png]]&#039;&#039;&#039;注意：&#039;&#039;&#039; 如果 /upload/templates 中有任何自訂模板，請確保「更新」這些模板以應對使用新 LimeSurvey 版本所造成的變化。檢查此類變更的最簡單方法是將舊範本與新版本的預設範本進行檔案比較。如果您發現自訂之外的任何差異，則需要更新。&amp;lt;/div&amp;gt;&lt;br /&gt;
*將新檔案從新的 LimeSurvey 套件複製到現有位置。&lt;br /&gt;
*在瀏覽器開啟管理者介面 (e.g. https://www.example.com/limesurvey/admin) 並檢查是否需要升級資料庫架構。&lt;br /&gt;
*完成升級後&#039;&#039;&#039;清空您瀏覽器的快取和Cookies&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Instructions_for_older_versions&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=舊版說明=&lt;br /&gt;
&lt;br /&gt;
不幸的是，有一些事情需要考慮，所以請仔細閱讀以下說明。&lt;br /&gt;
&lt;br /&gt;
==Upgrading from version 1.50 or later to any later 2.xx version==&lt;br /&gt;
*[https://www.limesurvey.org/about-limesurvey/download Download] the latest version of LimeSurvey&lt;br /&gt;
*Backup your files and database ([[Upgrading from a previous version#Before you start...|did we already mention that?]]).&lt;br /&gt;
* Replace all the installation directory files&lt;br /&gt;
** Delete all old files in the existing installation directory&lt;br /&gt;
** Upload and unpack the new files of the new version into the same installation directory&lt;br /&gt;
** 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&lt;br /&gt;
** Copy your /upload directory back to the old location&lt;br /&gt;
** Double-check the &#039;&#039;&#039;permissions&#039;&#039;&#039; set on the directories (write access to &#039;&#039;&#039;/tmp&#039;&#039;&#039;, &#039;&#039;&#039;/upload&#039;&#039;&#039;, and their subdirectories is required) as described in the [[Installation#Set directory permissions|installation wiki]]&lt;br /&gt;
** Open http://&amp;lt;yourdomain&amp;gt;/&amp;lt;yourlimesurveydir&amp;gt;/admin in your browser and follow the instructions (You will find the database data in the old config.php). The existing database will be automatically detected and if necessary, upgraded after confirmation.&lt;br /&gt;
* Check if any special manual checks apply as listed below&lt;br /&gt;
* &#039;&#039;&#039;Now, clear your browser cache and cookies&#039;&#039;&#039; and you are good to go&lt;br /&gt;
&lt;br /&gt;
{{Alert|title=Attention|text=請注意，範本結構隨著從 2.0x 更新到 2.50 或更高版本而變化。您的舊模板將不再起作用，因為模板系統現在使用響應式模板。}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;&#039;&#039;&#039;Special checks after an upgrade&#039;&#039;&#039;:&lt;br /&gt;
*&#039;&#039;&#039;from any earlier version to 2.xx&#039;&#039;&#039;: Proper question codes are mandatory now. After upgrading the installation, check the survey logic of all surveys and correct the codes where necessary&lt;br /&gt;
*&#039;&#039;&#039;from a version earlier than v1.53&#039;&#039;&#039;: When upgrading from a version before v1.53 to the latest version, please check the &#039;&#039;&#039;global user rights&#039;&#039;&#039; of each user. There was a new &#039;&#039;&#039;superadmin&#039;&#039;&#039; right introduced in v1.53 that can give a user the same privilege as the master administration account created during the installation. 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.&lt;br /&gt;
*&#039;&#039;&#039;from any earlier version to v2.06&#039;&#039;&#039;: From 2.05 to 2.06, some unused permissions when editing global permissions for &#039;surveys&#039; were activated. For example, if a user had only the &#039;create&#039; permission in 2.05, the other permissions located to the right of &#039;create&#039; 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 &#039;original&#039; ones after the update. If yes, please edit them accordingly.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Upgrading from version 1.50 or later to any later 1.xx version==&lt;br /&gt;
*[https://www.limesurvey.org/about-limesurvey/download Download] the desired version of LimeSurvey&lt;br /&gt;
* Backup your files and database ([[Upgrading from a previous version#Before you start...|did we already mention that?]]).&lt;br /&gt;
* Replace all the installation directory files&lt;br /&gt;
** Delete all old files in the existing installation directory&lt;br /&gt;
** Upload and unpack the new code version into the same installation directory&lt;br /&gt;
** Edit or replace the &#039;&#039;&#039;config.php&#039;&#039;&#039; file:&lt;br /&gt;
*** If your previous version was &amp;lt; 1.70: Edit the new &#039;&#039;&#039;config.php&#039;&#039;&#039; in order to reflect the changes from the backup &#039;&#039;&#039;config.php&#039;&#039;&#039; file. &#039;&#039;&#039;Do not just overwrite the new &#039;&#039;&#039;config.php&#039;&#039;&#039; with your old one!&#039;&#039;&#039;&lt;br /&gt;
*** If your previous version was &amp;gt;= 1.70: Simply replace the new &#039;&#039;&#039;config.php&#039;&#039;&#039; with your backup &#039;&#039;&#039;config.php&#039;&#039;&#039; file (as the file format has not changed)&lt;br /&gt;
** 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&lt;br /&gt;
** Copy your /upload directory back to the old location&lt;br /&gt;
** Double-check the &#039;&#039;&#039;permissions&#039;&#039;&#039; set on the directories of LimeSurvey (write access to &#039;&#039;&#039;/tmp&#039;&#039;&#039;, &#039;&#039;&#039;/upload&#039;&#039;&#039;, and to their subdirectories is required) as described in the [[Installation#Set Directory permissions|installation wiki]]&lt;br /&gt;
* Finish the installation/upgrade process&lt;br /&gt;
** Once you open the URL to your LimeSurvey administration, the database tables will be updated after confirmation&lt;br /&gt;
** Remove or rename the /admin/install directory as/if instructed by the installation script&lt;br /&gt;
** Check if any special manual checks apply (as listed below)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;&#039;&#039;&#039;Special checks after an upgrade&#039;&#039;&#039;:&lt;br /&gt;
*&#039;&#039;&#039;From a version earlier than v1.53&#039;&#039;&#039;: When upgrading from a version before v1.53 to the latest version, please check the &#039;&#039;&#039;global user rights&#039;&#039;&#039; of each user. There was a new &#039;&#039;&#039;superadmin&#039;&#039;&#039; 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.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Upgrading_from_a_version_earlier_than_v1.50_(v1.0_through_v1.44)&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==從 v1.50 之前的版本升級（v1.0 到 v1.44）==&lt;br /&gt;
&lt;br /&gt;
Since the data structure and a lot of other things were changed, &#039;&#039;&#039;upgrading from any version previous to v1.50 is &amp;lt;u&amp;gt;NOT&amp;lt;/u&amp;gt; possible&#039;&#039;&#039;. 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.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Upgrading_using_CLI&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
= 使用 CLI 升級 =&lt;br /&gt;
&lt;br /&gt;
You can upgrade the database via the PHP CLI: &amp;lt;code&amp;gt;php application/commands/console.php updatedb&amp;lt;/code&amp;gt;. This allows you to set up an auto-upgrade system via command line (for example, in a crontab), although it is not recommended.&lt;br /&gt;
&lt;br /&gt;
= Failed database upgrade after manual update/ComfortUpdate=&lt;br /&gt;
Sometimes, even though you did everything correct, things don&#039;t work out they are supposed to during database upgrade.&lt;br /&gt;
That may happen because of various reasons: Different database versions, unexpected data formats or contents, unusual configurations or anything else that did not show up in our tests (yes, we test a lot!)&lt;br /&gt;
&lt;br /&gt;
If you have an error during database update and your LimeSurvey instance ends up in an unusable state, you want to go back to the previous version.&lt;br /&gt;
This assumes that you still have the database and file backup, either from your regular backup or the one created by Comfortupdate.&lt;br /&gt;
&lt;br /&gt;
請執行以下步驟：&lt;br /&gt;
&lt;br /&gt;
*備份現有的 LimeSurvey 目錄和資料庫（是的，再做一次 - 我們叫它第二個備份）&lt;br /&gt;
*從原來的(第一個備份)還原檔案到現存的資料夾(直接覆蓋它們沒關係)&lt;br /&gt;
*刪除目前的資料庫然後從(第一個備份)還原資料&lt;br /&gt;
&lt;br /&gt;
就是這樣。一切都應該恢復正常。&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;關於報告此問題的說明：&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
如果您遇到這樣的問題，請務必在我們的錯誤追蹤網站裡回報此問題：https://bugs.limesurvey.org&lt;br /&gt;
&lt;br /&gt;
未回報的錯誤就是不會被修復的錯誤。請不要等別人回報此錯誤。如果您發現該錯誤已被回報，您還可以透過在錯誤追蹤器中將其標記為「是的，此錯誤影響我」來幫助提高錯誤的優先順序。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;FAQ&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=常見問題=&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Can_I_upgrade_even_if_I_have_active_surveys?&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==即使我有進行中的問卷，我也可以升級嗎？==&lt;br /&gt;
&lt;br /&gt;
是的你可以升級。上面的詳細說明中可能會提到例外。我們強烈建議您在升級後測試您的問卷，以確定您設計的模板是否可以正常運作。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;How_to_convert_*.sql/*.csv_survey_structure_files_to_the_latest_LimeSurvey_version?&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==如何將*.sql/*.csv問卷結構檔轉換為最新的LimeSurvey版本？==&lt;br /&gt;
&lt;br /&gt;
安裝版本 1.50，匯入文件，並將調查結構匯出成為較新的 .csv 格式。然後安裝最新版本 2.x 並匯入 .csv 格式並將其匯出為目前的 .lss 格式。&lt;br /&gt;
&lt;br /&gt;
==Survey theme incompatibility==&lt;br /&gt;
With certain major version updates any custom survey themes will not be compatible, anymore:&lt;br /&gt;
&lt;br /&gt;
* Update from LimeSurvey 2.6 or lower to LimeSurvey 2.50&lt;br /&gt;
* Update from LimeSurvey 5.x or lower to LimeSurvey 6.x&lt;br /&gt;
&lt;br /&gt;
==Error &amp;quot;Multiple primary key defined&amp;quot; when updating MySQL database==&lt;br /&gt;
If you encounter this error, please check the setting &#039;&#039;sql_generate_invisible_primary_key&#039;&#039; in your MySQL server variables. This is most likely set to &#039;&#039;ON&#039;&#039;, but should be set to &#039;&#039;OFF&#039;&#039;. Then restore your database from the backup (as explained above) and try again.&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Translations:Upgrading_from_a_previous_version/27/zh-hant&amp;diff=377783</id>
		<title>Translations:Upgrading from a previous version/27/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Translations:Upgrading_from_a_previous_version/27/zh-hant&amp;diff=377783"/>
		<updated>2024-07-06T07:44:35Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;[[File:help.png]]&#039;&#039;&#039;注意：&#039;&#039;&#039; 如果 /upload/templates 中有任何自訂模板，請確保「更新」這些模板以應對使用新 LimeSurvey 版本所造成的變化。檢查此類變更的最簡單方法是將舊範本與新版本的預設範本進行檔案比較。如果您發現自訂之外的任何差異，則需要更新。&amp;lt;/div&amp;gt;&lt;br /&gt;
*將新檔案從新的 LimeSurvey 套件複製到現有位置。&lt;br /&gt;
*在瀏覽器開啟管理者介面 (e.g. https://www.example.com/limesurvey/admin) 並檢查是否需要升級資料庫架構。&lt;br /&gt;
*完成升級後&#039;&#039;&#039;清空您瀏覽器的快取和Cookies&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Upgrading_from_a_previous_version/zh-hant&amp;diff=377782</id>
		<title>Upgrading from a previous version/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Upgrading_from_a_previous_version/zh-hant&amp;diff=377782"/>
		<updated>2024-07-06T07:41:01Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: Created page with &amp;quot;&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;File:help.png&amp;#039;&amp;#039;&amp;#039;注意：&amp;#039;&amp;#039;&amp;#039; 如果 /upload/templates 中有任何自訂模板，請確保「更新」這些模板以應對使用新 LimeSurvey 版本所造成的變化。檢查此類變更的最簡單方法是將舊範本與新版本的預設範本進行檔案比較。如果您發現自訂之外的任何差異，則需要更新。&amp;lt;/div&amp;gt; *將新檔案從新的 LimeSurvey 套件複製到現有位置。 *在瀏覽器開啟管理者介面(如:http...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt; &amp;lt;div style=&amp;quot;float:right;&amp;quot;&amp;gt;&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;附加頁：{toc}&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt; __TOC__&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Before_you_start...&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=開始之前...=&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&#039;color:#FF0000&#039;&amp;gt;....閱讀此內容，因為它非常重要：&#039;&#039;&#039;務必備份目前的安裝檔案和資料庫！&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
您可以使用資料庫管理工具例如 [https://www.phpmyadmin.net phpMyAdmin] 和檔案管理器來執行此操作！&lt;br /&gt;
如果您不知道怎麼備份，請勿繼續下面的操作並尋找其他人的幫助。&lt;br /&gt;
&lt;br /&gt;
==建議使用 ComfortUpdate==&lt;br /&gt;
&#039;&#039;&#039;最簡單/安全的升級方法就是使用我們的[[ComfortUpdate]]服務。&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Upgrade_instructions_(from_2.x_or_newer_to_any_later_version)&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=升級說明（從2.x或更高版本到任何之後的版本）=&lt;br /&gt;
&lt;br /&gt;
請按照以下說明操作：&lt;br /&gt;
*備份您的檔案和資料庫([[Upgrading from a previous version/zh-hant#Before you start...|我們之前有提過嗎?]])。&lt;br /&gt;
*刪除所有舊文件/資料夾，除了以下檔案：&lt;br /&gt;
**/application/config/security.php - &#039;&#039;&#039;很重要!!這是 LimeSurvey（版本 4 及更高版本）中所有加密資料的金鑰&#039;&#039;&#039;&lt;br /&gt;
**/application/config/config.php;&lt;br /&gt;
**/upload 目錄&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;[[File:help.png]]&#039;&#039;&#039;注意：&#039;&#039;&#039; 如果 /upload/templates 中有任何自訂模板，請確保「更新」這些模板以應對使用新 LimeSurvey 版本所造成的變化。檢查此類變更的最簡單方法是將舊範本與新版本的預設範本進行檔案比較。如果您發現自訂之外的任何差異，則需要更新。&amp;lt;/div&amp;gt;&lt;br /&gt;
*將新檔案從新的 LimeSurvey 套件複製到現有位置。&lt;br /&gt;
*在瀏覽器開啟管理者介面(如:https://www.example.com/limesurvey/admin)並檢查是否需要升級資料庫架構。&lt;br /&gt;
*完成升級後&#039;&#039;&#039;清空您瀏覽器的快取和Cookies&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Instructions_for_older_versions&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=舊版說明=&lt;br /&gt;
&lt;br /&gt;
不幸的是，有一些事情需要考慮，所以請仔細閱讀以下說明。&lt;br /&gt;
&lt;br /&gt;
==Upgrading from version 1.50 or later to any later 2.xx version==&lt;br /&gt;
*[https://www.limesurvey.org/about-limesurvey/download Download] the latest version of LimeSurvey&lt;br /&gt;
*Backup your files and database ([[Upgrading from a previous version#Before you start...|did we already mention that?]]).&lt;br /&gt;
* Replace all the installation directory files&lt;br /&gt;
** Delete all old files in the existing installation directory&lt;br /&gt;
** Upload and unpack the new files of the new version into the same installation directory&lt;br /&gt;
** 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&lt;br /&gt;
** Copy your /upload directory back to the old location&lt;br /&gt;
** Double-check the &#039;&#039;&#039;permissions&#039;&#039;&#039; set on the directories (write access to &#039;&#039;&#039;/tmp&#039;&#039;&#039;, &#039;&#039;&#039;/upload&#039;&#039;&#039;, and their subdirectories is required) as described in the [[Installation#Set directory permissions|installation wiki]]&lt;br /&gt;
** Open http://&amp;lt;yourdomain&amp;gt;/&amp;lt;yourlimesurveydir&amp;gt;/admin in your browser and follow the instructions (You will find the database data in the old config.php). The existing database will be automatically detected and if necessary, upgraded after confirmation.&lt;br /&gt;
* Check if any special manual checks apply as listed below&lt;br /&gt;
* &#039;&#039;&#039;Now, clear your browser cache and cookies&#039;&#039;&#039; and you are good to go&lt;br /&gt;
&lt;br /&gt;
{{Alert|title=Attention|text=請注意，範本結構隨著從 2.0x 更新到 2.50 或更高版本而變化。您的舊模板將不再起作用，因為模板系統現在使用響應式模板。}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;&#039;&#039;&#039;Special checks after an upgrade&#039;&#039;&#039;:&lt;br /&gt;
*&#039;&#039;&#039;from any earlier version to 2.xx&#039;&#039;&#039;: Proper question codes are mandatory now. After upgrading the installation, check the survey logic of all surveys and correct the codes where necessary&lt;br /&gt;
*&#039;&#039;&#039;from a version earlier than v1.53&#039;&#039;&#039;: When upgrading from a version before v1.53 to the latest version, please check the &#039;&#039;&#039;global user rights&#039;&#039;&#039; of each user. There was a new &#039;&#039;&#039;superadmin&#039;&#039;&#039; right introduced in v1.53 that can give a user the same privilege as the master administration account created during the installation. 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.&lt;br /&gt;
*&#039;&#039;&#039;from any earlier version to v2.06&#039;&#039;&#039;: From 2.05 to 2.06, some unused permissions when editing global permissions for &#039;surveys&#039; were activated. For example, if a user had only the &#039;create&#039; permission in 2.05, the other permissions located to the right of &#039;create&#039; 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 &#039;original&#039; ones after the update. If yes, please edit them accordingly.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Upgrading from version 1.50 or later to any later 1.xx version==&lt;br /&gt;
*[https://www.limesurvey.org/about-limesurvey/download Download] the desired version of LimeSurvey&lt;br /&gt;
* Backup your files and database ([[Upgrading from a previous version#Before you start...|did we already mention that?]]).&lt;br /&gt;
* Replace all the installation directory files&lt;br /&gt;
** Delete all old files in the existing installation directory&lt;br /&gt;
** Upload and unpack the new code version into the same installation directory&lt;br /&gt;
** Edit or replace the &#039;&#039;&#039;config.php&#039;&#039;&#039; file:&lt;br /&gt;
*** If your previous version was &amp;lt; 1.70: Edit the new &#039;&#039;&#039;config.php&#039;&#039;&#039; in order to reflect the changes from the backup &#039;&#039;&#039;config.php&#039;&#039;&#039; file. &#039;&#039;&#039;Do not just overwrite the new &#039;&#039;&#039;config.php&#039;&#039;&#039; with your old one!&#039;&#039;&#039;&lt;br /&gt;
*** If your previous version was &amp;gt;= 1.70: Simply replace the new &#039;&#039;&#039;config.php&#039;&#039;&#039; with your backup &#039;&#039;&#039;config.php&#039;&#039;&#039; file (as the file format has not changed)&lt;br /&gt;
** 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&lt;br /&gt;
** Copy your /upload directory back to the old location&lt;br /&gt;
** Double-check the &#039;&#039;&#039;permissions&#039;&#039;&#039; set on the directories of LimeSurvey (write access to &#039;&#039;&#039;/tmp&#039;&#039;&#039;, &#039;&#039;&#039;/upload&#039;&#039;&#039;, and to their subdirectories is required) as described in the [[Installation#Set Directory permissions|installation wiki]]&lt;br /&gt;
* Finish the installation/upgrade process&lt;br /&gt;
** Once you open the URL to your LimeSurvey administration, the database tables will be updated after confirmation&lt;br /&gt;
** Remove or rename the /admin/install directory as/if instructed by the installation script&lt;br /&gt;
** Check if any special manual checks apply (as listed below)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;&#039;&#039;&#039;Special checks after an upgrade&#039;&#039;&#039;:&lt;br /&gt;
*&#039;&#039;&#039;From a version earlier than v1.53&#039;&#039;&#039;: When upgrading from a version before v1.53 to the latest version, please check the &#039;&#039;&#039;global user rights&#039;&#039;&#039; of each user. There was a new &#039;&#039;&#039;superadmin&#039;&#039;&#039; 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.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Upgrading_from_a_version_earlier_than_v1.50_(v1.0_through_v1.44)&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==從 v1.50 之前的版本升級（v1.0 到 v1.44）==&lt;br /&gt;
&lt;br /&gt;
Since the data structure and a lot of other things were changed, &#039;&#039;&#039;upgrading from any version previous to v1.50 is &amp;lt;u&amp;gt;NOT&amp;lt;/u&amp;gt; possible&#039;&#039;&#039;. 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.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Upgrading_using_CLI&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
= 使用 CLI 升級 =&lt;br /&gt;
&lt;br /&gt;
You can upgrade the database via the PHP CLI: &amp;lt;code&amp;gt;php application/commands/console.php updatedb&amp;lt;/code&amp;gt;. This allows you to set up an auto-upgrade system via command line (for example, in a crontab), although it is not recommended.&lt;br /&gt;
&lt;br /&gt;
= Failed database upgrade after manual update/ComfortUpdate=&lt;br /&gt;
Sometimes, even though you did everything correct, things don&#039;t work out they are supposed to during database upgrade.&lt;br /&gt;
That may happen because of various reasons: Different database versions, unexpected data formats or contents, unusual configurations or anything else that did not show up in our tests (yes, we test a lot!)&lt;br /&gt;
&lt;br /&gt;
If you have an error during database update and your LimeSurvey instance ends up in an unusable state, you want to go back to the previous version.&lt;br /&gt;
This assumes that you still have the database and file backup, either from your regular backup or the one created by Comfortupdate.&lt;br /&gt;
&lt;br /&gt;
請執行以下步驟：&lt;br /&gt;
&lt;br /&gt;
*備份現有的 LimeSurvey 目錄和資料庫（是的，再做一次 - 我們叫它第二個備份）&lt;br /&gt;
*從原來的(第一個備份)還原檔案到現存的資料夾(直接覆蓋它們沒關係)&lt;br /&gt;
*刪除目前的資料庫然後從(第一個備份)還原資料&lt;br /&gt;
&lt;br /&gt;
就是這樣。一切都應該恢復正常。&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;關於報告此問題的說明：&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
如果您遇到這樣的問題，請務必在我們的錯誤追蹤網站裡回報此問題：https://bugs.limesurvey.org&lt;br /&gt;
&lt;br /&gt;
未回報的錯誤就是不會被修復的錯誤。請不要等別人回報此錯誤。如果您發現該錯誤已被回報，您還可以透過在錯誤追蹤器中將其標記為「是的，此錯誤影響我」來幫助提高錯誤的優先順序。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;FAQ&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=常見問題=&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Can_I_upgrade_even_if_I_have_active_surveys?&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==即使我有進行中的問卷，我也可以升級嗎？==&lt;br /&gt;
&lt;br /&gt;
是的你可以升級。上面的詳細說明中可能會提到例外。我們強烈建議您在升級後測試您的問卷，以確定您設計的模板是否可以正常運作。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;How_to_convert_*.sql/*.csv_survey_structure_files_to_the_latest_LimeSurvey_version?&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==如何將*.sql/*.csv問卷結構檔轉換為最新的LimeSurvey版本？==&lt;br /&gt;
&lt;br /&gt;
安裝版本 1.50，匯入文件，並將調查結構匯出成為較新的 .csv 格式。然後安裝最新版本 2.x 並匯入 .csv 格式並將其匯出為目前的 .lss 格式。&lt;br /&gt;
&lt;br /&gt;
==Survey theme incompatibility==&lt;br /&gt;
With certain major version updates any custom survey themes will not be compatible, anymore:&lt;br /&gt;
&lt;br /&gt;
* Update from LimeSurvey 2.6 or lower to LimeSurvey 2.50&lt;br /&gt;
* Update from LimeSurvey 5.x or lower to LimeSurvey 6.x&lt;br /&gt;
&lt;br /&gt;
==Error &amp;quot;Multiple primary key defined&amp;quot; when updating MySQL database==&lt;br /&gt;
If you encounter this error, please check the setting &#039;&#039;sql_generate_invisible_primary_key&#039;&#039; in your MySQL server variables. This is most likely set to &#039;&#039;ON&#039;&#039;, but should be set to &#039;&#039;OFF&#039;&#039;. Then restore your database from the backup (as explained above) and try again.&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Translations:Upgrading_from_a_previous_version/27/zh-hant&amp;diff=377781</id>
		<title>Translations:Upgrading from a previous version/27/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Translations:Upgrading_from_a_previous_version/27/zh-hant&amp;diff=377781"/>
		<updated>2024-07-06T07:40:14Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: Created page with &amp;quot;&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;File:help.png&amp;#039;&amp;#039;&amp;#039;注意：&amp;#039;&amp;#039;&amp;#039; 如果 /upload/templates 中有任何自訂模板，請確保「更新」這些模板以應對使用新 LimeSurvey 版本所造成的變化。檢查此類變更的最簡單方法是將舊範本與新版本的預設範本進行檔案比較。如果您發現自訂之外的任何差異，則需要更新。&amp;lt;/div&amp;gt; *將新檔案從新的 LimeSurvey 套件複製到現有位置。 *在瀏覽器開啟管理者介面(如:http...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;[[File:help.png]]&#039;&#039;&#039;注意：&#039;&#039;&#039; 如果 /upload/templates 中有任何自訂模板，請確保「更新」這些模板以應對使用新 LimeSurvey 版本所造成的變化。檢查此類變更的最簡單方法是將舊範本與新版本的預設範本進行檔案比較。如果您發現自訂之外的任何差異，則需要更新。&amp;lt;/div&amp;gt;&lt;br /&gt;
*將新檔案從新的 LimeSurvey 套件複製到現有位置。&lt;br /&gt;
*在瀏覽器開啟管理者介面(如:https://www.example.com/limesurvey/admin)並檢查是否需要升級資料庫架構。&lt;br /&gt;
*完成升級後&#039;&#039;&#039;清空您瀏覽器的快取和Cookies&#039;&#039;&#039;&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Installation_-_LimeSurvey_CE/zh-hant&amp;diff=377780</id>
		<title>Installation - LimeSurvey CE/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Installation_-_LimeSurvey_CE/zh-hant&amp;diff=377780"/>
		<updated>2024-07-06T07:28:02Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;注意：這些安裝說明適用於 2.0 或更高版本。 1.92 的舊安裝說明可在 [[Installation Version 1.92 or older|此處]] 找到，從舊版升級為新版的說明可在 [[Upgrading from a previous version|此處]] 找到。&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;General&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==概觀==&lt;br /&gt;
&lt;br /&gt;
LimeSurvey 提供了兩種安裝的方法：&lt;br /&gt;
*在您的網頁伺服器上：&amp;lt;br /&amp;gt;在這種情況下，需從步驟 1 開始按照本頁上的說明進行操作。&lt;br /&gt;
&lt;br /&gt;
*在您的本機 Windows PC 上：&amp;lt;br /&amp;gt;如果您想在自己的電腦建立問卷（主要是出於速度、開發或測試原因）並在稍後將其佈署到您的網頁伺服器上，通常只需在本機 PC 上安裝 LimeSurvey。為此，我們準備了一個特殊的 LimeSurvey 安裝包，其中包括網頁伺服器、資料庫、LimeSurvey 應用程式和 [[Installation of the LimeSurvey XAMPP package|如何安裝的說明]]。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Make_sure_you_can_use_LimeSurvey_on_your_website&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==確認 LimeSurvey 能夠在您的伺服器上執行==&lt;br /&gt;
&lt;br /&gt;
確認伺服器符合以下所有需求:&lt;br /&gt;
&lt;br /&gt;
{{Note|安裝過程中也將檢查最低需求！}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;LimeSurvey 6.x&#039;&#039;&#039;的最低需求:&lt;br /&gt;
* 至少 250MB 硬碟空間&lt;br /&gt;
* MariaDB 10.3.38 或更高版本 &#039;&#039;&#039;或&#039;&#039;&#039; MySQL 8 或更高版本 &#039;&#039;&#039;或&#039;&#039;&#039; Microsoft SQL Server 2008 或更高版本 &#039;&#039;&#039;或&#039;&#039;&#039; Postgres 12 或更高版本。&lt;br /&gt;
* PHP 版本需求:&lt;br /&gt;
** LS 6.x 需 PHP 7.4.x ~ 8.x&lt;br /&gt;
** LS 5.x 需 PHP 7.2.5 ~ 8.0.x &lt;br /&gt;
** LS 3.x 需 PHP 5.5.9 ~ 7.4.x&lt;br /&gt;
* php.ini 裡 `short_open_tag` 參數設定需設為 `ON`&lt;br /&gt;
* 以下的 PHP 模組/擴充功能庫需啟用:&lt;br /&gt;
** [[Installation_FAQ/zh-hant#mbstring_(Multibyte_String_Functions)_library_是甚麼?|mbstring (Multibyte String Functions)]] 擴充功能庫&lt;br /&gt;
** 在Windows環境 需要 MySQL 的PDO驅動程式庫 (pdo_mysql 或 pdo_mysqli) 或 Postgres (pdo_pgsql) 或 MSSQL ([https://php.net/manual/en/ref.pdo-sqlsrv.php pdo_sqlsrv] 而 Linux環境需要 [http://www.php.net/manual/en/ref.pdo-dblib.php pdo_dblib] )。&lt;br /&gt;
** 還有, 我們建議常用的PHP程式庫都應該啟用&lt;br /&gt;
*** hash&lt;br /&gt;
*** session&lt;br /&gt;
*** openssl or mcrypt&lt;br /&gt;
*** fileinfo&lt;br /&gt;
*** SimpleXML&lt;br /&gt;
*** 等等…&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;注意：如果您使用 dblib PDO 驅動程式從 Linux 連接到 Windows 伺服器上的 MSSQL 資料庫，則需要正確設定底層的 FreeTDS。請查看[[Troubleshooting]]頁面以獲取更多資訊。&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
選擇性PHP擴充:&lt;br /&gt;
* &#039;&#039;&#039;GD-Library&#039;&#039;&#039; &#039;&#039;&#039;with FreeType support&#039;&#039;&#039; 需安裝才能使用驗證碼、漂亮的統計圖或透過HTML編輯器上傳圖片 - 請參閱[https://php.net/manual/image.setup.php PHP GD-Library Extension documentation]&lt;br /&gt;
* &#039;&#039;&#039;IMAP&#039;&#039;&#039; (pretty standard) 需安裝才能使用 [[Email bounce tracking system|電子郵件退回追蹤系統]] - 請參閱[https://php.net/manual/imap.setup.php PHP IMAP Extension documentation]&lt;br /&gt;
* &#039;&#039;&#039;LDAP&#039;&#039;&#039; 需安裝才能透過LDAP匯入問卷參與者 - 請參閱[https://php.net/manual/en/book.ldap.php PHP LDAP Documentation]&lt;br /&gt;
* &#039;&#039;&#039;Zip&#039;&#039;&#039; (pretty standard) 需安裝才能使用模板上傳、.zip 資源匯入和 Excel 匯出 - 請參閱[https://php.net/manual/zip.setup.php PHP Zip Extension documentation]&lt;br /&gt;
* &#039;&#039;&#039;Zlib&#039;&#039;&#039;（pretty standard）需安裝才能使用 [[ComfortUpdate]] - 請參閱[https://php.net/manual/zlib.setup.php PHP Zlib Extension documentation]&lt;br /&gt;
&lt;br /&gt;
在大多數情況下，您的網頁伺服器供應商或系統管理員能夠協助您解決這些選用元件的問題。&lt;br /&gt;
&lt;br /&gt;
如果您想透過 Microsoft 的 IIS 執行，請查看 [[Installation on XP with IIS]] 可能也會有所幫助。&lt;br /&gt;
&lt;br /&gt;
===瀏覽器相容性===&lt;br /&gt;
&#039;&#039;&#039;對於問卷填寫方&#039;&#039;&#039;, 我們目前支援 IE11 (除了相容性模式) 和其他較新的瀏覽器如 Edge, FireFox, Chrome, Opera 等等，並需啟用JavaScript。 &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;對於問卷管理方&#039;&#039;&#039;,我們目前支援 Edge 和所有較新的瀏覽器，如 FireFox、Chrome、Opera 等等，並需啟用 JavaScript。&amp;lt;u&amp;gt;問卷管理者部份我們不再支援任何 Internet Explorer 版本。&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====螢幕解析度====&lt;br /&gt;
對於問卷填寫方我們支援任何螢幕解析度(360px x 640px 還有以上)。&lt;br /&gt;
對於問卷管理方最小支援螢幕解析度是1280px x 1024px。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Hosting_for_LimeSurvey&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
===LimeSurvey 託管===&lt;br /&gt;
&lt;br /&gt;
LimeSurvey 應該能夠執行於大多數提供 PHP 和 MySQL 的伺服器供應商。如果您想要找現成的 LimeSurvey 版本，您可以嘗試 [https://www.limesurvey.org/editions-and-prices/limesurvey-pro/editions-and-prices-professional LimeSurvey Cloud]，或參考我們的[[LimeSurvey-compatible hosting companies|LimeSurvey相容託管供應商清單]]。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Download_the_LimeSurvey_package&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==下載 LimeSurvey 套件==&lt;br /&gt;
&lt;br /&gt;
[https://community.limesurvey.org/downloads/ 下載]最新穩定的 LimeSurvey zip 安裝套件（您也可以選用 gzip、bz2 和 7zip 套件）並將其儲存到本機磁碟中。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Unpack_the_LimeSurvey_package&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==解壓縮 LimeSurvey 套件==&lt;br /&gt;
&lt;br /&gt;
使用您喜歡的壓縮軟體將 zip 檔案解壓縮到選定的目錄/資料夾中。解壓縮檔案時，請確保檔案的目錄結構（這是大多數解壓縮程式的預設行為）。安裝目錄的路徑名不應包含&#039;(&#039;或&#039;)&#039;特殊字符，但可以包含&#039;&#039;&#039;空格&#039;&#039;&#039;字符。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Collect_information_about_your_server&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==收集您伺服器的資訊==&lt;br /&gt;
&lt;br /&gt;
您需要取得以下資訊才能在網頁伺服器上正確安裝 LimeSurvey：&lt;br /&gt;
*您要建立 limesurvey 的域名來指向它的服務 (例如 &#039;&#039;http://my.domain.com/limesurvey&#039;&#039;)。&lt;br /&gt;
*limesurvey 在伺服器所在的實質位置(例如 &#039;&#039;/home/usr/htdocs/limesurvey&#039;&#039;)。&lt;br /&gt;
*您資料庫的 IP/網路位置(例如 &#039;&#039;localhost&#039;&#039;)。&lt;br /&gt;
*如果您的資料庫使用非標準連接埠，您就要找出埠號。&lt;br /&gt;
*您資料庫使用的使用者名稱及密碼。&lt;br /&gt;
*大部分資料庫的供應商不會讓應用程式建立資料庫，此時您需要自行建立。  如果您是使用這類的供應商，請自行建立一個資料庫(例如 &#039;&#039;limesurvey&#039;&#039;)。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Upload_the_files_to_your_web_server&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==將檔案上傳到您的網頁伺服器==&lt;br /&gt;
&lt;br /&gt;
使用 FTP 程式（例如 FileZilla）連接到您的網頁伺服器並建立一個目錄來儲存程式，然後將解壓縮後的檔案上傳到此目錄。請注意，務必以&#039;&#039;&#039;二進位模式上傳檔案&#039;&#039;&#039;(請從 FTP 程式的設定裡檢查)。使用 ASCII 模式上傳可能會導致預料之外的錯誤（例如 安裝過程中出現「找不到類別」錯誤），而且圖片檔也可能無法正確上傳。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Set_directory_permissions&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==設定目錄權限==&lt;br /&gt;
&lt;br /&gt;
為了使程式正常工作，它需要某些目錄的訪問權限 - 尤其Linux/*nix 系統更是如此。&lt;br /&gt;
* &#039;&#039;&#039;&amp;quot;/limesurvey/tmp&amp;quot;&#039;&#039;&#039; 目錄(包含所有的子目錄和檔案)用於匯入和上傳，應為您的網頁伺服器開啟&#039;&#039;讀和寫&#039;&#039;權限。&lt;br /&gt;
* &#039;&#039;&#039;&amp;quot;/limesurvey/upload/&amp;quot;&#039;&#039;&#039; 目錄(包含所有的子目錄和檔案)也必須為您的網頁伺服器開啟&#039;&#039;讀和寫&#039;&#039;權限，以便啟用圖片和媒體檔案上傳功能。&lt;br /&gt;
* &#039;&#039;&#039;&amp;quot;/limesurvey/application/config/&amp;quot;&#039;&#039;&#039; 目錄也需要讓網頁伺服器有&#039;&#039;讀和寫&#039;&#039; 的權限。&lt;br /&gt;
*其他目錄可以設定為&#039;&#039;唯讀&#039;&#039;。您可能會想要在 Linux/Unix 中將 /limesurvey/admin 目錄中的每個檔案權限設定為&#039;&#039;唯讀&#039;&#039;。&lt;br /&gt;
&lt;br /&gt;
{{Alert|如果您使用的是 Linux，則設定權限取決於您的網頁伺服器配置。例如，如果您在 CentOS 上使用 Apache HTTPD，請鍵入 &#039;&#039;&#039;chmod -R 755 &amp;lt;directory&amp;gt; ; chown -R apache &amp;lt;directory&amp;gt;&#039;&#039;&#039;。這將賦予所有使用者讀取權限，並且您的網頁伺服器將擁有寫入權限。有關 Linux 權限的更多資訊，請查看 [https://www.linux.com/learn/tutorials/309527-understanding-linux-file-permissions 這個連結]。}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Create_a_database_user&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==建立資料庫使用者==&lt;br /&gt;
&lt;br /&gt;
LimeSurvey 將建立一個資料庫及所有需要的資料表。為此，需要一組資料庫的帳號和密碼。我們通常建議建立具有以下權限的帳號：&lt;br /&gt;
&lt;br /&gt;
- MySQL: SELECT, CREATE, INSERT, UPDATE, DELETE, ALTER, DROP, INDEX&lt;br /&gt;
&lt;br /&gt;
- PostgreSQL: SELECT, INSERT, UPDATE, DELETE, TRUNCATE, TRIGGER&lt;br /&gt;
&lt;br /&gt;
- Microsoft SQL Server: &#039;&#039;不明 - 如果您知道如何設定，請填寫於此處&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Run_the_installation_script&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==執行安裝程式==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;進入“example.org/limesurvey/admin”&#039;&#039;&#039;。如果您正確設定了所有內容，LimeSurvey 安裝程式應該會啟動 - 只需按照說明進行操作即可。系統將詢問您是否希望建立資料庫和/或在資料庫內建立資料表。 LimeSurvey 將在資料庫中建立所需的資料表。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Connect_to_the_administration_script_for_the_first_time&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==第一次執行管理者設定程式==&lt;br /&gt;
&lt;br /&gt;
安裝程式執行完後您就可以開始使用問卷系統了！開啟瀏覽器，在網址列輸入 管理後臺的網址。如果您是使用 &#039;limesurvey&#039; 作為目錄名稱來存放它所有的檔案, 網址大概會是如下形式 &amp;quot;http://www.example.com/limesurvey/admin&amp;quot;&lt;br /&gt;
&lt;br /&gt;
您應該會看到登入畫面。預設登入憑證（如果在安裝過程中未更改）為：&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&#039;html&#039;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
使用者：admin&lt;br /&gt;
密碼：password&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;緊記第一次登入後馬上要更改預設的密碼.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Further_configuration&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==進一步的設定==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Caching&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
===快取===&lt;br /&gt;
&lt;br /&gt;
LimeSurvey 預設使用 Yii 做檔案快取，但可以配置為使用其他快取引擎。可能的其他快取有：&lt;br /&gt;
&lt;br /&gt;
* Memcached&lt;br /&gt;
* Redis&lt;br /&gt;
* WinCache&lt;br /&gt;
* XCache&lt;br /&gt;
&lt;br /&gt;
請參閱 [https://www.yiiframework.com/doc/api/1.1/CCache Yii documentation] 以了解完整說明。&lt;br /&gt;
&lt;br /&gt;
從 LimeSurvey 4.0.0 開始，您也可以在 ExpressionScript 中快取運算。根據調查的複雜程度，這可以顯著提高速度。若要啟用 emcache，請將底下的語法新增至您的 config.php 檔案(components array)：&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
&#039;emcache&#039; =&amp;gt; array(&#039;class&#039; =&amp;gt; &#039;CFileCache&#039;),&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
與主要的 Yii 快取一樣，LimeSurvey也可以使用其他快取系統。&lt;br /&gt;
&lt;br /&gt;
{{Note| emcache 與隨機問卷不相容，在這種情況下將自動關閉。}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;What_if_I_have_problems...&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==如果我遇到問題怎麼辦...==&lt;br /&gt;
&lt;br /&gt;
正如所有電腦程式，運作過程難免偶有問題，導致運作失常的原因也很多。如果您操作上有麻煩，請先查看 [[Installation FAQ]] 。如果無法找到解決辦法，請將問題發佈到支援論壇 [https://www.limesurvey.org/forum LimeSurvey forums] ，或開一個 [https://www.limesurvey.org/contact-us 維修單] (僅適用於使用LimeSurvey Cloud的客戶)，或是加入我們的 [https://discord.gg/DEjguXn Discord channel] 。&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Translations:Installation_-_LimeSurvey_CE/52/zh-hant&amp;diff=377779</id>
		<title>Translations:Installation - LimeSurvey CE/52/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Translations:Installation_-_LimeSurvey_CE/52/zh-hant&amp;diff=377779"/>
		<updated>2024-07-06T07:27:17Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;注意：這些安裝說明適用於 2.0 或更高版本。 1.92 的舊安裝說明可在 [[Installation Version 1.92 or older|此處]] 找到，從舊版升級為新版的說明可在 [[Upgrading from a previous version|此處]] 找到。&amp;lt;/div&amp;gt;&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Upgrading_from_a_previous_version/zh-hant&amp;diff=377778</id>
		<title>Upgrading from a previous version/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Upgrading_from_a_previous_version/zh-hant&amp;diff=377778"/>
		<updated>2024-07-01T16:29:02Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: Created page with &amp;quot;{{Alert|title=Attention|text=請注意，範本結構隨著從 2.0x 更新到 2.50 或更高版本而變化。您的舊模板將不再起作用，因為模板系統現在使用響應式模板。}}&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt; &amp;lt;div style=&amp;quot;float:right;&amp;quot;&amp;gt;&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;附加頁：{toc}&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt; __TOC__&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Before_you_start...&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=開始之前...=&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&#039;color:#FF0000&#039;&amp;gt;....閱讀此內容，因為它非常重要：&#039;&#039;&#039;務必備份目前的安裝檔案和資料庫！&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
您可以使用資料庫管理工具例如 [https://www.phpmyadmin.net phpMyAdmin] 和檔案管理器來執行此操作！&lt;br /&gt;
如果您不知道怎麼備份，請勿繼續下面的操作並尋找其他人的幫助。&lt;br /&gt;
&lt;br /&gt;
==建議使用 ComfortUpdate==&lt;br /&gt;
&#039;&#039;&#039;最簡單/安全的升級方法就是使用我們的[[ComfortUpdate]]服務。&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Upgrade_instructions_(from_2.x_or_newer_to_any_later_version)&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=升級說明（從2.x或更高版本到任何之後的版本）=&lt;br /&gt;
&lt;br /&gt;
請按照以下說明操作：&lt;br /&gt;
*備份您的檔案和資料庫([[Upgrading from a previous version/zh-hant#Before you start...|我們之前有提過嗎?]])。&lt;br /&gt;
*刪除所有舊文件/資料夾，除了以下檔案：&lt;br /&gt;
**/application/config/security.php - &#039;&#039;&#039;很重要!!這是 LimeSurvey（版本 4 及更高版本）中所有加密資料的金鑰&#039;&#039;&#039;&lt;br /&gt;
**/application/config/config.php;&lt;br /&gt;
**/upload 目錄&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;[[File:help.png]]&#039;&#039;&#039;Note:&#039;&#039;&#039; If you have any customized templates in /upload/templates, make sure you &#039;refresh&#039; 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.&amp;lt;/div&amp;gt;&lt;br /&gt;
*Copy the new files from the new LimeSurvey package to the existing location.&lt;br /&gt;
*Open the admin page in your browser (e.g. https://www.example.com/limesurvey/admin) and check if a database scheme upgrade is necessary.&lt;br /&gt;
*After the upgrade: &#039;&#039;&#039;Clear your browser cache and cookies!&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Instructions_for_older_versions&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=舊版說明=&lt;br /&gt;
&lt;br /&gt;
不幸的是，有一些事情需要考慮，所以請仔細閱讀以下說明。&lt;br /&gt;
&lt;br /&gt;
==Upgrading from version 1.50 or later to any later 2.xx version==&lt;br /&gt;
*[https://www.limesurvey.org/about-limesurvey/download Download] the latest version of LimeSurvey&lt;br /&gt;
*Backup your files and database ([[Upgrading from a previous version#Before you start...|did we already mention that?]]).&lt;br /&gt;
* Replace all the installation directory files&lt;br /&gt;
** Delete all old files in the existing installation directory&lt;br /&gt;
** Upload and unpack the new files of the new version into the same installation directory&lt;br /&gt;
** 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&lt;br /&gt;
** Copy your /upload directory back to the old location&lt;br /&gt;
** Double-check the &#039;&#039;&#039;permissions&#039;&#039;&#039; set on the directories (write access to &#039;&#039;&#039;/tmp&#039;&#039;&#039;, &#039;&#039;&#039;/upload&#039;&#039;&#039;, and their subdirectories is required) as described in the [[Installation#Set directory permissions|installation wiki]]&lt;br /&gt;
** Open http://&amp;lt;yourdomain&amp;gt;/&amp;lt;yourlimesurveydir&amp;gt;/admin in your browser and follow the instructions (You will find the database data in the old config.php). The existing database will be automatically detected and if necessary, upgraded after confirmation.&lt;br /&gt;
* Check if any special manual checks apply as listed below&lt;br /&gt;
* &#039;&#039;&#039;Now, clear your browser cache and cookies&#039;&#039;&#039; and you are good to go&lt;br /&gt;
&lt;br /&gt;
{{Alert|title=Attention|text=請注意，範本結構隨著從 2.0x 更新到 2.50 或更高版本而變化。您的舊模板將不再起作用，因為模板系統現在使用響應式模板。}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;&#039;&#039;&#039;Special checks after an upgrade&#039;&#039;&#039;:&lt;br /&gt;
*&#039;&#039;&#039;from any earlier version to 2.xx&#039;&#039;&#039;: Proper question codes are mandatory now. After upgrading the installation, check the survey logic of all surveys and correct the codes where necessary&lt;br /&gt;
*&#039;&#039;&#039;from a version earlier than v1.53&#039;&#039;&#039;: When upgrading from a version before v1.53 to the latest version, please check the &#039;&#039;&#039;global user rights&#039;&#039;&#039; of each user. There was a new &#039;&#039;&#039;superadmin&#039;&#039;&#039; right introduced in v1.53 that can give a user the same privilege as the master administration account created during the installation. 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.&lt;br /&gt;
*&#039;&#039;&#039;from any earlier version to v2.06&#039;&#039;&#039;: From 2.05 to 2.06, some unused permissions when editing global permissions for &#039;surveys&#039; were activated. For example, if a user had only the &#039;create&#039; permission in 2.05, the other permissions located to the right of &#039;create&#039; 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 &#039;original&#039; ones after the update. If yes, please edit them accordingly.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Upgrading from version 1.50 or later to any later 1.xx version==&lt;br /&gt;
*[https://www.limesurvey.org/about-limesurvey/download Download] the desired version of LimeSurvey&lt;br /&gt;
* Backup your files and database ([[Upgrading from a previous version#Before you start...|did we already mention that?]]).&lt;br /&gt;
* Replace all the installation directory files&lt;br /&gt;
** Delete all old files in the existing installation directory&lt;br /&gt;
** Upload and unpack the new code version into the same installation directory&lt;br /&gt;
** Edit or replace the &#039;&#039;&#039;config.php&#039;&#039;&#039; file:&lt;br /&gt;
*** If your previous version was &amp;lt; 1.70: Edit the new &#039;&#039;&#039;config.php&#039;&#039;&#039; in order to reflect the changes from the backup &#039;&#039;&#039;config.php&#039;&#039;&#039; file. &#039;&#039;&#039;Do not just overwrite the new &#039;&#039;&#039;config.php&#039;&#039;&#039; with your old one!&#039;&#039;&#039;&lt;br /&gt;
*** If your previous version was &amp;gt;= 1.70: Simply replace the new &#039;&#039;&#039;config.php&#039;&#039;&#039; with your backup &#039;&#039;&#039;config.php&#039;&#039;&#039; file (as the file format has not changed)&lt;br /&gt;
** 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&lt;br /&gt;
** Copy your /upload directory back to the old location&lt;br /&gt;
** Double-check the &#039;&#039;&#039;permissions&#039;&#039;&#039; set on the directories of LimeSurvey (write access to &#039;&#039;&#039;/tmp&#039;&#039;&#039;, &#039;&#039;&#039;/upload&#039;&#039;&#039;, and to their subdirectories is required) as described in the [[Installation#Set Directory permissions|installation wiki]]&lt;br /&gt;
* Finish the installation/upgrade process&lt;br /&gt;
** Once you open the URL to your LimeSurvey administration, the database tables will be updated after confirmation&lt;br /&gt;
** Remove or rename the /admin/install directory as/if instructed by the installation script&lt;br /&gt;
** Check if any special manual checks apply (as listed below)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;&#039;&#039;&#039;Special checks after an upgrade&#039;&#039;&#039;:&lt;br /&gt;
*&#039;&#039;&#039;From a version earlier than v1.53&#039;&#039;&#039;: When upgrading from a version before v1.53 to the latest version, please check the &#039;&#039;&#039;global user rights&#039;&#039;&#039; of each user. There was a new &#039;&#039;&#039;superadmin&#039;&#039;&#039; 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.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Upgrading_from_a_version_earlier_than_v1.50_(v1.0_through_v1.44)&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==從 v1.50 之前的版本升級（v1.0 到 v1.44）==&lt;br /&gt;
&lt;br /&gt;
Since the data structure and a lot of other things were changed, &#039;&#039;&#039;upgrading from any version previous to v1.50 is &amp;lt;u&amp;gt;NOT&amp;lt;/u&amp;gt; possible&#039;&#039;&#039;. 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.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Upgrading_using_CLI&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
= 使用 CLI 升級 =&lt;br /&gt;
&lt;br /&gt;
You can upgrade the database via the PHP CLI: &amp;lt;code&amp;gt;php application/commands/console.php updatedb&amp;lt;/code&amp;gt;. This allows you to set up an auto-upgrade system via command line (for example, in a crontab), although it is not recommended.&lt;br /&gt;
&lt;br /&gt;
= Failed database upgrade after manual update/ComfortUpdate=&lt;br /&gt;
Sometimes, even though you did everything correct, things don&#039;t work out they are supposed to during database upgrade.&lt;br /&gt;
That may happen because of various reasons: Different database versions, unexpected data formats or contents, unusual configurations or anything else that did not show up in our tests (yes, we test a lot!)&lt;br /&gt;
&lt;br /&gt;
If you have an error during database update and your LimeSurvey instance ends up in an unusable state, you want to go back to the previous version.&lt;br /&gt;
This assumes that you still have the database and file backup, either from your regular backup or the one created by Comfortupdate.&lt;br /&gt;
&lt;br /&gt;
請執行以下步驟：&lt;br /&gt;
&lt;br /&gt;
*備份現有的 LimeSurvey 目錄和資料庫（是的，再做一次 - 我們叫它第二個備份）&lt;br /&gt;
*從原來的(第一個備份)還原檔案到現存的資料夾(直接覆蓋它們沒關係)&lt;br /&gt;
*刪除目前的資料庫然後從(第一個備份)還原資料&lt;br /&gt;
&lt;br /&gt;
就是這樣。一切都應該恢復正常。&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;關於報告此問題的說明：&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
如果您遇到這樣的問題，請務必在我們的錯誤追蹤網站裡回報此問題：https://bugs.limesurvey.org&lt;br /&gt;
&lt;br /&gt;
未回報的錯誤就是不會被修復的錯誤。請不要等別人回報此錯誤。如果您發現該錯誤已被回報，您還可以透過在錯誤追蹤器中將其標記為「是的，此錯誤影響我」來幫助提高錯誤的優先順序。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;FAQ&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=常見問題=&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Can_I_upgrade_even_if_I_have_active_surveys?&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==即使我有進行中的問卷，我也可以升級嗎？==&lt;br /&gt;
&lt;br /&gt;
是的你可以升級。上面的詳細說明中可能會提到例外。我們強烈建議您在升級後測試您的問卷，以確定您設計的模板是否可以正常運作。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;How_to_convert_*.sql/*.csv_survey_structure_files_to_the_latest_LimeSurvey_version?&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==如何將*.sql/*.csv問卷結構檔轉換為最新的LimeSurvey版本？==&lt;br /&gt;
&lt;br /&gt;
安裝版本 1.50，匯入文件，並將調查結構匯出成為較新的 .csv 格式。然後安裝最新版本 2.x 並匯入 .csv 格式並將其匯出為目前的 .lss 格式。&lt;br /&gt;
&lt;br /&gt;
==Survey theme incompatibility==&lt;br /&gt;
With certain major version updates any custom survey themes will not be compatible, anymore:&lt;br /&gt;
&lt;br /&gt;
* Update from LimeSurvey 2.6 or lower to LimeSurvey 2.50&lt;br /&gt;
* Update from LimeSurvey 5.x or lower to LimeSurvey 6.x&lt;br /&gt;
&lt;br /&gt;
==Error &amp;quot;Multiple primary key defined&amp;quot; when updating MySQL database==&lt;br /&gt;
If you encounter this error, please check the setting &#039;&#039;sql_generate_invisible_primary_key&#039;&#039; in your MySQL server variables. This is most likely set to &#039;&#039;ON&#039;&#039;, but should be set to &#039;&#039;OFF&#039;&#039;. Then restore your database from the backup (as explained above) and try again.&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Translations:Upgrading_from_a_previous_version/24/zh-hant&amp;diff=377777</id>
		<title>Translations:Upgrading from a previous version/24/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Translations:Upgrading_from_a_previous_version/24/zh-hant&amp;diff=377777"/>
		<updated>2024-07-01T16:28:19Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: Created page with &amp;quot;{{Alert|title=Attention|text=請注意，範本結構隨著從 2.0x 更新到 2.50 或更高版本而變化。您的舊模板將不再起作用，因為模板系統現在使用響應式模板。}}&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Alert|title=Attention|text=請注意，範本結構隨著從 2.0x 更新到 2.50 或更高版本而變化。您的舊模板將不再起作用，因為模板系統現在使用響應式模板。}}&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Upgrading_from_a_previous_version/zh-hant&amp;diff=377776</id>
		<title>Upgrading from a previous version/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Upgrading_from_a_previous_version/zh-hant&amp;diff=377776"/>
		<updated>2024-07-01T14:58:02Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt; &amp;lt;div style=&amp;quot;float:right;&amp;quot;&amp;gt;&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;附加頁：{toc}&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt; __TOC__&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Before_you_start...&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=開始之前...=&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&#039;color:#FF0000&#039;&amp;gt;....閱讀此內容，因為它非常重要：&#039;&#039;&#039;務必備份目前的安裝檔案和資料庫！&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
您可以使用資料庫管理工具例如 [https://www.phpmyadmin.net phpMyAdmin] 和檔案管理器來執行此操作！&lt;br /&gt;
如果您不知道怎麼備份，請勿繼續下面的操作並尋找其他人的幫助。&lt;br /&gt;
&lt;br /&gt;
==建議使用 ComfortUpdate==&lt;br /&gt;
&#039;&#039;&#039;最簡單/安全的升級方法就是使用我們的[[ComfortUpdate]]服務。&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Upgrade_instructions_(from_2.x_or_newer_to_any_later_version)&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=升級說明（從2.x或更高版本到任何之後的版本）=&lt;br /&gt;
&lt;br /&gt;
請按照以下說明操作：&lt;br /&gt;
*備份您的檔案和資料庫([[Upgrading from a previous version/zh-hant#Before you start...|我們之前有提過嗎?]])。&lt;br /&gt;
*刪除所有舊文件/資料夾，除了以下檔案：&lt;br /&gt;
**/application/config/security.php - &#039;&#039;&#039;很重要!!這是 LimeSurvey（版本 4 及更高版本）中所有加密資料的金鑰&#039;&#039;&#039;&lt;br /&gt;
**/application/config/config.php;&lt;br /&gt;
**/upload 目錄&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;[[File:help.png]]&#039;&#039;&#039;Note:&#039;&#039;&#039; If you have any customized templates in /upload/templates, make sure you &#039;refresh&#039; 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.&amp;lt;/div&amp;gt;&lt;br /&gt;
*Copy the new files from the new LimeSurvey package to the existing location.&lt;br /&gt;
*Open the admin page in your browser (e.g. https://www.example.com/limesurvey/admin) and check if a database scheme upgrade is necessary.&lt;br /&gt;
*After the upgrade: &#039;&#039;&#039;Clear your browser cache and cookies!&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Instructions_for_older_versions&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=舊版說明=&lt;br /&gt;
&lt;br /&gt;
不幸的是，有一些事情需要考慮，所以請仔細閱讀以下說明。&lt;br /&gt;
&lt;br /&gt;
==Upgrading from version 1.50 or later to any later 2.xx version==&lt;br /&gt;
*[https://www.limesurvey.org/about-limesurvey/download Download] the latest version of LimeSurvey&lt;br /&gt;
*Backup your files and database ([[Upgrading from a previous version#Before you start...|did we already mention that?]]).&lt;br /&gt;
* Replace all the installation directory files&lt;br /&gt;
** Delete all old files in the existing installation directory&lt;br /&gt;
** Upload and unpack the new files of the new version into the same installation directory&lt;br /&gt;
** 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&lt;br /&gt;
** Copy your /upload directory back to the old location&lt;br /&gt;
** Double-check the &#039;&#039;&#039;permissions&#039;&#039;&#039; set on the directories (write access to &#039;&#039;&#039;/tmp&#039;&#039;&#039;, &#039;&#039;&#039;/upload&#039;&#039;&#039;, and their subdirectories is required) as described in the [[Installation#Set directory permissions|installation wiki]]&lt;br /&gt;
** Open http://&amp;lt;yourdomain&amp;gt;/&amp;lt;yourlimesurveydir&amp;gt;/admin in your browser and follow the instructions (You will find the database data in the old config.php). The existing database will be automatically detected and if necessary, upgraded after confirmation.&lt;br /&gt;
* Check if any special manual checks apply as listed below&lt;br /&gt;
* &#039;&#039;&#039;Now, clear your browser cache and cookies&#039;&#039;&#039; and you are good to go&lt;br /&gt;
&lt;br /&gt;
{{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.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;&#039;&#039;&#039;Special checks after an upgrade&#039;&#039;&#039;:&lt;br /&gt;
*&#039;&#039;&#039;from any earlier version to 2.xx&#039;&#039;&#039;: Proper question codes are mandatory now. After upgrading the installation, check the survey logic of all surveys and correct the codes where necessary&lt;br /&gt;
*&#039;&#039;&#039;from a version earlier than v1.53&#039;&#039;&#039;: When upgrading from a version before v1.53 to the latest version, please check the &#039;&#039;&#039;global user rights&#039;&#039;&#039; of each user. There was a new &#039;&#039;&#039;superadmin&#039;&#039;&#039; right introduced in v1.53 that can give a user the same privilege as the master administration account created during the installation. 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.&lt;br /&gt;
*&#039;&#039;&#039;from any earlier version to v2.06&#039;&#039;&#039;: From 2.05 to 2.06, some unused permissions when editing global permissions for &#039;surveys&#039; were activated. For example, if a user had only the &#039;create&#039; permission in 2.05, the other permissions located to the right of &#039;create&#039; 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 &#039;original&#039; ones after the update. If yes, please edit them accordingly.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Upgrading from version 1.50 or later to any later 1.xx version==&lt;br /&gt;
*[https://www.limesurvey.org/about-limesurvey/download Download] the desired version of LimeSurvey&lt;br /&gt;
* Backup your files and database ([[Upgrading from a previous version#Before you start...|did we already mention that?]]).&lt;br /&gt;
* Replace all the installation directory files&lt;br /&gt;
** Delete all old files in the existing installation directory&lt;br /&gt;
** Upload and unpack the new code version into the same installation directory&lt;br /&gt;
** Edit or replace the &#039;&#039;&#039;config.php&#039;&#039;&#039; file:&lt;br /&gt;
*** If your previous version was &amp;lt; 1.70: Edit the new &#039;&#039;&#039;config.php&#039;&#039;&#039; in order to reflect the changes from the backup &#039;&#039;&#039;config.php&#039;&#039;&#039; file. &#039;&#039;&#039;Do not just overwrite the new &#039;&#039;&#039;config.php&#039;&#039;&#039; with your old one!&#039;&#039;&#039;&lt;br /&gt;
*** If your previous version was &amp;gt;= 1.70: Simply replace the new &#039;&#039;&#039;config.php&#039;&#039;&#039; with your backup &#039;&#039;&#039;config.php&#039;&#039;&#039; file (as the file format has not changed)&lt;br /&gt;
** 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&lt;br /&gt;
** Copy your /upload directory back to the old location&lt;br /&gt;
** Double-check the &#039;&#039;&#039;permissions&#039;&#039;&#039; set on the directories of LimeSurvey (write access to &#039;&#039;&#039;/tmp&#039;&#039;&#039;, &#039;&#039;&#039;/upload&#039;&#039;&#039;, and to their subdirectories is required) as described in the [[Installation#Set Directory permissions|installation wiki]]&lt;br /&gt;
* Finish the installation/upgrade process&lt;br /&gt;
** Once you open the URL to your LimeSurvey administration, the database tables will be updated after confirmation&lt;br /&gt;
** Remove or rename the /admin/install directory as/if instructed by the installation script&lt;br /&gt;
** Check if any special manual checks apply (as listed below)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;&#039;&#039;&#039;Special checks after an upgrade&#039;&#039;&#039;:&lt;br /&gt;
*&#039;&#039;&#039;From a version earlier than v1.53&#039;&#039;&#039;: When upgrading from a version before v1.53 to the latest version, please check the &#039;&#039;&#039;global user rights&#039;&#039;&#039; of each user. There was a new &#039;&#039;&#039;superadmin&#039;&#039;&#039; 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.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Upgrading_from_a_version_earlier_than_v1.50_(v1.0_through_v1.44)&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==從 v1.50 之前的版本升級（v1.0 到 v1.44）==&lt;br /&gt;
&lt;br /&gt;
Since the data structure and a lot of other things were changed, &#039;&#039;&#039;upgrading from any version previous to v1.50 is &amp;lt;u&amp;gt;NOT&amp;lt;/u&amp;gt; possible&#039;&#039;&#039;. 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.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Upgrading_using_CLI&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
= 使用 CLI 升級 =&lt;br /&gt;
&lt;br /&gt;
You can upgrade the database via the PHP CLI: &amp;lt;code&amp;gt;php application/commands/console.php updatedb&amp;lt;/code&amp;gt;. This allows you to set up an auto-upgrade system via command line (for example, in a crontab), although it is not recommended.&lt;br /&gt;
&lt;br /&gt;
= Failed database upgrade after manual update/ComfortUpdate=&lt;br /&gt;
Sometimes, even though you did everything correct, things don&#039;t work out they are supposed to during database upgrade.&lt;br /&gt;
That may happen because of various reasons: Different database versions, unexpected data formats or contents, unusual configurations or anything else that did not show up in our tests (yes, we test a lot!)&lt;br /&gt;
&lt;br /&gt;
If you have an error during database update and your LimeSurvey instance ends up in an unusable state, you want to go back to the previous version.&lt;br /&gt;
This assumes that you still have the database and file backup, either from your regular backup or the one created by Comfortupdate.&lt;br /&gt;
&lt;br /&gt;
請執行以下步驟：&lt;br /&gt;
&lt;br /&gt;
*備份現有的 LimeSurvey 目錄和資料庫（是的，再做一次 - 我們叫它第二個備份）&lt;br /&gt;
*從原來的(第一個備份)還原檔案到現存的資料夾(直接覆蓋它們沒關係)&lt;br /&gt;
*刪除目前的資料庫然後從(第一個備份)還原資料&lt;br /&gt;
&lt;br /&gt;
就是這樣。一切都應該恢復正常。&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;關於報告此問題的說明：&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
如果您遇到這樣的問題，請務必在我們的錯誤追蹤網站裡回報此問題：https://bugs.limesurvey.org&lt;br /&gt;
&lt;br /&gt;
未回報的錯誤就是不會被修復的錯誤。請不要等別人回報此錯誤。如果您發現該錯誤已被回報，您還可以透過在錯誤追蹤器中將其標記為「是的，此錯誤影響我」來幫助提高錯誤的優先順序。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;FAQ&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=常見問題=&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Can_I_upgrade_even_if_I_have_active_surveys?&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==即使我有進行中的問卷，我也可以升級嗎？==&lt;br /&gt;
&lt;br /&gt;
是的你可以升級。上面的詳細說明中可能會提到例外。我們強烈建議您在升級後測試您的問卷，以確定您設計的模板是否可以正常運作。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;How_to_convert_*.sql/*.csv_survey_structure_files_to_the_latest_LimeSurvey_version?&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==如何將*.sql/*.csv問卷結構檔轉換為最新的LimeSurvey版本？==&lt;br /&gt;
&lt;br /&gt;
安裝版本 1.50，匯入文件，並將調查結構匯出成為較新的 .csv 格式。然後安裝最新版本 2.x 並匯入 .csv 格式並將其匯出為目前的 .lss 格式。&lt;br /&gt;
&lt;br /&gt;
==Survey theme incompatibility==&lt;br /&gt;
With certain major version updates any custom survey themes will not be compatible, anymore:&lt;br /&gt;
&lt;br /&gt;
* Update from LimeSurvey 2.6 or lower to LimeSurvey 2.50&lt;br /&gt;
* Update from LimeSurvey 5.x or lower to LimeSurvey 6.x&lt;br /&gt;
&lt;br /&gt;
==Error &amp;quot;Multiple primary key defined&amp;quot; when updating MySQL database==&lt;br /&gt;
If you encounter this error, please check the setting &#039;&#039;sql_generate_invisible_primary_key&#039;&#039; in your MySQL server variables. This is most likely set to &#039;&#039;ON&#039;&#039;, but should be set to &#039;&#039;OFF&#039;&#039;. Then restore your database from the backup (as explained above) and try again.&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Translations:Upgrading_from_a_previous_version/32/zh-hant&amp;diff=377775</id>
		<title>Translations:Upgrading from a previous version/32/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Translations:Upgrading_from_a_previous_version/32/zh-hant&amp;diff=377775"/>
		<updated>2024-07-01T14:57:46Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*備份現有的 LimeSurvey 目錄和資料庫（是的，再做一次 - 我們叫它第二個備份）&lt;br /&gt;
*從原來的(第一個備份)還原檔案到現存的資料夾(直接覆蓋它們沒關係)&lt;br /&gt;
*刪除目前的資料庫然後從(第一個備份)還原資料&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Upgrading_from_a_previous_version/zh-hant&amp;diff=377774</id>
		<title>Upgrading from a previous version/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Upgrading_from_a_previous_version/zh-hant&amp;diff=377774"/>
		<updated>2024-07-01T14:57:02Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: Created page with &amp;quot;*備份現有的 LimeSurvey 目錄和資料庫（是的，再做一次 - 我們叫它第二個備份） *從原來的第一個備份還原檔案到現存的資料夾(直接覆蓋它們沒關係) *刪除目前的資料庫然後從第一個備份還原資料&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt; &amp;lt;div style=&amp;quot;float:right;&amp;quot;&amp;gt;&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;附加頁：{toc}&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt; __TOC__&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Before_you_start...&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=開始之前...=&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&#039;color:#FF0000&#039;&amp;gt;....閱讀此內容，因為它非常重要：&#039;&#039;&#039;務必備份目前的安裝檔案和資料庫！&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
您可以使用資料庫管理工具例如 [https://www.phpmyadmin.net phpMyAdmin] 和檔案管理器來執行此操作！&lt;br /&gt;
如果您不知道怎麼備份，請勿繼續下面的操作並尋找其他人的幫助。&lt;br /&gt;
&lt;br /&gt;
==建議使用 ComfortUpdate==&lt;br /&gt;
&#039;&#039;&#039;最簡單/安全的升級方法就是使用我們的[[ComfortUpdate]]服務。&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Upgrade_instructions_(from_2.x_or_newer_to_any_later_version)&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=升級說明（從2.x或更高版本到任何之後的版本）=&lt;br /&gt;
&lt;br /&gt;
請按照以下說明操作：&lt;br /&gt;
*備份您的檔案和資料庫([[Upgrading from a previous version/zh-hant#Before you start...|我們之前有提過嗎?]])。&lt;br /&gt;
*刪除所有舊文件/資料夾，除了以下檔案：&lt;br /&gt;
**/application/config/security.php - &#039;&#039;&#039;很重要!!這是 LimeSurvey（版本 4 及更高版本）中所有加密資料的金鑰&#039;&#039;&#039;&lt;br /&gt;
**/application/config/config.php;&lt;br /&gt;
**/upload 目錄&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;[[File:help.png]]&#039;&#039;&#039;Note:&#039;&#039;&#039; If you have any customized templates in /upload/templates, make sure you &#039;refresh&#039; 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.&amp;lt;/div&amp;gt;&lt;br /&gt;
*Copy the new files from the new LimeSurvey package to the existing location.&lt;br /&gt;
*Open the admin page in your browser (e.g. https://www.example.com/limesurvey/admin) and check if a database scheme upgrade is necessary.&lt;br /&gt;
*After the upgrade: &#039;&#039;&#039;Clear your browser cache and cookies!&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Instructions_for_older_versions&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=舊版說明=&lt;br /&gt;
&lt;br /&gt;
不幸的是，有一些事情需要考慮，所以請仔細閱讀以下說明。&lt;br /&gt;
&lt;br /&gt;
==Upgrading from version 1.50 or later to any later 2.xx version==&lt;br /&gt;
*[https://www.limesurvey.org/about-limesurvey/download Download] the latest version of LimeSurvey&lt;br /&gt;
*Backup your files and database ([[Upgrading from a previous version#Before you start...|did we already mention that?]]).&lt;br /&gt;
* Replace all the installation directory files&lt;br /&gt;
** Delete all old files in the existing installation directory&lt;br /&gt;
** Upload and unpack the new files of the new version into the same installation directory&lt;br /&gt;
** 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&lt;br /&gt;
** Copy your /upload directory back to the old location&lt;br /&gt;
** Double-check the &#039;&#039;&#039;permissions&#039;&#039;&#039; set on the directories (write access to &#039;&#039;&#039;/tmp&#039;&#039;&#039;, &#039;&#039;&#039;/upload&#039;&#039;&#039;, and their subdirectories is required) as described in the [[Installation#Set directory permissions|installation wiki]]&lt;br /&gt;
** Open http://&amp;lt;yourdomain&amp;gt;/&amp;lt;yourlimesurveydir&amp;gt;/admin in your browser and follow the instructions (You will find the database data in the old config.php). The existing database will be automatically detected and if necessary, upgraded after confirmation.&lt;br /&gt;
* Check if any special manual checks apply as listed below&lt;br /&gt;
* &#039;&#039;&#039;Now, clear your browser cache and cookies&#039;&#039;&#039; and you are good to go&lt;br /&gt;
&lt;br /&gt;
{{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.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;&#039;&#039;&#039;Special checks after an upgrade&#039;&#039;&#039;:&lt;br /&gt;
*&#039;&#039;&#039;from any earlier version to 2.xx&#039;&#039;&#039;: Proper question codes are mandatory now. After upgrading the installation, check the survey logic of all surveys and correct the codes where necessary&lt;br /&gt;
*&#039;&#039;&#039;from a version earlier than v1.53&#039;&#039;&#039;: When upgrading from a version before v1.53 to the latest version, please check the &#039;&#039;&#039;global user rights&#039;&#039;&#039; of each user. There was a new &#039;&#039;&#039;superadmin&#039;&#039;&#039; right introduced in v1.53 that can give a user the same privilege as the master administration account created during the installation. 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.&lt;br /&gt;
*&#039;&#039;&#039;from any earlier version to v2.06&#039;&#039;&#039;: From 2.05 to 2.06, some unused permissions when editing global permissions for &#039;surveys&#039; were activated. For example, if a user had only the &#039;create&#039; permission in 2.05, the other permissions located to the right of &#039;create&#039; 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 &#039;original&#039; ones after the update. If yes, please edit them accordingly.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Upgrading from version 1.50 or later to any later 1.xx version==&lt;br /&gt;
*[https://www.limesurvey.org/about-limesurvey/download Download] the desired version of LimeSurvey&lt;br /&gt;
* Backup your files and database ([[Upgrading from a previous version#Before you start...|did we already mention that?]]).&lt;br /&gt;
* Replace all the installation directory files&lt;br /&gt;
** Delete all old files in the existing installation directory&lt;br /&gt;
** Upload and unpack the new code version into the same installation directory&lt;br /&gt;
** Edit or replace the &#039;&#039;&#039;config.php&#039;&#039;&#039; file:&lt;br /&gt;
*** If your previous version was &amp;lt; 1.70: Edit the new &#039;&#039;&#039;config.php&#039;&#039;&#039; in order to reflect the changes from the backup &#039;&#039;&#039;config.php&#039;&#039;&#039; file. &#039;&#039;&#039;Do not just overwrite the new &#039;&#039;&#039;config.php&#039;&#039;&#039; with your old one!&#039;&#039;&#039;&lt;br /&gt;
*** If your previous version was &amp;gt;= 1.70: Simply replace the new &#039;&#039;&#039;config.php&#039;&#039;&#039; with your backup &#039;&#039;&#039;config.php&#039;&#039;&#039; file (as the file format has not changed)&lt;br /&gt;
** 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&lt;br /&gt;
** Copy your /upload directory back to the old location&lt;br /&gt;
** Double-check the &#039;&#039;&#039;permissions&#039;&#039;&#039; set on the directories of LimeSurvey (write access to &#039;&#039;&#039;/tmp&#039;&#039;&#039;, &#039;&#039;&#039;/upload&#039;&#039;&#039;, and to their subdirectories is required) as described in the [[Installation#Set Directory permissions|installation wiki]]&lt;br /&gt;
* Finish the installation/upgrade process&lt;br /&gt;
** Once you open the URL to your LimeSurvey administration, the database tables will be updated after confirmation&lt;br /&gt;
** Remove or rename the /admin/install directory as/if instructed by the installation script&lt;br /&gt;
** Check if any special manual checks apply (as listed below)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;&#039;&#039;&#039;Special checks after an upgrade&#039;&#039;&#039;:&lt;br /&gt;
*&#039;&#039;&#039;From a version earlier than v1.53&#039;&#039;&#039;: When upgrading from a version before v1.53 to the latest version, please check the &#039;&#039;&#039;global user rights&#039;&#039;&#039; of each user. There was a new &#039;&#039;&#039;superadmin&#039;&#039;&#039; 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.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Upgrading_from_a_version_earlier_than_v1.50_(v1.0_through_v1.44)&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==從 v1.50 之前的版本升級（v1.0 到 v1.44）==&lt;br /&gt;
&lt;br /&gt;
Since the data structure and a lot of other things were changed, &#039;&#039;&#039;upgrading from any version previous to v1.50 is &amp;lt;u&amp;gt;NOT&amp;lt;/u&amp;gt; possible&#039;&#039;&#039;. 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.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Upgrading_using_CLI&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
= 使用 CLI 升級 =&lt;br /&gt;
&lt;br /&gt;
You can upgrade the database via the PHP CLI: &amp;lt;code&amp;gt;php application/commands/console.php updatedb&amp;lt;/code&amp;gt;. This allows you to set up an auto-upgrade system via command line (for example, in a crontab), although it is not recommended.&lt;br /&gt;
&lt;br /&gt;
= Failed database upgrade after manual update/ComfortUpdate=&lt;br /&gt;
Sometimes, even though you did everything correct, things don&#039;t work out they are supposed to during database upgrade.&lt;br /&gt;
That may happen because of various reasons: Different database versions, unexpected data formats or contents, unusual configurations or anything else that did not show up in our tests (yes, we test a lot!)&lt;br /&gt;
&lt;br /&gt;
If you have an error during database update and your LimeSurvey instance ends up in an unusable state, you want to go back to the previous version.&lt;br /&gt;
This assumes that you still have the database and file backup, either from your regular backup or the one created by Comfortupdate.&lt;br /&gt;
&lt;br /&gt;
請執行以下步驟：&lt;br /&gt;
&lt;br /&gt;
*備份現有的 LimeSurvey 目錄和資料庫（是的，再做一次 - 我們叫它第二個備份）&lt;br /&gt;
*從原來的第一個備份還原檔案到現存的資料夾(直接覆蓋它們沒關係)&lt;br /&gt;
*刪除目前的資料庫然後從第一個備份還原資料&lt;br /&gt;
&lt;br /&gt;
就是這樣。一切都應該恢復正常。&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;關於報告此問題的說明：&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
如果您遇到這樣的問題，請務必在我們的錯誤追蹤網站裡回報此問題：https://bugs.limesurvey.org&lt;br /&gt;
&lt;br /&gt;
未回報的錯誤就是不會被修復的錯誤。請不要等別人回報此錯誤。如果您發現該錯誤已被回報，您還可以透過在錯誤追蹤器中將其標記為「是的，此錯誤影響我」來幫助提高錯誤的優先順序。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;FAQ&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=常見問題=&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Can_I_upgrade_even_if_I_have_active_surveys?&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==即使我有進行中的問卷，我也可以升級嗎？==&lt;br /&gt;
&lt;br /&gt;
是的你可以升級。上面的詳細說明中可能會提到例外。我們強烈建議您在升級後測試您的問卷，以確定您設計的模板是否可以正常運作。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;How_to_convert_*.sql/*.csv_survey_structure_files_to_the_latest_LimeSurvey_version?&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==如何將*.sql/*.csv問卷結構檔轉換為最新的LimeSurvey版本？==&lt;br /&gt;
&lt;br /&gt;
安裝版本 1.50，匯入文件，並將調查結構匯出成為較新的 .csv 格式。然後安裝最新版本 2.x 並匯入 .csv 格式並將其匯出為目前的 .lss 格式。&lt;br /&gt;
&lt;br /&gt;
==Survey theme incompatibility==&lt;br /&gt;
With certain major version updates any custom survey themes will not be compatible, anymore:&lt;br /&gt;
&lt;br /&gt;
* Update from LimeSurvey 2.6 or lower to LimeSurvey 2.50&lt;br /&gt;
* Update from LimeSurvey 5.x or lower to LimeSurvey 6.x&lt;br /&gt;
&lt;br /&gt;
==Error &amp;quot;Multiple primary key defined&amp;quot; when updating MySQL database==&lt;br /&gt;
If you encounter this error, please check the setting &#039;&#039;sql_generate_invisible_primary_key&#039;&#039; in your MySQL server variables. This is most likely set to &#039;&#039;ON&#039;&#039;, but should be set to &#039;&#039;OFF&#039;&#039;. Then restore your database from the backup (as explained above) and try again.&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Translations:Upgrading_from_a_previous_version/32/zh-hant&amp;diff=377773</id>
		<title>Translations:Upgrading from a previous version/32/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Translations:Upgrading_from_a_previous_version/32/zh-hant&amp;diff=377773"/>
		<updated>2024-07-01T14:56:42Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: Created page with &amp;quot;*備份現有的 LimeSurvey 目錄和資料庫（是的，再做一次 - 我們叫它第二個備份） *從原來的第一個備份還原檔案到現存的資料夾(直接覆蓋它們沒關係) *刪除目前的資料庫然後從第一個備份還原資料&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;*備份現有的 LimeSurvey 目錄和資料庫（是的，再做一次 - 我們叫它第二個備份）&lt;br /&gt;
*從原來的第一個備份還原檔案到現存的資料夾(直接覆蓋它們沒關係)&lt;br /&gt;
*刪除目前的資料庫然後從第一個備份還原資料&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Upgrading_from_a_previous_version/zh-hant&amp;diff=377772</id>
		<title>Upgrading from a previous version/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Upgrading_from_a_previous_version/zh-hant&amp;diff=377772"/>
		<updated>2024-07-01T14:52:01Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: Created page with &amp;quot;未回報的錯誤就是不會被修復的錯誤。請不要等別人回報此錯誤。如果您發現該錯誤已被回報，您還可以透過在錯誤追蹤器中將其標記為「是的，此錯誤影響我」來幫助提高錯誤的優先順序。&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt; &amp;lt;div style=&amp;quot;float:right;&amp;quot;&amp;gt;&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;附加頁：{toc}&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt; __TOC__&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Before_you_start...&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=開始之前...=&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&#039;color:#FF0000&#039;&amp;gt;....閱讀此內容，因為它非常重要：&#039;&#039;&#039;務必備份目前的安裝檔案和資料庫！&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
您可以使用資料庫管理工具例如 [https://www.phpmyadmin.net phpMyAdmin] 和檔案管理器來執行此操作！&lt;br /&gt;
如果您不知道怎麼備份，請勿繼續下面的操作並尋找其他人的幫助。&lt;br /&gt;
&lt;br /&gt;
==建議使用 ComfortUpdate==&lt;br /&gt;
&#039;&#039;&#039;最簡單/安全的升級方法就是使用我們的[[ComfortUpdate]]服務。&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Upgrade_instructions_(from_2.x_or_newer_to_any_later_version)&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=升級說明（從2.x或更高版本到任何之後的版本）=&lt;br /&gt;
&lt;br /&gt;
請按照以下說明操作：&lt;br /&gt;
*備份您的檔案和資料庫([[Upgrading from a previous version/zh-hant#Before you start...|我們之前有提過嗎?]])。&lt;br /&gt;
*刪除所有舊文件/資料夾，除了以下檔案：&lt;br /&gt;
**/application/config/security.php - &#039;&#039;&#039;很重要!!這是 LimeSurvey（版本 4 及更高版本）中所有加密資料的金鑰&#039;&#039;&#039;&lt;br /&gt;
**/application/config/config.php;&lt;br /&gt;
**/upload 目錄&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;[[File:help.png]]&#039;&#039;&#039;Note:&#039;&#039;&#039; If you have any customized templates in /upload/templates, make sure you &#039;refresh&#039; 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.&amp;lt;/div&amp;gt;&lt;br /&gt;
*Copy the new files from the new LimeSurvey package to the existing location.&lt;br /&gt;
*Open the admin page in your browser (e.g. https://www.example.com/limesurvey/admin) and check if a database scheme upgrade is necessary.&lt;br /&gt;
*After the upgrade: &#039;&#039;&#039;Clear your browser cache and cookies!&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Instructions_for_older_versions&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=舊版說明=&lt;br /&gt;
&lt;br /&gt;
不幸的是，有一些事情需要考慮，所以請仔細閱讀以下說明。&lt;br /&gt;
&lt;br /&gt;
==Upgrading from version 1.50 or later to any later 2.xx version==&lt;br /&gt;
*[https://www.limesurvey.org/about-limesurvey/download Download] the latest version of LimeSurvey&lt;br /&gt;
*Backup your files and database ([[Upgrading from a previous version#Before you start...|did we already mention that?]]).&lt;br /&gt;
* Replace all the installation directory files&lt;br /&gt;
** Delete all old files in the existing installation directory&lt;br /&gt;
** Upload and unpack the new files of the new version into the same installation directory&lt;br /&gt;
** 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&lt;br /&gt;
** Copy your /upload directory back to the old location&lt;br /&gt;
** Double-check the &#039;&#039;&#039;permissions&#039;&#039;&#039; set on the directories (write access to &#039;&#039;&#039;/tmp&#039;&#039;&#039;, &#039;&#039;&#039;/upload&#039;&#039;&#039;, and their subdirectories is required) as described in the [[Installation#Set directory permissions|installation wiki]]&lt;br /&gt;
** Open http://&amp;lt;yourdomain&amp;gt;/&amp;lt;yourlimesurveydir&amp;gt;/admin in your browser and follow the instructions (You will find the database data in the old config.php). The existing database will be automatically detected and if necessary, upgraded after confirmation.&lt;br /&gt;
* Check if any special manual checks apply as listed below&lt;br /&gt;
* &#039;&#039;&#039;Now, clear your browser cache and cookies&#039;&#039;&#039; and you are good to go&lt;br /&gt;
&lt;br /&gt;
{{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.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;&#039;&#039;&#039;Special checks after an upgrade&#039;&#039;&#039;:&lt;br /&gt;
*&#039;&#039;&#039;from any earlier version to 2.xx&#039;&#039;&#039;: Proper question codes are mandatory now. After upgrading the installation, check the survey logic of all surveys and correct the codes where necessary&lt;br /&gt;
*&#039;&#039;&#039;from a version earlier than v1.53&#039;&#039;&#039;: When upgrading from a version before v1.53 to the latest version, please check the &#039;&#039;&#039;global user rights&#039;&#039;&#039; of each user. There was a new &#039;&#039;&#039;superadmin&#039;&#039;&#039; right introduced in v1.53 that can give a user the same privilege as the master administration account created during the installation. 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.&lt;br /&gt;
*&#039;&#039;&#039;from any earlier version to v2.06&#039;&#039;&#039;: From 2.05 to 2.06, some unused permissions when editing global permissions for &#039;surveys&#039; were activated. For example, if a user had only the &#039;create&#039; permission in 2.05, the other permissions located to the right of &#039;create&#039; 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 &#039;original&#039; ones after the update. If yes, please edit them accordingly.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Upgrading from version 1.50 or later to any later 1.xx version==&lt;br /&gt;
*[https://www.limesurvey.org/about-limesurvey/download Download] the desired version of LimeSurvey&lt;br /&gt;
* Backup your files and database ([[Upgrading from a previous version#Before you start...|did we already mention that?]]).&lt;br /&gt;
* Replace all the installation directory files&lt;br /&gt;
** Delete all old files in the existing installation directory&lt;br /&gt;
** Upload and unpack the new code version into the same installation directory&lt;br /&gt;
** Edit or replace the &#039;&#039;&#039;config.php&#039;&#039;&#039; file:&lt;br /&gt;
*** If your previous version was &amp;lt; 1.70: Edit the new &#039;&#039;&#039;config.php&#039;&#039;&#039; in order to reflect the changes from the backup &#039;&#039;&#039;config.php&#039;&#039;&#039; file. &#039;&#039;&#039;Do not just overwrite the new &#039;&#039;&#039;config.php&#039;&#039;&#039; with your old one!&#039;&#039;&#039;&lt;br /&gt;
*** If your previous version was &amp;gt;= 1.70: Simply replace the new &#039;&#039;&#039;config.php&#039;&#039;&#039; with your backup &#039;&#039;&#039;config.php&#039;&#039;&#039; file (as the file format has not changed)&lt;br /&gt;
** 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&lt;br /&gt;
** Copy your /upload directory back to the old location&lt;br /&gt;
** Double-check the &#039;&#039;&#039;permissions&#039;&#039;&#039; set on the directories of LimeSurvey (write access to &#039;&#039;&#039;/tmp&#039;&#039;&#039;, &#039;&#039;&#039;/upload&#039;&#039;&#039;, and to their subdirectories is required) as described in the [[Installation#Set Directory permissions|installation wiki]]&lt;br /&gt;
* Finish the installation/upgrade process&lt;br /&gt;
** Once you open the URL to your LimeSurvey administration, the database tables will be updated after confirmation&lt;br /&gt;
** Remove or rename the /admin/install directory as/if instructed by the installation script&lt;br /&gt;
** Check if any special manual checks apply (as listed below)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;&#039;&#039;&#039;Special checks after an upgrade&#039;&#039;&#039;:&lt;br /&gt;
*&#039;&#039;&#039;From a version earlier than v1.53&#039;&#039;&#039;: When upgrading from a version before v1.53 to the latest version, please check the &#039;&#039;&#039;global user rights&#039;&#039;&#039; of each user. There was a new &#039;&#039;&#039;superadmin&#039;&#039;&#039; 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.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Upgrading_from_a_version_earlier_than_v1.50_(v1.0_through_v1.44)&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==從 v1.50 之前的版本升級（v1.0 到 v1.44）==&lt;br /&gt;
&lt;br /&gt;
Since the data structure and a lot of other things were changed, &#039;&#039;&#039;upgrading from any version previous to v1.50 is &amp;lt;u&amp;gt;NOT&amp;lt;/u&amp;gt; possible&#039;&#039;&#039;. 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.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Upgrading_using_CLI&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
= 使用 CLI 升級 =&lt;br /&gt;
&lt;br /&gt;
You can upgrade the database via the PHP CLI: &amp;lt;code&amp;gt;php application/commands/console.php updatedb&amp;lt;/code&amp;gt;. This allows you to set up an auto-upgrade system via command line (for example, in a crontab), although it is not recommended.&lt;br /&gt;
&lt;br /&gt;
= Failed database upgrade after manual update/ComfortUpdate=&lt;br /&gt;
Sometimes, even though you did everything correct, things don&#039;t work out they are supposed to during database upgrade.&lt;br /&gt;
That may happen because of various reasons: Different database versions, unexpected data formats or contents, unusual configurations or anything else that did not show up in our tests (yes, we test a lot!)&lt;br /&gt;
&lt;br /&gt;
If you have an error during database update and your LimeSurvey instance ends up in an unusable state, you want to go back to the previous version.&lt;br /&gt;
This assumes that you still have the database and file backup, either from your regular backup or the one created by Comfortupdate.&lt;br /&gt;
&lt;br /&gt;
請執行以下步驟：&lt;br /&gt;
&lt;br /&gt;
*Backup the existing LimeSurvey directory and database (yes, again - we will call this the 2nd backup)&lt;br /&gt;
*Restore files to the existing directory (just overwriting them is fine) from the original (1st) backup.&lt;br /&gt;
*Delete the old database and restore the database from the original (1st) backup.&lt;br /&gt;
&lt;br /&gt;
就是這樣。一切都應該恢復正常。&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;關於報告此問題的說明：&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
如果您遇到這樣的問題，請務必在我們的錯誤追蹤網站裡回報此問題：https://bugs.limesurvey.org&lt;br /&gt;
&lt;br /&gt;
未回報的錯誤就是不會被修復的錯誤。請不要等別人回報此錯誤。如果您發現該錯誤已被回報，您還可以透過在錯誤追蹤器中將其標記為「是的，此錯誤影響我」來幫助提高錯誤的優先順序。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;FAQ&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=常見問題=&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Can_I_upgrade_even_if_I_have_active_surveys?&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==即使我有進行中的問卷，我也可以升級嗎？==&lt;br /&gt;
&lt;br /&gt;
是的你可以升級。上面的詳細說明中可能會提到例外。我們強烈建議您在升級後測試您的問卷，以確定您設計的模板是否可以正常運作。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;How_to_convert_*.sql/*.csv_survey_structure_files_to_the_latest_LimeSurvey_version?&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==如何將*.sql/*.csv問卷結構檔轉換為最新的LimeSurvey版本？==&lt;br /&gt;
&lt;br /&gt;
安裝版本 1.50，匯入文件，並將調查結構匯出成為較新的 .csv 格式。然後安裝最新版本 2.x 並匯入 .csv 格式並將其匯出為目前的 .lss 格式。&lt;br /&gt;
&lt;br /&gt;
==Survey theme incompatibility==&lt;br /&gt;
With certain major version updates any custom survey themes will not be compatible, anymore:&lt;br /&gt;
&lt;br /&gt;
* Update from LimeSurvey 2.6 or lower to LimeSurvey 2.50&lt;br /&gt;
* Update from LimeSurvey 5.x or lower to LimeSurvey 6.x&lt;br /&gt;
&lt;br /&gt;
==Error &amp;quot;Multiple primary key defined&amp;quot; when updating MySQL database==&lt;br /&gt;
If you encounter this error, please check the setting &#039;&#039;sql_generate_invisible_primary_key&#039;&#039; in your MySQL server variables. This is most likely set to &#039;&#039;ON&#039;&#039;, but should be set to &#039;&#039;OFF&#039;&#039;. Then restore your database from the backup (as explained above) and try again.&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Translations:Upgrading_from_a_previous_version/36/zh-hant&amp;diff=377771</id>
		<title>Translations:Upgrading from a previous version/36/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Translations:Upgrading_from_a_previous_version/36/zh-hant&amp;diff=377771"/>
		<updated>2024-07-01T14:51:09Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: Created page with &amp;quot;未回報的錯誤就是不會被修復的錯誤。請不要等別人回報此錯誤。如果您發現該錯誤已被回報，您還可以透過在錯誤追蹤器中將其標記為「是的，此錯誤影響我」來幫助提高錯誤的優先順序。&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;未回報的錯誤就是不會被修復的錯誤。請不要等別人回報此錯誤。如果您發現該錯誤已被回報，您還可以透過在錯誤追蹤器中將其標記為「是的，此錯誤影響我」來幫助提高錯誤的優先順序。&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Upgrading_from_a_previous_version/zh-hant&amp;diff=377770</id>
		<title>Upgrading from a previous version/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Upgrading_from_a_previous_version/zh-hant&amp;diff=377770"/>
		<updated>2024-07-01T14:49:02Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt; &amp;lt;div style=&amp;quot;float:right;&amp;quot;&amp;gt;&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;附加頁：{toc}&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt; __TOC__&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Before_you_start...&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=開始之前...=&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&#039;color:#FF0000&#039;&amp;gt;....閱讀此內容，因為它非常重要：&#039;&#039;&#039;務必備份目前的安裝檔案和資料庫！&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
您可以使用資料庫管理工具例如 [https://www.phpmyadmin.net phpMyAdmin] 和檔案管理器來執行此操作！&lt;br /&gt;
如果您不知道怎麼備份，請勿繼續下面的操作並尋找其他人的幫助。&lt;br /&gt;
&lt;br /&gt;
==建議使用 ComfortUpdate==&lt;br /&gt;
&#039;&#039;&#039;最簡單/安全的升級方法就是使用我們的[[ComfortUpdate]]服務。&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Upgrade_instructions_(from_2.x_or_newer_to_any_later_version)&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=升級說明（從2.x或更高版本到任何之後的版本）=&lt;br /&gt;
&lt;br /&gt;
請按照以下說明操作：&lt;br /&gt;
*備份您的檔案和資料庫([[Upgrading from a previous version/zh-hant#Before you start...|我們之前有提過嗎?]])。&lt;br /&gt;
*刪除所有舊文件/資料夾，除了以下檔案：&lt;br /&gt;
**/application/config/security.php - &#039;&#039;&#039;很重要!!這是 LimeSurvey（版本 4 及更高版本）中所有加密資料的金鑰&#039;&#039;&#039;&lt;br /&gt;
**/application/config/config.php;&lt;br /&gt;
**/upload 目錄&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;[[File:help.png]]&#039;&#039;&#039;Note:&#039;&#039;&#039; If you have any customized templates in /upload/templates, make sure you &#039;refresh&#039; 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.&amp;lt;/div&amp;gt;&lt;br /&gt;
*Copy the new files from the new LimeSurvey package to the existing location.&lt;br /&gt;
*Open the admin page in your browser (e.g. https://www.example.com/limesurvey/admin) and check if a database scheme upgrade is necessary.&lt;br /&gt;
*After the upgrade: &#039;&#039;&#039;Clear your browser cache and cookies!&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Instructions_for_older_versions&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=舊版說明=&lt;br /&gt;
&lt;br /&gt;
不幸的是，有一些事情需要考慮，所以請仔細閱讀以下說明。&lt;br /&gt;
&lt;br /&gt;
==Upgrading from version 1.50 or later to any later 2.xx version==&lt;br /&gt;
*[https://www.limesurvey.org/about-limesurvey/download Download] the latest version of LimeSurvey&lt;br /&gt;
*Backup your files and database ([[Upgrading from a previous version#Before you start...|did we already mention that?]]).&lt;br /&gt;
* Replace all the installation directory files&lt;br /&gt;
** Delete all old files in the existing installation directory&lt;br /&gt;
** Upload and unpack the new files of the new version into the same installation directory&lt;br /&gt;
** 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&lt;br /&gt;
** Copy your /upload directory back to the old location&lt;br /&gt;
** Double-check the &#039;&#039;&#039;permissions&#039;&#039;&#039; set on the directories (write access to &#039;&#039;&#039;/tmp&#039;&#039;&#039;, &#039;&#039;&#039;/upload&#039;&#039;&#039;, and their subdirectories is required) as described in the [[Installation#Set directory permissions|installation wiki]]&lt;br /&gt;
** Open http://&amp;lt;yourdomain&amp;gt;/&amp;lt;yourlimesurveydir&amp;gt;/admin in your browser and follow the instructions (You will find the database data in the old config.php). The existing database will be automatically detected and if necessary, upgraded after confirmation.&lt;br /&gt;
* Check if any special manual checks apply as listed below&lt;br /&gt;
* &#039;&#039;&#039;Now, clear your browser cache and cookies&#039;&#039;&#039; and you are good to go&lt;br /&gt;
&lt;br /&gt;
{{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.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;&#039;&#039;&#039;Special checks after an upgrade&#039;&#039;&#039;:&lt;br /&gt;
*&#039;&#039;&#039;from any earlier version to 2.xx&#039;&#039;&#039;: Proper question codes are mandatory now. After upgrading the installation, check the survey logic of all surveys and correct the codes where necessary&lt;br /&gt;
*&#039;&#039;&#039;from a version earlier than v1.53&#039;&#039;&#039;: When upgrading from a version before v1.53 to the latest version, please check the &#039;&#039;&#039;global user rights&#039;&#039;&#039; of each user. There was a new &#039;&#039;&#039;superadmin&#039;&#039;&#039; right introduced in v1.53 that can give a user the same privilege as the master administration account created during the installation. 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.&lt;br /&gt;
*&#039;&#039;&#039;from any earlier version to v2.06&#039;&#039;&#039;: From 2.05 to 2.06, some unused permissions when editing global permissions for &#039;surveys&#039; were activated. For example, if a user had only the &#039;create&#039; permission in 2.05, the other permissions located to the right of &#039;create&#039; 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 &#039;original&#039; ones after the update. If yes, please edit them accordingly.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Upgrading from version 1.50 or later to any later 1.xx version==&lt;br /&gt;
*[https://www.limesurvey.org/about-limesurvey/download Download] the desired version of LimeSurvey&lt;br /&gt;
* Backup your files and database ([[Upgrading from a previous version#Before you start...|did we already mention that?]]).&lt;br /&gt;
* Replace all the installation directory files&lt;br /&gt;
** Delete all old files in the existing installation directory&lt;br /&gt;
** Upload and unpack the new code version into the same installation directory&lt;br /&gt;
** Edit or replace the &#039;&#039;&#039;config.php&#039;&#039;&#039; file:&lt;br /&gt;
*** If your previous version was &amp;lt; 1.70: Edit the new &#039;&#039;&#039;config.php&#039;&#039;&#039; in order to reflect the changes from the backup &#039;&#039;&#039;config.php&#039;&#039;&#039; file. &#039;&#039;&#039;Do not just overwrite the new &#039;&#039;&#039;config.php&#039;&#039;&#039; with your old one!&#039;&#039;&#039;&lt;br /&gt;
*** If your previous version was &amp;gt;= 1.70: Simply replace the new &#039;&#039;&#039;config.php&#039;&#039;&#039; with your backup &#039;&#039;&#039;config.php&#039;&#039;&#039; file (as the file format has not changed)&lt;br /&gt;
** 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&lt;br /&gt;
** Copy your /upload directory back to the old location&lt;br /&gt;
** Double-check the &#039;&#039;&#039;permissions&#039;&#039;&#039; set on the directories of LimeSurvey (write access to &#039;&#039;&#039;/tmp&#039;&#039;&#039;, &#039;&#039;&#039;/upload&#039;&#039;&#039;, and to their subdirectories is required) as described in the [[Installation#Set Directory permissions|installation wiki]]&lt;br /&gt;
* Finish the installation/upgrade process&lt;br /&gt;
** Once you open the URL to your LimeSurvey administration, the database tables will be updated after confirmation&lt;br /&gt;
** Remove or rename the /admin/install directory as/if instructed by the installation script&lt;br /&gt;
** Check if any special manual checks apply (as listed below)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;&#039;&#039;&#039;Special checks after an upgrade&#039;&#039;&#039;:&lt;br /&gt;
*&#039;&#039;&#039;From a version earlier than v1.53&#039;&#039;&#039;: When upgrading from a version before v1.53 to the latest version, please check the &#039;&#039;&#039;global user rights&#039;&#039;&#039; of each user. There was a new &#039;&#039;&#039;superadmin&#039;&#039;&#039; 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.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Upgrading_from_a_version_earlier_than_v1.50_(v1.0_through_v1.44)&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==從 v1.50 之前的版本升級（v1.0 到 v1.44）==&lt;br /&gt;
&lt;br /&gt;
Since the data structure and a lot of other things were changed, &#039;&#039;&#039;upgrading from any version previous to v1.50 is &amp;lt;u&amp;gt;NOT&amp;lt;/u&amp;gt; possible&#039;&#039;&#039;. 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.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Upgrading_using_CLI&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
= 使用 CLI 升級 =&lt;br /&gt;
&lt;br /&gt;
You can upgrade the database via the PHP CLI: &amp;lt;code&amp;gt;php application/commands/console.php updatedb&amp;lt;/code&amp;gt;. This allows you to set up an auto-upgrade system via command line (for example, in a crontab), although it is not recommended.&lt;br /&gt;
&lt;br /&gt;
= Failed database upgrade after manual update/ComfortUpdate=&lt;br /&gt;
Sometimes, even though you did everything correct, things don&#039;t work out they are supposed to during database upgrade.&lt;br /&gt;
That may happen because of various reasons: Different database versions, unexpected data formats or contents, unusual configurations or anything else that did not show up in our tests (yes, we test a lot!)&lt;br /&gt;
&lt;br /&gt;
If you have an error during database update and your LimeSurvey instance ends up in an unusable state, you want to go back to the previous version.&lt;br /&gt;
This assumes that you still have the database and file backup, either from your regular backup or the one created by Comfortupdate.&lt;br /&gt;
&lt;br /&gt;
請執行以下步驟：&lt;br /&gt;
&lt;br /&gt;
*Backup the existing LimeSurvey directory and database (yes, again - we will call this the 2nd backup)&lt;br /&gt;
*Restore files to the existing directory (just overwriting them is fine) from the original (1st) backup.&lt;br /&gt;
*Delete the old database and restore the database from the original (1st) backup.&lt;br /&gt;
&lt;br /&gt;
就是這樣。一切都應該恢復正常。&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;關於報告此問題的說明：&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
如果您遇到這樣的問題，請務必在我們的錯誤追蹤網站裡回報此問題：https://bugs.limesurvey.org&lt;br /&gt;
&lt;br /&gt;
A bug not reported is a bug not fixed. Please don&#039;t just rely on other people reporting it. If you see that the bug is already reported, you can also help to raise the bug priority by marking it as &#039;Yes, this bug affects me&#039; in the bug tracker.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;FAQ&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=常見問題=&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Can_I_upgrade_even_if_I_have_active_surveys?&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==即使我有進行中的問卷，我也可以升級嗎？==&lt;br /&gt;
&lt;br /&gt;
是的你可以升級。上面的詳細說明中可能會提到例外。我們強烈建議您在升級後測試您的問卷，以確定您設計的模板是否可以正常運作。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;How_to_convert_*.sql/*.csv_survey_structure_files_to_the_latest_LimeSurvey_version?&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==如何將*.sql/*.csv問卷結構檔轉換為最新的LimeSurvey版本？==&lt;br /&gt;
&lt;br /&gt;
安裝版本 1.50，匯入文件，並將調查結構匯出成為較新的 .csv 格式。然後安裝最新版本 2.x 並匯入 .csv 格式並將其匯出為目前的 .lss 格式。&lt;br /&gt;
&lt;br /&gt;
==Survey theme incompatibility==&lt;br /&gt;
With certain major version updates any custom survey themes will not be compatible, anymore:&lt;br /&gt;
&lt;br /&gt;
* Update from LimeSurvey 2.6 or lower to LimeSurvey 2.50&lt;br /&gt;
* Update from LimeSurvey 5.x or lower to LimeSurvey 6.x&lt;br /&gt;
&lt;br /&gt;
==Error &amp;quot;Multiple primary key defined&amp;quot; when updating MySQL database==&lt;br /&gt;
If you encounter this error, please check the setting &#039;&#039;sql_generate_invisible_primary_key&#039;&#039; in your MySQL server variables. This is most likely set to &#039;&#039;ON&#039;&#039;, but should be set to &#039;&#039;OFF&#039;&#039;. Then restore your database from the backup (as explained above) and try again.&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Translations:Upgrading_from_a_previous_version/35/zh-hant&amp;diff=377769</id>
		<title>Translations:Upgrading from a previous version/35/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Translations:Upgrading_from_a_previous_version/35/zh-hant&amp;diff=377769"/>
		<updated>2024-07-01T14:48:22Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;如果您遇到這樣的問題，請務必在我們的錯誤追蹤網站裡回報此問題：https://bugs.limesurvey.org&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
	<entry>
		<id>https://www.limesurvey.org/manual/index.php?title=Upgrading_from_a_previous_version/zh-hant&amp;diff=377768</id>
		<title>Upgrading from a previous version/zh-hant</title>
		<link rel="alternate" type="text/html" href="https://www.limesurvey.org/manual/index.php?title=Upgrading_from_a_previous_version/zh-hant&amp;diff=377768"/>
		<updated>2024-07-01T14:47:01Z</updated>

		<summary type="html">&lt;p&gt;Rickylu: Created page with &amp;quot;安裝版本 1.50，匯入文件，並將調查結構匯出成為較新的 .csv 格式。然後安裝最新版本 2.x 並匯入 .csv 格式並將其匯出為目前的 .lss 格式。&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;languages /&amp;gt; &amp;lt;div style=&amp;quot;float:right;&amp;quot;&amp;gt;&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;附加頁：{toc}&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt; __TOC__&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Before_you_start...&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=開始之前...=&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&#039;color:#FF0000&#039;&amp;gt;....閱讀此內容，因為它非常重要：&#039;&#039;&#039;務必備份目前的安裝檔案和資料庫！&amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
您可以使用資料庫管理工具例如 [https://www.phpmyadmin.net phpMyAdmin] 和檔案管理器來執行此操作！&lt;br /&gt;
如果您不知道怎麼備份，請勿繼續下面的操作並尋找其他人的幫助。&lt;br /&gt;
&lt;br /&gt;
==建議使用 ComfortUpdate==&lt;br /&gt;
&#039;&#039;&#039;最簡單/安全的升級方法就是使用我們的[[ComfortUpdate]]服務。&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Upgrade_instructions_(from_2.x_or_newer_to_any_later_version)&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=升級說明（從2.x或更高版本到任何之後的版本）=&lt;br /&gt;
&lt;br /&gt;
請按照以下說明操作：&lt;br /&gt;
*備份您的檔案和資料庫([[Upgrading from a previous version/zh-hant#Before you start...|我們之前有提過嗎?]])。&lt;br /&gt;
*刪除所有舊文件/資料夾，除了以下檔案：&lt;br /&gt;
**/application/config/security.php - &#039;&#039;&#039;很重要!!這是 LimeSurvey（版本 4 及更高版本）中所有加密資料的金鑰&#039;&#039;&#039;&lt;br /&gt;
**/application/config/config.php;&lt;br /&gt;
**/upload 目錄&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;[[File:help.png]]&#039;&#039;&#039;Note:&#039;&#039;&#039; If you have any customized templates in /upload/templates, make sure you &#039;refresh&#039; 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.&amp;lt;/div&amp;gt;&lt;br /&gt;
*Copy the new files from the new LimeSurvey package to the existing location.&lt;br /&gt;
*Open the admin page in your browser (e.g. https://www.example.com/limesurvey/admin) and check if a database scheme upgrade is necessary.&lt;br /&gt;
*After the upgrade: &#039;&#039;&#039;Clear your browser cache and cookies!&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Instructions_for_older_versions&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=舊版說明=&lt;br /&gt;
&lt;br /&gt;
不幸的是，有一些事情需要考慮，所以請仔細閱讀以下說明。&lt;br /&gt;
&lt;br /&gt;
==Upgrading from version 1.50 or later to any later 2.xx version==&lt;br /&gt;
*[https://www.limesurvey.org/about-limesurvey/download Download] the latest version of LimeSurvey&lt;br /&gt;
*Backup your files and database ([[Upgrading from a previous version#Before you start...|did we already mention that?]]).&lt;br /&gt;
* Replace all the installation directory files&lt;br /&gt;
** Delete all old files in the existing installation directory&lt;br /&gt;
** Upload and unpack the new files of the new version into the same installation directory&lt;br /&gt;
** 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&lt;br /&gt;
** Copy your /upload directory back to the old location&lt;br /&gt;
** Double-check the &#039;&#039;&#039;permissions&#039;&#039;&#039; set on the directories (write access to &#039;&#039;&#039;/tmp&#039;&#039;&#039;, &#039;&#039;&#039;/upload&#039;&#039;&#039;, and their subdirectories is required) as described in the [[Installation#Set directory permissions|installation wiki]]&lt;br /&gt;
** Open http://&amp;lt;yourdomain&amp;gt;/&amp;lt;yourlimesurveydir&amp;gt;/admin in your browser and follow the instructions (You will find the database data in the old config.php). The existing database will be automatically detected and if necessary, upgraded after confirmation.&lt;br /&gt;
* Check if any special manual checks apply as listed below&lt;br /&gt;
* &#039;&#039;&#039;Now, clear your browser cache and cookies&#039;&#039;&#039; and you are good to go&lt;br /&gt;
&lt;br /&gt;
{{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.}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;&#039;&#039;&#039;Special checks after an upgrade&#039;&#039;&#039;:&lt;br /&gt;
*&#039;&#039;&#039;from any earlier version to 2.xx&#039;&#039;&#039;: Proper question codes are mandatory now. After upgrading the installation, check the survey logic of all surveys and correct the codes where necessary&lt;br /&gt;
*&#039;&#039;&#039;from a version earlier than v1.53&#039;&#039;&#039;: When upgrading from a version before v1.53 to the latest version, please check the &#039;&#039;&#039;global user rights&#039;&#039;&#039; of each user. There was a new &#039;&#039;&#039;superadmin&#039;&#039;&#039; right introduced in v1.53 that can give a user the same privilege as the master administration account created during the installation. 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.&lt;br /&gt;
*&#039;&#039;&#039;from any earlier version to v2.06&#039;&#039;&#039;: From 2.05 to 2.06, some unused permissions when editing global permissions for &#039;surveys&#039; were activated. For example, if a user had only the &#039;create&#039; permission in 2.05, the other permissions located to the right of &#039;create&#039; 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 &#039;original&#039; ones after the update. If yes, please edit them accordingly.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Upgrading from version 1.50 or later to any later 1.xx version==&lt;br /&gt;
*[https://www.limesurvey.org/about-limesurvey/download Download] the desired version of LimeSurvey&lt;br /&gt;
* Backup your files and database ([[Upgrading from a previous version#Before you start...|did we already mention that?]]).&lt;br /&gt;
* Replace all the installation directory files&lt;br /&gt;
** Delete all old files in the existing installation directory&lt;br /&gt;
** Upload and unpack the new code version into the same installation directory&lt;br /&gt;
** Edit or replace the &#039;&#039;&#039;config.php&#039;&#039;&#039; file:&lt;br /&gt;
*** If your previous version was &amp;lt; 1.70: Edit the new &#039;&#039;&#039;config.php&#039;&#039;&#039; in order to reflect the changes from the backup &#039;&#039;&#039;config.php&#039;&#039;&#039; file. &#039;&#039;&#039;Do not just overwrite the new &#039;&#039;&#039;config.php&#039;&#039;&#039; with your old one!&#039;&#039;&#039;&lt;br /&gt;
*** If your previous version was &amp;gt;= 1.70: Simply replace the new &#039;&#039;&#039;config.php&#039;&#039;&#039; with your backup &#039;&#039;&#039;config.php&#039;&#039;&#039; file (as the file format has not changed)&lt;br /&gt;
** 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&lt;br /&gt;
** Copy your /upload directory back to the old location&lt;br /&gt;
** Double-check the &#039;&#039;&#039;permissions&#039;&#039;&#039; set on the directories of LimeSurvey (write access to &#039;&#039;&#039;/tmp&#039;&#039;&#039;, &#039;&#039;&#039;/upload&#039;&#039;&#039;, and to their subdirectories is required) as described in the [[Installation#Set Directory permissions|installation wiki]]&lt;br /&gt;
* Finish the installation/upgrade process&lt;br /&gt;
** Once you open the URL to your LimeSurvey administration, the database tables will be updated after confirmation&lt;br /&gt;
** Remove or rename the /admin/install directory as/if instructed by the installation script&lt;br /&gt;
** Check if any special manual checks apply (as listed below)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;simplebox&amp;quot;&amp;gt;&#039;&#039;&#039;Special checks after an upgrade&#039;&#039;&#039;:&lt;br /&gt;
*&#039;&#039;&#039;From a version earlier than v1.53&#039;&#039;&#039;: When upgrading from a version before v1.53 to the latest version, please check the &#039;&#039;&#039;global user rights&#039;&#039;&#039; of each user. There was a new &#039;&#039;&#039;superadmin&#039;&#039;&#039; 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.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Upgrading_from_a_version_earlier_than_v1.50_(v1.0_through_v1.44)&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==從 v1.50 之前的版本升級（v1.0 到 v1.44）==&lt;br /&gt;
&lt;br /&gt;
Since the data structure and a lot of other things were changed, &#039;&#039;&#039;upgrading from any version previous to v1.50 is &amp;lt;u&amp;gt;NOT&amp;lt;/u&amp;gt; possible&#039;&#039;&#039;. 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.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Upgrading_using_CLI&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
= 使用 CLI 升級 =&lt;br /&gt;
&lt;br /&gt;
You can upgrade the database via the PHP CLI: &amp;lt;code&amp;gt;php application/commands/console.php updatedb&amp;lt;/code&amp;gt;. This allows you to set up an auto-upgrade system via command line (for example, in a crontab), although it is not recommended.&lt;br /&gt;
&lt;br /&gt;
= Failed database upgrade after manual update/ComfortUpdate=&lt;br /&gt;
Sometimes, even though you did everything correct, things don&#039;t work out they are supposed to during database upgrade.&lt;br /&gt;
That may happen because of various reasons: Different database versions, unexpected data formats or contents, unusual configurations or anything else that did not show up in our tests (yes, we test a lot!)&lt;br /&gt;
&lt;br /&gt;
If you have an error during database update and your LimeSurvey instance ends up in an unusable state, you want to go back to the previous version.&lt;br /&gt;
This assumes that you still have the database and file backup, either from your regular backup or the one created by Comfortupdate.&lt;br /&gt;
&lt;br /&gt;
請執行以下步驟：&lt;br /&gt;
&lt;br /&gt;
*Backup the existing LimeSurvey directory and database (yes, again - we will call this the 2nd backup)&lt;br /&gt;
*Restore files to the existing directory (just overwriting them is fine) from the original (1st) backup.&lt;br /&gt;
*Delete the old database and restore the database from the original (1st) backup.&lt;br /&gt;
&lt;br /&gt;
就是這樣。一切都應該恢復正常。&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;關於報告此問題的說明：&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
如果您遇到這樣的問題，請務必在我們的錯誤追蹤中回報此問題：https://bugs.limesurvey.org&lt;br /&gt;
&lt;br /&gt;
A bug not reported is a bug not fixed. Please don&#039;t just rely on other people reporting it. If you see that the bug is already reported, you can also help to raise the bug priority by marking it as &#039;Yes, this bug affects me&#039; in the bug tracker.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;FAQ&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
=常見問題=&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;Can_I_upgrade_even_if_I_have_active_surveys?&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==即使我有進行中的問卷，我也可以升級嗎？==&lt;br /&gt;
&lt;br /&gt;
是的你可以升級。上面的詳細說明中可能會提到例外。我們強烈建議您在升級後測試您的問卷，以確定您設計的模板是否可以正常運作。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;How_to_convert_*.sql/*.csv_survey_structure_files_to_the_latest_LimeSurvey_version?&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
==如何將*.sql/*.csv問卷結構檔轉換為最新的LimeSurvey版本？==&lt;br /&gt;
&lt;br /&gt;
安裝版本 1.50，匯入文件，並將調查結構匯出成為較新的 .csv 格式。然後安裝最新版本 2.x 並匯入 .csv 格式並將其匯出為目前的 .lss 格式。&lt;br /&gt;
&lt;br /&gt;
==Survey theme incompatibility==&lt;br /&gt;
With certain major version updates any custom survey themes will not be compatible, anymore:&lt;br /&gt;
&lt;br /&gt;
* Update from LimeSurvey 2.6 or lower to LimeSurvey 2.50&lt;br /&gt;
* Update from LimeSurvey 5.x or lower to LimeSurvey 6.x&lt;br /&gt;
&lt;br /&gt;
==Error &amp;quot;Multiple primary key defined&amp;quot; when updating MySQL database==&lt;br /&gt;
If you encounter this error, please check the setting &#039;&#039;sql_generate_invisible_primary_key&#039;&#039; in your MySQL server variables. This is most likely set to &#039;&#039;ON&#039;&#039;, but should be set to &#039;&#039;OFF&#039;&#039;. Then restore your database from the backup (as explained above) and try again.&lt;/div&gt;</summary>
		<author><name>Rickylu</name></author>
	</entry>
</feed>