x

Основные главы

  1. LimeSurvey Cloud против LimeSurvey CE
  2. LimeSurvey Cloud — Краткое руководство
  3. LimeSurvey CE - Установка
  4. Как разработать хороший опрос (Руководство)
  5. Начиная
  6. Конфигурация LimeSurvey
  7. Введение - Опросы
  8. Просмотр настроек опроса
  9. Посмотреть меню опроса
  10. Посмотреть структуру опроса
  11. Введение - Вопросы
  12. Введение — группы вопросов
  13. Введение - Опросы - Менеджмент
  14. Параметры панели инструментов опроса
  15. Многоязычный опрос
  16. Краткое руководство — ExpressionScript
  17. Расширенные возможности
  18. Общие вопросы и ответы
  19. Поиск неисправностей
  20. Обходные пути
  21. Лицензия
  22. Журнал изменений версий
  23. Плагины - Расширенный
 Actions

Upgrading from a previous version/ru: Difference between revisions

From LimeSurvey Manual

FuzzyBot (talk | contribs)
Updating to match new version of source page
FuzzyBot (talk | contribs)
Updating to match new version of source page
 
Line 1: Line 1:
<languages /> <div style="float:right;"><div class="simplebox">Дополнительные страницы:{toc}</div></div>__ОГЛАВЛЕНИЕ__
<languages /> <div style="float:right;"><div class="simplebox">Дополнительные страницы:{toc}</div></div>__ОГЛАВЛЕНИЕ__


<span id="Before_you_start..."></span>
=Перед началом...=
=Перед началом...=


Line 9: Line 10:
</div>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
==Recommendation to use ComfortUpdate==
==Recommendation to use ComfortUpdate==
'''The easiest/safest way to upgrade is to use our [[ComfortUpdate]] service.'''
'''The easiest/safest way to upgrade is to use our [[ComfortUpdate]] service.'''
</div>


<span id="Upgrade_instructions_(from_2.x_or_newer_to_any_later_version)"></span>
<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
=Быстрый способ(для обновления с минорных версий)=
=Быстрый способ(для обновления с минорных версий)=
Line 25: Line 29:
*'''После обновления: очистите кэш браузера и куки!'''
*'''После обновления: очистите кэш браузера и куки!'''
</div>
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
<div class="simplebox">[[File:help.png]]'''Note:''' If you have any customized templates in /upload/templates, make sure you 'refresh' those with any changes that come with the new LimeSurvey version. The easiest way to check for such changes is to file-compare your old template with the new version of the default template. If you see any differences other than your customizations, a refresh is needed.</div>
#Log out of the administration
*Copy the new files from the new LimeSurvey package to the existing location.
#Backup your files and database
*Open the admin page in your browser (e.g. https://www.example.com/limesurvey/admin) and check if a database scheme upgrade is necessary.
#Delete all the old files/folders except for:
*After the upgrade: '''Clear your browser cache and cookies!'''
##/application/config/security.php - '''Important!! This is the key to all encrypted data in LimeSurvey (version 4 and later)'''
 
##/application/config/config.php;
<div class="mw-translate-fuzzy">
##/upload directory
=Тщательный способ (для серьезных обновлений)=
#Copy the new files from the new LimeSurvey package to the existing location.
#Now clear your browser cache and cookies.
#Open the admin page in your browser (e.g. https://www.example.com/limesurvey/admin). If a database scheme upgrade is necessary you will be prompted to confirm it.
#Done!
</div>
</div>


<div class="mw-translate-fuzzy">
<div lang="en" dir="ltr" class="mw-content-ltr">
Пожалуйста, изучите данную страницу внимательно, т.к., к сожалению, существует несколько случаев развития событий при данной манипуляции.
<div class="simplebox">[[File:help.png]]'''Note:''' Between major versions (for example from version 3 to 4) the template/design themes change usually completely. Old survey design templates/themes will usually not work anymore.</div>
</div>
</div>


<div class="mw-translate-fuzzy">
<div lang="en" dir="ltr" class="mw-content-ltr">
==Обновление с 1.50 или старше до любой 2.xx или старше==
= Upgrading using CLI =
#[http://www.limesurvey.org/download Скачайте] последнюю версию LimeSurvey.
#Сделайте резервную копию старой системы.
##Сделайте копии файлов из каталога с установленной системой и, на всякий случай, сделайте дамп базы данных.
###В командной строке извлеките все файлы и каталоги из скачанного архива.
###С помощью phpMyAdmin или любым другим аналогичным способом произведите экспорт всех таблиц; или воспользуйтесь кнопкой в '''LimeSurvey административной панели''' [[File:button-export-sql.png]], чтобы сделать резервную копию базы данных
##Скопируйте Ваш '''config.php''' файл, измененный '''шаблон''' директории и папку /upload отдельно для быстрого доступа позднее.
#Замените все установочные папки и файлы
##Удалите все старые файлы в существующей директории установки
##Выгрузите и распакуйте новую версию кода в ту же папку
##Если Ваша старая версия была старше чем 1.90: скопируйте настроенные шаблоны в /upload/templates - Вам вскоре потребуется переименовать каждую директорию с шаблоном, чьи имена совпадают с существующими шаблонами в папке /templates.
##Скопируйте Вашу директорию /upload обратно на старое место
##Проверьте '''разрешения''' установленные на директории (доступ на запись для '''/tmp''', '''/upload''' и их дочерние каталоги если требуется) как было описано в [[Installation#Set_Directory_permissions|установке]]
##Откройте http://<ваш_домен>/<каталог_limesurvey>/admin в Вашем браузере и следуйте инструкциям (Вы можете использовать старый config.php как пример). Будет автоматически определена существующая база данных и, если потребуется, обновлена после подтверждения.
#Проконтролируйте на предмет наличия специальных ручных проверок среди перечисленных ниже:
# '''Сейчас очистите кэш браузера и куки!'''
# Все готово! (:biggrin:).
</div>
</div>


{{Alert|title=Attention|text=Please note that the template structure has changed with the update from 2.0x to 2.50 or later. Your old templates will not be working anymore as the template system is now using responsive templates.}}
<div lang="en" dir="ltr" class="mw-content-ltr">
 
You can upgrade the database via the PHP CLI: <code>php application/commands/console.php updatedb</code>. This allows you to set up an auto-upgrade system via command line (for example, in a crontab), although it is not recommended.
<div class="mw-translate-fuzzy">
<div class="simplebox">'''Специальные проверки после обновления''':
*'''с любой ранней версии до 2.xx''': '''шаблоны''' были изменены во множестве мест. Проверьте Ваши настроенные шаблоны на корректность отображения. Если нет, то исправьте их (согласно имеющимся стандартным шаблонам). Процесс обновления пытался заменить template.js включением заполнителя {TEMPLATEJS}. Если у Вас возникли проблемы с JavaScript в пользовательских шаблонах, проверьте есть ли в Вашем шаблоне метка заполнитель {TEMPLATEJS} в шаблоне стартовой страницы startpage.pstpl.
*'''с версии младше чем v1.53''': При обновлении с версии младше v1.53 до последней версии, пожалуйста, проверьте '''глобальные права пользователей''' для каждого. Если там уже был '''superadmin''' введенный в  v1.53, то это может дать пользователю те же привилегии, что и у главного аккаунта администратора созданного во время установки. Скрипт обновления пытается догадаться, кому дать подобные права в старой версии системы. Т.к. он не совершенен, то результат его деятельности должен быть проверен.</div>
</div>
 
<div class="mw-translate-fuzzy">
==Обновление с версии 1.50 или позже до любой версии 1.xx или позже==
#[http://www.limesurvey.org/download Скачайте] желаемую версию LimeSurvey.
#Сделайте резервную копию старой системы.
##Сделайте копии файлов из каталога с установленной системой и, на всякий случай, сделайте дамп базы данных.
###В командной строке извлеките все файлы и каталоги из скачанного архива.
###С помощью phpMyAdmin или любым другим аналогичным способом произведите экспорт всех таблиц; или воспользуйтесь кнопкой в '''LimeSurvey административной панели''' [[File:button-export-sql.png]], чтобы сделать резервную копию базы данных
##Скопируйте Ваш '''config.php''' файл, измененный '''шаблон''' директории и папку /upload отдельно для быстрого доступа позднее.
#Замените все установочные папки и файлы
##Удалите все старые файлы в существующей директории установки
##Выгрузите и распакуйте новую версию кода в ту же папку
##Отредактируйте или замените файл '''config.php''':
###Если Ваша старая версия была < 1.70: Отредактируйте новый '''config.php''' чтобы установить измененные значения как в старом '''config.php'''. '''Не перезаписывайте новый файл '''config.php''' старым!!!'''
###Если Ваша старая версия была >= 1.70: Просто замените новый '''config.php''' старым '''config.php''' из бэкапа (т.к. формат файла не изменился).
##Если Ваша старая версия была старше чем 1.90:  скопируйте настроенные шаблоны в /upload/templates - Вам вскоре потребуется переименовать каждую директорию с шаблоном, чьи имена совпадают с существующими шаблонами в папке /templates.
##Скопируйте Вашу директорию /upload обратно на старое место
##Проверьте '''разрешения''' установленные на директории (доступ на запись для '''/tmp''', '''/upload''' и их дочерние каталоги если требуется) как было описано в [[Installation#Set_Directory_permissions|установке]]
##Завершение установки
##После того, как Вы перейдете по ссылке на Ваш LimeSurvey административную часть, таблицы базы данных будут обновлены после подтверждения.
#Удалите или переименуйте каталог '''/admin/install''' как в инструкции по установке скрипта.
##Проконтролируйте на предмет наличия специальных ручных проверок среди перечисленных ниже:
# Все готово! (:biggrin:). Если появились любые примечания после обновления: очистите кэш браузера и куки!
</div>
 
<div class="mw-translate-fuzzy">
<div class="simplebox">'''Специальные проверки после обновления''':
*'''с любой ранней версии до 1.92''': '''шаблоны''' были изменены во множестве мест. Проверьте Ваши настроенные шаблоны на корректность отображения. Если нет, то исправьте их (согласно имеющимся стандартным шаблонам).
*'''с версии младше чем v1.53''': При обновлении с версии младше v1.53 до последней версии, пожалуйста, проверьте '''глобальные права пользователей''' для каждого. Если там уже был '''superadmin''' введенный в  v1.53, то это может дать пользователю те же привилегии, что и у главного аккаунта администратора созданного во время установки. Скрипт обновления пытается догадаться, кому дать подобные права в старой версии системы. Т.к. он не совершенен, то результат его деятельности должен быть проверен.</div>
</div>
 
==Обновление с версии младше чем 1.50 (v1.0-v1.44)==
 
<div class="mw-translate-fuzzy">
Постольку поскольку структура данных и множество других вещей были изменены, '''обновление с любой версии до v1.50 не представляется возможным'''. Если же у Вас есть старая структура данных в *.sql файле, то импортировать ее в новую версию можно установив [http://www.limesurvey.org/en/archived-releases/289-limesurvey150zip версию 1.50], произвести импорт туда *.sql файла и затем обновив систему до самой свежей версии LimeSurvey. Также смотрите страницу [[Transferring an installation|Перенос установки]] для получения детальной информации.
</div>
</div>


= Upgrading using CLI =
<div lang="en" dir="ltr" class="mw-content-ltr">
 
You can upgrade the database via the PHP CLI: <code>php application/commands/console.php updatedb</code>. This allows you to set up an auto-upgrade system via command line (for example, in a crontab), although it is not recommended.
 
= Failed database upgrade after manual update/ComfortUpdate=
= Failed database upgrade after manual update/ComfortUpdate=
Sometimes, even though you did everything correct, things don't work out they are supposed to during database upgrade.
Sometimes, even though you did everything correct, things don't work out they are supposed to during database upgrade.
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!)
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!)
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
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.
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.
This assumes that you still have the database and file backup, either from your regular backup or the one created by Comfortupdate.
This assumes that you still have the database and file backup, either from your regular backup or the one created by Comfortupdate.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
Please execute the following steps:
Please execute the following steps:
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
*Backup the existing LimeSurvey directory and database (yes, again - we will call this the 2nd backup)
*Backup the existing LimeSurvey directory and database (yes, again - we will call this the 2nd backup)
*Restore files to the existing directory (just overwriting them is fine) from the original (1st) backup.
*Restore files to the existing directory (just overwriting them is fine) from the original (1st) backup.
*Delete the old database and restore the database from the original (1st) backup.
*Delete the old database and restore the database from the original (1st) backup.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
That's it. Everything should be back to normal.
That's it. Everything should be back to normal.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
'''A note about reporting this issue:'''
'''A note about reporting this issue:'''
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
If you run into a problem like this, please always report this in our bug tracker at https://bugs.limesurvey.org
If you run into a problem like this, please always report this in our bug tracker at https://bugs.limesurvey.org
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
A bug not reported is a bug not fixed. Please don'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 'Yes, this bug affects me' in the bug tracker.
A bug not reported is a bug not fixed. Please don'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 'Yes, this bug affects me' in the bug tracker.
</div>


<span id="FAQ"></span>
=Обновление: часто задаваемые вопросы=
=Обновление: часто задаваемые вопросы=


<span id="Can_I_upgrade_even_if_I_have_active_surveys?"></span>
==Могу ли я обновиться в то время как у меня есть активные опросы?==
==Могу ли я обновиться в то время как у меня есть активные опросы?==


Да, Вы можете. Исключения в данном случае указаны в указанной выше инструкции. Мы настоятельно рекомендуем проверить Ваши шаблоны на работоспособность.
Да, Вы можете. Исключения в данном случае указаны в указанной выше инструкции. Мы настоятельно рекомендуем проверить Ваши шаблоны на работоспособность.


<span id="How_to_convert_*.sql/*.csv_survey_structure_files_to_the_latest_LimeSurvey_version?"></span>
<div class="mw-translate-fuzzy">
<div class="mw-translate-fuzzy">
==Какой самый лучший способ портирования структуры *.sql файлов в последнюю версию LimeSurvey?==
==Какой самый лучший способ портирования структуры *.sql файлов в последнюю версию LimeSurvey?==

Latest revision as of 12:07, 25 February 2025

Дополнительные страницы:{toc}

__ОГЛАВЛЕНИЕ__

Перед началом...

... прочтите, потому что это очень важно: Всегда делайте резервную копию файлов и базы данных текущей установки!

Вы можете сделать это при помощи инструментов администрирования БД, например, phpMyAdmin и файл-менеджера! Если Вы не знаете как это сделать, то Вам не следует продолжать самостоятельно, а попросить кого либо кто знает или воспользоваться вместо этого комфортным обновлением.

Recommendation to use ComfortUpdate

The easiest/safest way to upgrade is to use our ComfortUpdate service.

Быстрый способ(для обновления с минорных версий)

Вы можете использовать данные инструкции, если Вы делаете обновление с минорной версии (например, с 2.00 до 2.01)

  • сделайте резервную копию файлов и базы данных(мы ведь уже обсуждали это, не так ли?)
  • удалите все старые файлы/директории, за исключением
    • /application/config/config.php
    • /upload каталога
  • скопируйте новые файлы из архива с LimeSurvey в существующую директорию
  • После обновления: очистите кэш браузера и куки!
  1. Log out of the administration
  2. Backup your files and database
  3. Delete all the old files/folders except for:
    1. /application/config/security.php - Important!! This is the key to all encrypted data in LimeSurvey (version 4 and later)
    2. /application/config/config.php;
    3. /upload directory
  4. Copy the new files from the new LimeSurvey package to the existing location.
  5. Now clear your browser cache and cookies.
  6. Open the admin page in your browser (e.g. https://www.example.com/limesurvey/admin). If a database scheme upgrade is necessary you will be prompted to confirm it.
  7. Done!
Note: Between major versions (for example from version 3 to 4) the template/design themes change usually completely. Old survey design templates/themes will usually not work anymore.

Upgrading using CLI

You can upgrade the database via the PHP CLI: php application/commands/console.php updatedb. This allows you to set up an auto-upgrade system via command line (for example, in a crontab), although it is not recommended.

Failed database upgrade after manual update/ComfortUpdate

Sometimes, even though you did everything correct, things don't work out they are supposed to during database upgrade. 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!)

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. This assumes that you still have the database and file backup, either from your regular backup or the one created by Comfortupdate.

Please execute the following steps:

  • Backup the existing LimeSurvey directory and database (yes, again - we will call this the 2nd backup)
  • Restore files to the existing directory (just overwriting them is fine) from the original (1st) backup.
  • Delete the old database and restore the database from the original (1st) backup.

That's it. Everything should be back to normal.

A note about reporting this issue:

If you run into a problem like this, please always report this in our bug tracker at https://bugs.limesurvey.org

A bug not reported is a bug not fixed. Please don'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 'Yes, this bug affects me' in the bug tracker.

Обновление: часто задаваемые вопросы

Могу ли я обновиться в то время как у меня есть активные опросы?

Да, Вы можете. Исключения в данном случае указаны в указанной выше инструкции. Мы настоятельно рекомендуем проверить Ваши шаблоны на работоспособность.

Какой самый лучший способ портирования структуры *.sql файлов в последнюю версию LimeSurvey?

Установить версию 1.50, импортировать файл и экспортировать структуру опросов в новый .csv формат. Последняя версия сможет прочитать структуру опроса в .csv формате.

Survey theme incompatibility

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

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

Error "Multiple primary key defined" when updating MySQL database

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